SHOW:
|
|
- or go back to the newest paste.
| 1 | #!/bin/bash | |
| 2 | #_ _____ _ _____ ___ | |
| 3 | #| | _|___ // |___ / _ \ | |
| 4 | #| |/ / |_ \| | / / | | | | |
| 5 | #| < ___) | | / /| |_| | | |
| 6 | #|_|\_\____/|_|/_/ \___/ | |
| 7 | ######################################### | |
| 8 | #Doxing A hosting server using GooDork: | |
| 9 | #this lil bash script collects information about a given subnet of web servers using dig | |
| 10 | #and GooDork. It does a reverse IP look up and then runs a simple dork on it too find out | |
| 11 | #more about the server. | |
| 12 | #`PS: this is a script I use to stress test GooDork ;)` | |
| 13 | #Please make sure that GooDork is installed in your ~/ directory. Enjoy!! | |
| 14 | ||
| 15 | #src: http://github.com/k3170makan/GooDork | |
| 16 | #blog: k3170makan.blogspot.com | |
| 17 | #Twitter: k3170makan | |
| 18 | if [ $# -eq 0 ] | |
| 19 | then | |
| 20 | exit 0 | |
| 21 | fi | |
| 22 | NET=$1"."; | |
| 23 | echo -e "Doxing <"$NET">...\n"; | |
| 24 | for host in $(seq 1 255); | |
| 25 | do | |
| 26 | echo -e "looking up <"$NET$host">\n" | |
| 27 | TARGET=$(/usr/bin/dig -x $NET$host +short) | |
| 28 | if [ "$TARGET" != "" ] | |
| 29 | then | |
| 30 | echo "found hostname ["${TARGET%"."}"] for [$NET$host]...";
| |
| 31 | - | echo -e $(~/GooDork/GooDork.py site:${TARGET%"."}) >> $TARGET"dox"
|
| 31 | + | ~/GooDork/GooDork.py site:${TARGET%"."} >> $TARGET"dox"
|
| 32 | else | |
| 33 | echo 'no hostname found for '$NET$host; | |
| 34 | fi | |
| 35 | done |