Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #_ _____ _ _____ ___
- #| | _|___ // |___ / _ \
- #| |/ / |_ \| | / / | | |
- #| < ___) | | / /| |_| |
- #|_|\_\____/|_|/_/ \___/
- #########################################
- #Doxing A hosting server using GooDork:
- #this lil bash script collects information about a given subnet of web servers using dig
- #and GooDork. It does a reverse IP look up and then runs a simple dork on it too find out
- #more about the server.
- #`PS: this is a script I use to stress test GooDork ;)`
- #Please make sure that GooDork is installed in your ~/ directory. Enjoy!!
- #src: http://github.com/k3170makan/GooDork
- #blog: k3170makan.blogspot.com
- #Twitter: k3170makan
- if [ $# -eq 0 ]
- then
- exit 0
- fi
- NET=$1".";
- echo -e "Doxing <"$NET">...\n";
- for host in $(seq 1 255);
- do
- echo -e "looking up <"$NET$host">\n"
- TARGET=$(/usr/bin/dig -x $NET$host +short)
- if [ "$TARGET" != "" ]
- then
- echo "found hostname ["${TARGET%"."}"] for [$NET$host]...";
- ~/GooDork/GooDork.py site:${TARGET%"."} >> $TARGET"dox"
- else
- echo 'no hostname found for '$NET$host;
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement