Nmap Development mailing list archives
Re: [NSE] Changes to handling of SMB script arguments
From: David Fifield <david () bamsoftware com>
Date: Wed, 20 Apr 2011 14:33:15 -0700
On Wed, Apr 20, 2011 at 03:56:24PM -0500, Chris Woodbury wrote:
I would also like to suggest some changes to how certain SMB script arguments are handled. As it stands, arguments like "smbnoguest" must be specified as "smbnoguest=1" or "smbnoguest=true". However, since the value of the argument (and others like it) is ignored, I wonder if we could change it so that users merely have to include it as an argument, but do not have to give it a value (i.e. "... --script-args smbnoguest ..."). I think this behavior is in-line with some of the other NSE scripts, as well as with other tools. I've attached a patch that implements this, using the stdnse.get_script_args() function. I only made changes to flag-type arguments, and left alone those that use their values: smbbasic (smb.lua) smbnoguest (smbauth.lua) smblockout (smb-brute.nse) cleanup (smb-psexec.nse) nohide (smb-psexec.nse) nocleanup (smb-psexec.nse) nocipher (smb-psexec.nse)
Thanks, Chris, this was a good idea. I committed your patch. 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:
- [NSE] Changes to handling of SMB script arguments Chris Woodbury (Apr 20)
- Re: [NSE] Changes to handling of SMB script arguments David Fifield (Apr 20)