Nmap Development mailing list archives
NSE --script-args w/ unquoted strings (was: NSE PJL proof of concept)
From: Patrick Donnelly <batrick () batbytes com>
Date: Sat, 25 Jul 2009 13:56:38 -0600
Hi Fyodor, On Sun, Jul 12, 2009 at 12:51 AM, Fyodor<fyodor () insecure org> wrote:
On Fri, Jul 10, 2009 at 12:24:06PM -0600, David Fifield wrote:On Fri, Jul 10, 2009 at 11:16:43AM -0700, Aaron Leininger wrote: However I do think that syntax like this should be supported: --script-args 'msg=longtest message' That is, I don't see a downside to allowing whitespace as part of a string without quoting.Neither do I. Unless someone comes up with a reason not to, I think we should support this. Accordingly I'm adding this entry to the Nmap TODO: o [NSE] Allow spaces in script arguments without the user having to manually quote them (beyond normal shell escape quoting). See: http://seclists.org/nmap-dev/2009/q3/0090.html
Whitespace is now allowed in unquoted strings (r14573). Whitespace surrounding unquoted strings however is ignored. Here is an example: --script-args 'greeting = This is a greeting' Becomes: { ["greeting"] = "This is a greeting" } -- -Patrick Donnelly "Let all men know thee, but no man know thee thoroughly: Men freely ford that see the shallows." - Benjamin Franklin _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NSE --script-args w/ unquoted strings (was: NSE PJL proof of concept) Patrick Donnelly (Jul 25)