Skip to content

External pentest and bug bounty tool to perform subdomain enumeration through various techniques. SubScraper will provide information such as HTTP & DNS lookups to aid in potential next steps.

License

Notifications You must be signed in to change notification settings

modulexcite/subscraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SubScraper

SubScraper uses DNS brute force, Google & Bing scraping, and DNSdumpster to enumerate subdomains of a given host. Written in Python3, SubScraper performs HTTP(S) requests and DNS "A" record lookups during the enumeration process to validate discovered subdomains. This provides further information to help prioritize targets and aid in potential next steps. Post-Enumeration, "CNAME" lookups are displayed to identify subdomain takeover opportunities.

Users also have the option of adding their Censys.io API Key & Secret in the command line arguments. This will allow subdomain enumeration using the Censys.io SSL Cert database. Create an account to get a free API key here: https://censys.io/register.

Install

git clone https://github.com/m8r0wn/subscraper
cd subscraper
python3 setup.py install

Usage

  • Subdomain Enumeration
subscraper example.com
subscraper -r subdomains.txt example.com
subscraper -r subdomains.csv --report-type csv example.com
  • Subdomain Takeover Check
subscraper --takeover subdomains.txt example.com

Call for Contributions

Have a new subdomain enumeration technique you would like to see in SubScraper? Why not add it!

SubScraper's enumeration methods have been modified to allow for a more modular approach. This means new techniques can easily be added to the subscraper/modules directory and tie directly into SubScraper's verbose output. See subscraper/modules/example_module.py for more information.

All Options

SubScraper Options:
  -T MAX_THREADS                 Max threads
  -t TIMEOUT                     Timeout [seconds] for search threads (Default: 25)
  target                         Target domain (Positional)

Subdomain Enumeration Options:
  -s                             Only use internet to find subdomains
  -b                             Only use DNS brute forcing to find subdomains
  -w SUBLIST                     Custom subdomain wordlist
  --censys-api CENSYS_API        Add Censys.io API Key
  --censys-secret CENSYS_SECRET  Add Censys.io Secret

Subdomain Enumeration: Reporting:
  -r REPORT, --report REPORT     Write subdomains to txt file
  --report-type {txt,csv}        Output file types: txt, csv

Subdomain TakeOver:
  --takeover TAKEOVER           Perform takeover check on list of subs

About

External pentest and bug bounty tool to perform subdomain enumeration through various techniques. SubScraper will provide information such as HTTP & DNS lookups to aid in potential next steps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%