scanner (bash) 12-08-2012, 06:17 PM
#1
So i found the code to make a simple scanner and it works for me so I decided to share it.
Note: works on backtrack due to the programs already installed. wont work for other distro's.
Note: works on backtrack due to the programs already installed. wont work for other distro's.
Code:
#!/bin/bash
clear
echo
echo "This script will perform various reconnaissance on your target."
echo
echo Usage: domain.com
echo Enter the domain.
echo
read domain
echo
echo "###########################################################################################"
echo
echo "whois" $domain
whois $domain
echo "###########################################################################################"
echo
echo "dig" $domain "any"
dig $domain any
echo "###########################################################################################"
echo
echo "host -l" $domain
echo
host -l $domain
echo
echo "###########################################################################################"
echo
echo "tcptraceroute -i wlan0" $domain
echo
tcptraceroute -i wlan0 $domain
echo
echo "###########################################################################################"
echo
echo "cd /pentest/enumeration/dnsenum"
echo "perl dnsenum.pl --enum -f dns.txt --update a -r" $domain
echo
cd /pentest/enumeration/dnsenum
perl dnsenum.pl --enum -f dns.txt --update a -r $domain
echo
echo "###########################################################################################"
echo
echo dnstracer $domain
echo
dnstracer $domain
echo
echo "###########################################################################################"
echo
echo "cd /pentest/enumeration/fierce"
echo "perl fierce.pl -dns" $domain
echo
cd /pentest/enumeration/fierce
perl fierce.pl -dns $domain
echo
echo "###########################################################################################"
echo
echo "cd /pentest/enumeration/lbd"
echo "./lbd.sh" $domain
cd /pentest/enumeration/lbd
./lbd.sh $domain
echo "###########################################################################################"
echo
echo "cd /pentest/enumeration/list-urls"
echo "./list-urls.py http://www."$domain
cd /pentest/enumeration/list-urls
./list-urls.py http://www.$domain
echo
echo "###########################################################################################"
echo
echo "nmap -PN -n -F -T4 -sV -A -oG temp.txt" $domain
cd /root
nmap -PN -n -F -T4 -sV -A -oG temp.txt $domain
echo
echo "###########################################################################################"
echo
echo "amap -i temp.txt"
amap -i temp.txt
echo
echo "###########################################################################################"
echo
echo "cd /pentest/enumeration/www/httprint/linux"
echo "./httprint -h www."$domain "-s signatures.txt -P0"
echo
cd /pentest/enumeration/www/httprint/linux
./httprint -h www.$domain -s signatures.txt -P0
echo
echo "###########################################################################################"
Learning is the easy part. Putting it to use...now that's the hard part which still isnt very hard but is limited to your imagination.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)