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
nmap -T5 -sL -n -oG resolved -iL "subDomain_List_fileName"
###Grab all ip addresses from "resolved" file created by nmap
cat resolved | grep ^Host | cut -d " " -f 2 > masscan.il
###Use masscan to check ports using file "masscan.il"
~/tools/masscan/bin/masscan -iL [FILE] --rate 1500 -p0-65535 > masscan.txt
###Use EyeWitness to take snapshot of all subdomains
~/tools/EyeWitness/EyeWitness.py -f [FILE] --web --proxy-ip 127.0.0.1 --proxy-port 8080
###Retrieve data from VPS
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