Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Colours
- #Black 0;30 Dark Gray 1;30
- #Blue 0;34 Light Blue 1;34
- #Green 0;32 Light Green 1;32
- #Cyan 0;36 Light Cyan 1;36
- #Red 0;31 Light Red 1;31
- #Purple 0;35 Light Purple 1;35
- #Brown 0;33 Yellow 1;33
- #Light Gray 0;37 White 1;37
- red=`echo -e "\033[31m"`
- lcyan=`echo -e "\033[36m"`
- yellow=`echo -e "\033[33m"`
- green=`echo -e "\033[32m"`
- blue=`echo -e "\033[34m"`
- purple=`echo -e "\033[35m"`
- normal=`echo -e "\033[m"`
- while :
- do
- clear
- echo "$yellow _ _ "
- echo "$yellow /\ | | | | "
- echo "$yellow / \ _ _| |_ ___ _ __ ___ __ _| |_ ___ _ __ "
- echo "$yellow / /\ \| | | | __/ _ \| '_ \` _ \ / _\` | __/ _ \| '__|"
- echo "$yellow / ____ \ |_| | || (_) | | | | | | (_| | || (_) | | "
- echo "$yellow /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__\___/|_|$normal"
- echo "$lcyan -- Created by Leon Teale"
- echo ""
- echo "$purple Please Enter The Target Domain$normal";
- read target
- echo ""
- mkdir -p ~/Desktop/$target
- echo "$blue +-------------------------------------------+"
- echo "$blue | |"
- echo "$blue | $yellow 1. Recon$normal $blue |$normal"
- echo "$blue | $yellow 2. Brute Force$normal $blue |$normal"
- #echo "$blue | 3. $yellow The Harvester$normal |"
- #echo "$blue | 4. $yellow OS FingerPrinting$normal |"
- #echo "$blue | 5. $yellow Password bruteforcing$normal |"
- #echo "$blue | 6. $yellow Metagoofil$normal |"
- echo "$blue | |"
- echo "$blue +-------------------------------------------+"
- echo ""
- read opt
- case $opt in
- 1)clear
- echo "$yellow _ _ "
- echo "$yellow /\ | | | | "
- echo "$yellow / \ _ _| |_ ___ _ __ ___ __ _| |_ ___ _ __ "
- echo "$yellow / /\ \| | | | __/ _ \| '_ \` _ \ / _\` | __/ _ \| '__|"
- echo "$yellow / ____ \ |_| | || (_) | | | | | | (_| | || (_) | | "
- echo "$yellow /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__\___/|_|$normal"
- echo "$lcyan -- Created by Leon Teale"
- echo ""
- echo "$blue +-------------------------------------------+"
- echo "$blue | |"
- echo "$blue | $green Running Recon.. $normal $blue |$normal"
- echo "$blue | $yellow Once the script finishes running the$normal$blue |$normal"
- echo "$blue | $yellow results will be saved to the Desktop$normal$blue |"
- #echo "$blue | 5. $yellow Password bruteforcing$normal |"
- #echo "$blue | 6. $yellow Metagoofil$normal |"
- echo "$blue | |"
- echo "$blue +-------------------------------------------+"
- echo ""
- echo "[-> ]0%"
- #DNS Enumeration
- /pentest/enumeration/dns/dnsrecon/dnsrecon.py -t brt,std,axfr -D /pentest/enumeration/dns/dnsrecon/namelist.txt -d $target > /tmp/$target.dnsrecon.txt.tmp
- cat /tmp/$target.dnsrecon.txt.tmp | grep '[^\.][0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}[^\.]' | grep -vE 'Trying|TCP|MX|NS|SOA|Has' | awk {'print $3 " " $4'} | sort -u > ~/Desktop/$target/dnsrecon.txt
- echo "" >> ~/Desktop/$target/dnsrecon.txt
- rm -rf /tmp/$target.dnsrecon.txt.tmp
- echo "[---> ]25%"
- #Email Harvester
- /pentest/enumeration/theharvester/theHarvester.py -l 500 -b all -d $target > /tmp/$target.emails.txt.tmp
- cat /tmp/$target.emails.txt.tmp | grep @ | grep -vE 'cmartore' > ~/Desktop/$target/emails.txt
- rm -rf /tmp/$target.emails.txt.tmp
- echo "[---------> ]50%"
- #MetaGooFil to get usernames from stored online documents
- echo "---- MetaGooFill Users ----" > ~/Desktop/$target/users.txt
- mkdir -p ~/Desktop/$target/metagoofil.tmp/
- /pentest/enumeration/google/metagoofil/metagoofil.py -d $target -t doc,xls,docx -l 200 -n 50 -o ~/Desktop/$target/metagoofil.tmp/ -f ~/Desktop/$target/users.html
- cat ~/Desktop/$target/users.html | sed 's/useritem/\n/g' | grep '">' | grep -vE 'head' | awk -F "<" {'print $1'} | cut -d">" -f2 | sed -e "s/^ \{1,\}//" >> ~/Desktop/$target/users.txt
- echo "" >> ~/Desktop/$target/users.txt
- rm -rf ~/Desktop/$target/metagoofil.tmp/
- #rm -rf /tmp/$target/users.txt.tmp
- echo "[---------------> ]75%"
- #Format obtained emails to possible usernames and add to end of users list if found by MetaGooFil
- echo "---- Users formatted from emails addresses found ----" >> ~/Desktop/$target/users.txt
- cat ~/Desktop/$target/emails.txt | cut -f1 -d"@" >> ~/Desktop/$target/users.txt
- echo "[-----------------> ]88%"
- #Get the Name Servers
- echo "---- Name Servers ----" >> ~/Desktop/$target/dnsrecon.txt
- dig ns $target | grep -v '^;' | grep $target | awk {'print $5'} >> ~/Desktop/$target/dnsrecon.txt
- echo "" >> ~/Desktop/$target/dnsrecon.txt
- #Get Mx records
- echo "---- MX Records ----" >> ~/Desktop/$target/dnsrecon.txt
- dig mx $target | grep -v '^;' | grep $target | awk {'print $6'} >> ~/Desktop/$target/dnsrecon.txt
- #Get Whois info
- whois $target > ~/Desktop/$target/whois.txt
- echo "[------------------->]100%"
- read enterkey;;
- 2)
- read enterkey;;
- *) echo "$red Please Enter A Valid Option$normal"
- read enterkey;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment