Skip to content

Instantly share code, notes, and snippets.

@gitnepal
Last active January 16, 2019 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitnepal/c7cec96a09abc0f39e86149938fd1e67 to your computer and use it in GitHub Desktop.
Save gitnepal/c7cec96a09abc0f39e86149938fd1e67 to your computer and use it in GitHub Desktop.
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