Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [NSE] Changes to handling of SMB script arguments
From: Ron <ron () skullsecurity net>
Date: Wed, 20 Apr 2011 17:17:03 -0500

Hash: SHA1

On Wed, 20 Apr 2011 14:33:15 -0700 David Fifield <david () bamsoftware com> wrote:
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
Excellent! I've been meaning to do that. 

*Crosses off TODO list*

Version: GnuPG v1.4.9 (GNU/Linux)

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]