Nmap Development mailing list archives

Re: command line arguments with NSE


From: Brendan Coles <bcoles () gmail com>
Date: Fri, 23 Mar 2012 21:40:23 +1100

Hi SANTHO,

I'm not sure if you want to specify a script using the command line or
specify arguments for a script using the command line.

Both are possible. To use the
acarsd-info<http://nmap.org/nsedoc/scripts/acarsd-info.html>script as
an example:

nmap --script acarsd-info --script-args
"acarsd-info.timeout=10,acarsd-info.bytes=512" -p <port> <host>

This will tell nmap to use the acarsd-info script only, with a timeout of
10 (seconds) and maximum of 512 bytes (to recieve).

For more information about each of the script's arguments you can view the
script source. Most scripts include the possible arguments in the @usage
portion of the script headers. Alternatively the nsedoc
wiki<http://nmap.org/nsedoc/scripts/>includes the possible arguments
for each script.



On Fri, Mar 23, 2012 at 6:20 PM, SAN THO <saminside34 () gmail com> wrote:

Hi nmap-dev,

 Is it possible to include command line parameters for nmap scripts ?


--

SANTHO
twitter : @sam34 <http://twitter.com/sam34_>
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/




-- 
Brendan Coles
http://itsecuritysolutions.org/
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: