Nmap Development mailing list archives

Re: NMAP NSE scripts


From: "Vlatko Kosturjak" <kost () linux hr>
Date: Sun, 28 Aug 2011 22:02:58 +0200

Hello,

Thanks on the script, but what''s the difference and purpose (instead of using nmap --script=all against the target)?

Sent from my mobile

----- Reply message -----
From: "PacketSpike" <packetspike () gmail com>
To: <nmap-dev () insecure org>
Subject: NMAP NSE scripts
Date: Sun, Aug 28, 2011 17:33



Just a small script that will help you run all the .nse scripts in
/usr/share/nmap/scripts/

#!/bin/bash
if [ -z "$1" ]; then 
              echo "usage:./runall.sh IPADDRESS EX:"192.168.1.1""
              exit
          fi


for x in `ls -1 *.nse`;
 do echo "About to run $x...";
        echo "";
        echo "3";
        sleep 1;
        echo "2";
        sleep 1;
        echo "1";
        sleep 1;
        echo "";
                echo "Running $x....";

nmap --script $x $1;
done;
-- 
View this message in context: http://old.nabble.com/help-about-Nmap-tp18787064p32351929.html
Sent from the Nmap - Dev mailing list archive at Nabble.com.
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: