Nmap Development mailing list archives

Support for calling scripts without the full argument name


From: Paulino Calderon <paulino () calderonpale com>
Date: Tue, 26 Jul 2011 23:46:19 -0500

Hi,

I've added support for setting arguments without the full script name. Ex.

Before:
nmap --script http-trace http-trace.path=/path/ <host>

Now:
nmap --script http-trace path=/path/ <host>

Note that Nmap won't resolve conflicts automatically so to deal with this you need to:

nmap --script http-majordomo2-dir-traversal,http-axis2-dir-traversal --script-args http-axis2-dir-traversal.uri=/axis2/,uri=/majordomo/ <host>
Or
nmap --script http-majordomo2-dir-traversal,http-axis2-dir-traversal --script-args uri=/axis2/,http-majordomo2-dir-traversal.uri=/majordomo/ <host>
Or
nmap --script http-majordomo2-dir-traversal,http-axis2-dir-traversal --script-args http-axis2-dir-traversal.uri=/axis2/,http-majordomo2-dir-traversal.uri=/majordomo/ <host>



Attachment: scripting.xml.diff
Description:

Attachment: refguide.xml.diff
Description:

Attachment: stdnse.lua.diff
Description:

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

Current thread: