Ok today we are going to make a simple shell script that will scan a range of hosts, parse the information and have he computer use voice synthesis to tell you when the scan is complete. This is for use with ubuntu as i cba with windows. I suppose you could do the same under windows but i will concerntrate on ubuntu.
Stage 1. Installing packages
---------------------------------
login as root and execute the following
apt-get install festival;
apt-get install flite;
apt-get install nmap;
stage 2. Writing the script
-----------------------------
Now create a new script file and add the following lines then save as .sh
#!/usr/bin/sh
nmap -sV $1 -p80,23,22,161,8080,139 -oG Temp-scan;
cat Temp-scan | grep open > $2;
flite -t "Network Security scan! complete";
stage 3. Changing permission of the script
------------------------------------------------
chmod 700 script.sh
stage 4. running the script
------------------------------
./script.sh 192.168.1.* templog
Simple script smile.gif
Tags:
Share
You need to be a member of House of Hackers to add comments!
Join this Ning Network