Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 1.66 KB

File metadata and controls

74 lines (53 loc) · 1.66 KB

Web Application Enumeration

#subdomain finder tool
./assetfinder tesla.com >> tesla-subs.txt

./assetfinder --subs-only tesla.com
#only subdomains
#another subdomain finder tool
amass enum -d tesla.com
#tool for finding alive domains
cat tesla.com/recon/final.txt | httprobe -s -p https:443 | sed 's/https\?:\/\///' | tr -d ':443'
#checks if subdomain responds
#then formats and prints it
#screenshot utility
gowitness single https://tesla.com
#can take screenshot of multiple websites as well
  • Custom script for filtering subdomains:
#!/bin/bash

url=$1

if [ ! -d "$url" ];then
    mkdir $url
fi

if [ ! -d "$url/recon" ];then
    mkdir $url/recon
fi

echo "[+] Harvesting subdomains with asset-finder..."
./assetfinder $url >> $url/recon/assets.txt
cat $url/recon/assets.txt | grep $1 >> $url/recon/final.txt
rm $url/recon/assets.txt

echo "[+] Harvesting subdomains with Amass..."
amass enum -d $url >> $url/recon/f.txt
sort -u $url/recon/f.txt >> $url/recon/final.txt
rm $url/recon/f.txt

echo "[+] Probing for alive subdomains..."
cat $url/recon/final.txt | sort -u | httprobe -s -p https:443 | sed 's/https\?:\/\///' | tr -d ':443' >> $url/recon/alive.txt
chmod +x subdomain-script.sh

./subdomain-script.sh tesla.com
#creates file final.txt containing all filtered subdomains