Nmap Development mailing list archives
Re: Script Arguments and IDs
From: "Patrick Donnelly" <batrick.donnelly () gmail com>
Date: Sun, 1 Jun 2008 21:21:23 -0600
On Sun, Jun 1, 2008 at 6:41 PM, Kris Katterjohn <katterjohn () gmail com> wrote:
Hey everyone,
The NSE documentation says this on script arguments[1]:
"As a general rule the subtables used to override options for scripts should
be named as the script's id, since otherwise scripts can't know where to
search for their arguments."
The example:
"{user="foo",pass="bar",anonFTP={pass="nobody () foobar com"}}"
However, many scripts have IDs which don't allow for this "scoping". This can
be caused by a space (e.g. "SSH Protocol Version 1") or hyphen (e.g.
"zone-transfer") in the script id.
You can get around that by doing this:
--script-args 'user=foo,pass=bar,["zone-transfer"]={pass="barbar"}'
Cheers,
--
-Patrick Donnelly
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."
-Will Durant
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Current thread:
- Script Arguments and IDs Kris Katterjohn (Jun 01)
- Re: Script Arguments and IDs jah (Jun 01)
- Re: Script Arguments and IDs Patrick Donnelly (Jun 01)
- Re: Script Arguments and IDs Kris Katterjohn (Jun 01)
