1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-08 14:36:33 +00:00

Added the script-arg 'smbnoguest' to the smb scripts. It disables use of the guest account. Andrew Smith on nmap-dev commented that trying the guest account raised an IDS flag, and asked for a way to disable it.

This commit is contained in:
ron
2010-04-29 11:46:58 +00:00
parent 1a9d2cb003
commit 12fe785185

View File

@@ -77,6 +77,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 'true' or '1' to disable usage of the 'guest' account.
module(... or "smbauth", package.seeall)
@@ -257,7 +258,10 @@ function init_account(host)
-- Add the anonymous/guest accounts
add_account(host, '', '', '', nil, 'none')
add_account(host, 'guest', '', '', nil, 'ntlm')
if(nmap.registry.args.smbnoguest == nil) then
add_account(host, 'guest', '', '', nil, 'ntlm')
end
-- Add the account given on the commandline (TODO: allow more than one?)
local args = nmap.registry.args