Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
assets-from-spf — A Python script to parse net blocks & domain names from SPF record | Kitploit
Tools/GitHubGitHub/0xbharath/assets-from-spf
OSINT (Open Source Intelligence)ReconnaissanceNetwork MappingInformation GatheringDNS Analysis
GitHub0xbharath/assets-from-spf

assets-from-spf

A Python script to parse net blocks & domain names from SPF record

View Repository
84226 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

assets-from-spf

  • A Python script to parse netblocks & domain names from SPF(Sender Policy Framework) DNS record
  • For every parsed asset, the script will also find and print Autonomous System Number(ASN) details
  • For now, the output is printed in JSON format only

Demo

script-in-action

Screenshots

3rd party package dependency

  1. ipwhois

  2. click

Setup

  • Clone this repo
root@kitploit:~
$ git clone [email protected]:yamakira/assets-from-spf.git
  • Install dependencies
root@kitploit:~
$ pipenv install
  • Check help menu
root@kitploit:~
$ python assets_from_spf.py --help
Usage: assets_from_spf.py [OPTIONS] DOMAIN

Options:
  --asn / --no-asn  Enable/Disable ASN enumeration
  --help            Show this message and exit.

Usage

  • Parse the SPF record for assets but don't do ASN enumeration
root@kitploit:~
$ python assets_from_spf.py target_url
  • Parse the SPF record for assets and do ASN enumeration
root@kitploit:~
$ python assets_from_spf.py target_url --asn
root@kitploit:~
$ python assets_from_spf.py target_url -a
Download Tool