Skip to content

Instantly share code, notes, and snippets.

@SocioDroid
Last active October 3, 2020 11:24
Show Gist options
  • Save SocioDroid/e96366b8da70e33f0edd8fe5a3715578 to your computer and use it in GitHub Desktop.
Save SocioDroid/e96366b8da70e33f0edd8fe5a3715578 to your computer and use it in GitHub Desktop.
A script to check for subdomain takeover
#!/bin/sh
filename=$1
while read line; do
echo "Sublist3r"
python3 sublist3r.py -d $line -o $line.txt
echo "Assetfinder"
assetfinder --subs-only $line | tee -a $line.txt
sort -u $line.txt -o $line.txt
echo "Subjack"
subjack -w $line.txt -t 1000 -o $1takeover.txt
done < $filename
#./sudomainTakeover.sh subs.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment