16RedTeam
Reconnaissance
gathering information to plan future adversary operation.
00 Basic
bash3 lines
https://docs.reconness.com/https://coggle.it/diagram/XepDvoXedGCjPc1Y/t/enumeration-mindmaphttps://www.xmind.net/m/5dypm8/#01 Passive Recon
- Manual
bash63 lines
## ------------------| Get information about ip(4/6) address and mail server address.whois h4rithd.comhost h4rithd.comnslookup h4rithd.comtraceroute h4rithd.com
## ------------------| Enumarate DNS / NS Informationdnsrecon -d h4rithd.comdig h4rithd.comdig h4rithd.com MX ## List Mail server recordsdig h4rithd.com NS ## List NameServer recordsdig h4rithd.com ANY ## List all recordsdig @8.8.8.8 h4rithd.com ANY ## Using google dns server
## ------------------| DNS Zone Transferdnsrecon -d h4rithd.com -t axfr
## ------------------| Check wafwafw00f h4rithd.com
## ------------------| Interesting Siteshttps://dnsdumpster.com/https://sitereport.netcraft.com/?url=h4rithd.com
## ------------------| Identify web technologywhatweb h4rithd.com
## ------------------| OSINT on domaintheHarvester -b crtsh,dnsdumpster,duckduckgo,google,hackertarget,linkedin,linkedin_links,twitter,trello -d dialog.com
## ------------------| Subdomain enumerationknockpy dialog.lksublist3r -d h4rithd.comfierce --domain h4rithd.com
## ------------------| Subdomain enumeration from Certificate Transparencycurl -s https://crt.sh/\?q\=h4rithd.com\&output\=json | jq . | grep name | cut -d":" -f2 | grep -v "CN=" | cut -d'"' -f2 | awk '{gsub(/\\n/,"\n");}1;' | sort -ucurl -s "https://crt.sh/?q=h4rithd.com&output=json" | python3 -c "import sys,jsoncerts=json.load(sys.stdin)domains=set()for c in certs: for d in c.get('name_value','').split('\n'): domains.add(d.strip())for d in sorted(domains): print(d)"
## ------------------| HTTP Probing Live Asset Identificationfor sub in www uat api shop portal lms omnichannel; do code=$(curl -sk --max-time 5 -o /dev/null -w "%{http_code}" "https://$sub.h4rithd.com") echo "$sub.h4rithd.com => HTTP $code"done
## ------------------| SSL Certificate Analysiscurl -sk --max-time 10 "https://h4rithd.com" -v 2>&1 | grep -A5 "Server certificate"#### Also via Nikto SSL scannikto -h h4rithd.com -ssl -nointeractive 2>/dev/null | grep -i "DNS\|SAN\|Subject"
## ------------------| JavaScript Bundle Analysis#### Extract all JS bundle URLscurl -sk "https://h4rithd.com" | grep -oE 'src="[^"]+\.js"' | sed 's/src="//;s/"//'#### Fetch main bundlecurl -sk "https://h4rithd.com/static/js/main.js" | grep -oE 'https?://[a-zA-Z0-9._-]+\.azurewebsites\.net[^"'\'']*'- Automation
bash18 lines
## ------------------| Sn1persudo sniper -t h4rithd.comsudo sniper -t h4rithd.com -m stealth -o -re
## ------------------| Amassamass enum -d h4rithd.com -dir outputamass enum -d h4rithd.com -src -ip -brute -dir output ### Active scanamass db -dir output -list ### List all workspaceamass viz -dir output -d3 ### Create html report
## ------------------| Recon-ngrecon-ngmarketplace search ### Search modulemarketplace install <Module> ### Install modulemodules search ### List installed modulesmodules load <Module> ### Load installed modulesoptions list ### List module optionsoptions set SOURCE <DOMAIN> ### Config modules