Script to enumerate domains, and to remove out of scope items using a regex list. Also contains custom scripts to filter enumerated subdomain data even further.
Long term goal is to standarize the enumeration and filtering so that code can be reused
Use nmap to resolve all subdomains (https://github.com/nmap/nmap)
nmap -T5 -sL -n -oG resolved -iL "subDomain_List_fileName"
cat resolved | grep ^Host | cut -d " " -f 2 > masscan.il
Use masscan to check ports using file "masscan.il" (https://github.com/robertdavidgraham/masscan)
~/tools/masscan/bin/masscan -iL [FILE] --rate 1500 -p0-65535 > masscan.txt
Use altdns to find premutations all subdomains (https://github.com/infosec-au/altdns)
python3 ~/tools/altdns/altdns -i [FILE] -o permutations.txt -w ~/netsec/crimson_recon/wordlists/altdns_words.txt -r -s [NEWFILE]
Use EyeWitness to take snapshot of all subdomains (https://github.com/FortyNorthSecurity/EyeWitness)
~/tools/EyeWitness/EyeWitness.py -f [FILE] --web --proxy-ip 127.0.0.1 --proxy-port 8080
scp -r [USERID]@[IP]:[SOURCE DIR] [DEST DIR]
--script-args "[USER AGENT]"
nmap -p- [IP] -sV -A
nmap -p- [IP] -sV -A --script-args http.useragent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36" -v 1
sudo apt-get install golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source ~/.bashrc