Last active
January 16, 2019 10:20
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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