Skip to content

Instantly share code, notes, and snippets.

@chr0ll0x0
Last active July 8, 2022 21:57
Show Gist options
  • Save chr0ll0x0/17dca7d2c2cf9733213ca6816d20f5d0 to your computer and use it in GitHub Desktop.
Save chr0ll0x0/17dca7d2c2cf9733213ca6816d20f5d0 to your computer and use it in GitHub Desktop.
for subdomains
#!/bin/bash
#please install this tool first
#install jq
#Assetfinder - https://github.com/tomnomnom/assetfinder
#Subfinder - https://github.com/projectdiscovery/subfinder
#Amass - https://github.com/OWASP/Amass
#Findomain https://github.com/Findomain/Findomain
#Anew https://github.com/tomnomnom/anew
#crobat https://github.com/cgboal/sonarsearch/crobat
#move auto-subs.sh to /bin/bash
[ -z "$1" ] && { printf "\n [+] enter like example.com [+]\n";exit;}
echo -e "Start Assetfinder\n"
assetfinder --subs-only $1 |tee assetfinder.txt
echo -e "Start Subfinder \n"
subfinder -d $1 -o subfinder.txt
echo -e "Start crobat \n"
crobat -s $1 |tee crobat.txt
echo -e "Start Findomain \n"
findomain-linux --target $1 --unique-output findomain.txt
echo -e "Start Crtsh \n"
curl -s https://crt.sh/\?q\=\%.$1\&output\=json | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u | tee crtsh.txt
echo -e "Start Amass \n"
amass enum -d $1 -o amass.txt
echo -e "Finish All Subs\n"
cat assetfinder.txt subfinder.txt crobat.txt amass.txt findomain.txt crtsh.txt |sort -u| anew |tee Final-subs.txt
echo -e "[+]Finish All Subdomain Enum for $1 target *$(wc -l "Final-subs.txt")* for uniq final Subdomains" | notify -discord -discord-webhook-url "https://discord.com/api/webhooks/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment