House of Hackers

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

Share 

Add a Comment

You need to be a member of House of Hackers to add comments!

Join this Ning Network

Nova Comment by Nova on October 30, 2009 at 12:32pm
:P
XayOn Comment by XayOn on October 24, 2009 at 5:14pm
why not just:
nmap $* 2>&1 |grep open|grep -v open|festival --tts
fr free Comment by fr free on October 22, 2009 at 7:06pm
Cool Thanks Mén ! !

- Please if someone have a complete eBook about Linux Bash ! !

crackers25@hotmail.com
Diego Rodrigues Pereira Comment by Diego Rodrigues Pereira on September 27, 2009 at 2:59pm
very good guy........
氣賢者 Comment by 氣賢者 on August 21, 2009 at 10:35am
Really nice work..
plug-ins ?
XayOn Comment by XayOn on March 31, 2009 at 5:40pm
I prefer something that tells me the open ports too...
#/bin/bash
tmp=`mktemp`
nmap $* > $tmp
echo "Network Security Scan complete"|festival --tts
cat $tmp|grep open|grep -v open|festival --tts

This way also accepts any nmap command-line options (any you want) so it can be called like nmap itself and lets tempfile to be aleatory with mktemp.
M*G Comment by M*G on March 28, 2009 at 9:55pm
:D
Good Job

@+
rvdh Comment by rvdh on February 28, 2009 at 2:46pm
That's so geeky. While your at it, why not write a plugin for it? would be awesome and I would probably use it.
pdp Comment by pdp on February 24, 2009 at 10:28am
nice stuff! :)
Anarchy Angel Comment by Anarchy Angel on February 4, 2009 at 4:32am
lol nice work y0!

About

pdp pdp created this Ning Network.

© 2009   Created by pdp on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service

Sign in to chat!