Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash script used to scan and distinguish dumped and brute sub domains | DEMO TWITTER
#!/bin/bash
for foo in $(cat twitterdomain) #demolist: https://hastebin.com/ahelalunan.css
do
http_code=$(curl $foo -w %'{http_code}' -o /dev/null -s)
if [[ $http_code -eq 000 ]];
then
echo -e "$http_code Subdomain not working $foo \n" | tee -a notworking.log
else
echo -e "$http_code Check it $foo \n" | tee -a working.log
fi
done
#@___0x00 | Alpha (r00tnepal)
# Not existed domains are stored in notworking.log
# 404, 302, 500 , 200 , 201 , 300 ..... stored in working.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment