1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

Use get_script_args to handle smb-related flag options, to use our

common true/false logic and not hardcode "1" and "true" in places. Patch
by Chris Woodbury.
This commit is contained in:
david
2011-04-20 21:35:10 +00:00
parent e0f589a37f
commit 3447e2a6a2
4 changed files with 16 additions and 16 deletions

View File

@@ -78,7 +78,7 @@
-- protocol altogether!). If you're using an extremely old system, you might need to set
-- this to <code>v1</code> or <code>lm</code>, which are less secure but more compatible.
-- For information, see <code>smbauth.lua</code>.
--@args smbnoguest Set to <code>true</code> or <code>1</code> to disable usage of the 'guest' account.
--@args smbnoguest Use to disable usage of the 'guest' account.
module(... or "smbauth", package.seeall)
@@ -260,7 +260,7 @@ function init_account(host)
-- Add the anonymous/guest accounts
add_account(host, '', '', '', nil, 'none')
if(nmap.registry.args.smbnoguest == nil) then
if(not stdnse.get_script_args( "smbnoguest" )) then
add_account(host, 'guest', '', '', nil, 'ntlm')
end