00Subdomain Enumeration
security trails
curl --request GET --url 'https://api.securitytrails.com/v1/domain/bluewin.ch/subdomains?children_only=false&include_inactive=true' --header 'APIKEY: YOUR_SECURITYTRAILS_API_KEY' --header 'accept: application/json'subdoaminfinder c99 nl
ASN enumeration
https://bgp.he.net/search ⇒ find asn for company
shodan search asn:AS8300
use hakrevdns to reverse cidr and get domains
prips 173.0.84.0/24 | hakrevdns -r 1.1.1.1
masscan 193.110.154.0/24 -p 1-65535 --rate 100000 --output-format json --exclude 255.255.255.255 --output-filename
scan-results.json
cat scan-results.json | sed -e '/^\[/d' -e '/^\]/d' -e 's/,$//' | jq -r '[.ip, .ports[0].port] | @tsv' | sed 's/\t/:/' | sort -u > alive-hostsamass
amass enum -config /root/.config/amass/config.yaml -df httpx -t /root/nuclei-temlates/ -o nuclei
amass intel -org "Tesla"
and the output would be :
8911, TESLATEL-AS
50313, TESLATEL-AS
394161, TESLA - Tesla
amass intel -active -asn 394161 => ASN
whois -h whois.radb.net -- '-i origin AS3303' | grep -Eo "([0-9.]+){4}/[0-9]+" | sort -u
------------------------------------------------------------
amass intel -active -cidr 192.168.1.0/24dnscan
python3 /home/hossam/tools/dnscan/dnscan.py -d gs.com -w best-dns-wordlist.txt -t 1000Reverse_Ip
prips 173.0.84.0/24 | hakrevdns -r 1.1.1.1
for i in `prips 194.147.200.0/21`; do dig -x $i +short ;done
https://search.dnslytics.com/cidr/
https://viewdns.info/reverseip/?host=subfinder
echo “site.com” | subfinder
assetfinder
cat domains | assetfinder -subs-onlyvirtual host
ffuf -u https://example.com -w wordlist -H "Host: FUZZ.example.com" email address enumeration
https://newapp.anymailfinder.com and make free trial year account with
[REDACTED]
01/25
123
usa
10010
-----------------------------
then discover all domains related to specific email
https://website.informer.com/email/it-domains@snapchat.comdns rebinding
https://lock.cmpxchg8b.com/rebinder.htmlcrt sh
crt_org.sh
./crt_org.sh Swisscom+(Schweiz)+AG => should replace any space with +
curl 'https://crt.sh/?o=%.'$1'&output=json' | jq -r '.[].common_name' | grep -v '*' | sort | uniq | tee -a domainsOrg.txt
curl -s "https://crt.sh/?q=%25.rednexus.tech&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -uNelas
search for subdomains :
https://app.netlas.io/domains/?indices=&page=1&q=domain%3A(domain%3A*.paypal.com)
if found vulnerablity then try to search for all assets vulnerable to same
by checking the response body and take any word and search by it : (hubspot)
https://app[.]netlas[.]io/responses/?q=http.body:(hubspot)&page=1&indices=
to search for jenkens for example :
https://app[.]netlas[.]io/responses/?q=http.headers.x_jenkins:* OR http.headers.x_jenkins_cli2_port:* OR http.headers.x_jenkins_session:*&page=1cat allsubdomains | egrep "internal|dev|jira|admin|secret |test|production|private|login|staging|dev"