Nmap Development mailing list archives
Re: command line arguments with NSE
From: David Fifield <david () bamsoftware com>
Date: Fri, 23 Mar 2012 08:31:06 -0700
On Fri, Mar 23, 2012 at 09:40:23PM +1100, Brendan Coles wrote:
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.
Also don't forget that Zenmap has a script browser that lists all the possible arguments and lets you edit them. http://nmap.org/book/zenmap-profile-editor.html#zenmap-profile-editor-scripting David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- command line arguments with NSE SAN THO (Mar 23)
- Re: command line arguments with NSE Brendan Coles (Mar 23)
- Re: command line arguments with NSE David Fifield (Mar 23)
- Re: command line arguments with NSE Brendan Coles (Mar 23)