A scripted pipeline of tools to simplify the bug bounty/penetration test reconnaissance phase, so you can focus on chomping bugs.
Chomp Scan is a Bash script that chains together the fastest and most effective tools (in my opinion/experience) for doing the long and sometimes tedious process of recon. No more looking for word lists and trying to remember when you started a scan and where the output is. Chomp Scan creates a timestamped output directory based on the search domain, e.g. example.com-21:38:15, and puts all tool output there, split into individual sub-directories as appropriate. Custom output directories are also supported via the
New: Chomp Scan now integrates Notica, which allows you to receive a notification when the script finishes. Simply visit Notica and get a unique URL parameter. Simply pass the parameter to Chomp Scan via the
-nflag, keep the Notica page open in a browser tab on your computer or phone, and you will receive a message when Chomp Scan has finished running. No more constantly checking/forgetting to check those long running scans.
Chomp Scan runs in multiple modes. The primary one is using command-line arguments to select which scanning phases to use, which wordlists, etc. A guided interactive mode is available, as well as a non-interactive mode, useful if you do not want to deal with setting multiple arguments.
A list of interesting words is included, such as dev, test, uat, staging, etc., and domains containing those terms are flagged. This way you can focus on the interesting domains first if you wish. This list can be customized to suit your own needs, or replaced with a different file via the
A blacklist file is included, to exclude certain domains from the results. However it does not prevent those domains from being resolved, only from being used for port scanning and content discovery. It can be passed via the
Chomp Scan supports limited canceling/skipping of tools by pressing Ctrl-c. This can sometimes have unintended side effects, so use with care.
Note: Chomp Scan is in active development, and new/different tools will be added as I come across them. Pull requests and comments welcome!
Subdomain Discovery (3 different sized wordlists)
- massdns + altdns
Port Scanning (optional)
- masscan and/or nmap
- nmap output styled with nmap-bootstrap-xsl
Information Gathering (optional) (4 different sized wordlists)
Content Discovery (optional) (4 different sized wordlists)
A variety of wordlists are used, both for subdomain bruteforcing and content discovery. Daniel Miessler's Seclists are used heavily, as well as Jason Haddix's lists. Different wordlists can be used by passing in a custom wordlist or using one of the built-in named argument lists below.
|Argument Name||Filename||Word Count||Description|
|huge||huge-200k.txt||199k||Combination I made of various wordlists, including Seclists|
|Argument Name||Filename||Word Count||Description|
|medium||raft-large-combined.txt||167k||Combination of the raft wordlists in Seclists|
|large||seclists-combined.txt||215k||Larger combination of all the Discovery/DNS lists in Seclists|
|xl||haddix_content_discovery_all.txt||373k||Jason Haddix's all content discovery list|
|xxl||haddix-seclists-combined.txt||486k||Combination of the two previous lists|
- altdns-words.txt - 240 words - Used for creating domain permutations for masscan to resolve. Borrowed from altdns.
- interesting.txt - 43 words - A list I created of potentially interesting words appearing in domain names. Provide your own interesting words list with the
Clone this repo and run the installer.sh script. Make sure to
source ~/.profileafter running the installer in order to add the Go binary path to your $PATH variable. Then run Chomp Scan.
Chomp Scan always runs subdomain enumeration, thus a domain is required via the
-uflag. The domain should not contain a scheme, e.g. http:// or https://. By default, HTTPS is always used. This can be changed to HTTP by passing the
-Hflag. A wordlist is optional, and if one is not provided the built-in short list (20k words) is used.
Other scan phases are optional. Content discovery can take an optional wordlist, otherwise it defaults to the built-in short (22k words) list.
The final results of the scan are stored in two text files in the output directory. All unique domains that are found are stored in
all_discovered_domains.txt, and all unique IPs that are discovered are stored in
chomp-scan.sh -u example.com -a d short -cC large -p -o path/to/directory
Usage of Chomp Scan:
(required) Domain name to scan. This should not include a scheme, e.g. https:// or http://.
(optional) The wordlist to use for subdomain enumeration. Three built-in lists, short, long, and huge can be used, as well as the path to a custom wordlist. The default is short.
(optional) Enable content discovery phase. The wordlist for this option defaults to short if not provided.
(optional) The wordlist to use for content discovery. Five built-in lists, small, medium, large, xl, and xxl can be used, as well as the path to a custom wordlist. The default is small.
(optional) Enable screenshots using Aquatone.
(optional) Enable information gathering phase, using subjack, bfac, whatweb, wafw00f, and nikto.
(optional) Enable portscanning phase, using masscan (run as root) and nmap.
(optional) Enable interactive mode. This allows you to select certain tool options and inputs interactively. This cannot be run with -D.
(optional) Enable default non-interactive mode. This mode uses pre-selected defaults and requires no user interaction or options. This cannot be run with -I.
Options: Subdomain enumeration wordlist: short.
Content discovery wordlist: small.
Aquatone screenshots: yes.
Information gathering: yes.
Domains to scan: all unique discovered.
(optional) Set custom domain blacklist file.
(optional) Set custom interesting word list.
(optional) Set custom output directory. It must exist and be writable.
(optional) Use all unique discovered domains for scans, rather than interesting domains. This cannot be used with -A.
(optional, default) Use only interesting discovered domains for scans, rather than all discovered domains. This cannot be used with -a.
(optional) Use HTTP for connecting to sites instead of HTTPS.
(optional) Display this help page.
In The Future
Chomp Scan is still in active development, as I use it myself for bug hunting, so I intend to continue adding new features and tools as I come across them. New tool suggestions, feedback, and pull requests are all welcomed. Here is a short list of potential additions I'm considering:
- Adding a config file, for more granular customization of tools and parameters
- Adding testing/support for Ubuntu/Debian
- A possible Python re-write (and maybe a Go re-write after that!)
- The generation of an HTML report, similar to what aquatone provides