mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 06:09:00 +00:00
Handle empty snmpcommunity correctly
This commit is contained in:
@@ -276,7 +276,11 @@ action = function(host, port)
|
||||
if creds_iter then
|
||||
local account = creds_iter()
|
||||
if account then
|
||||
nmap.registry.snmpcommunity = account.pass
|
||||
if account.pass == "<empty>" then
|
||||
nmap.registry.snmpcommunity = ""
|
||||
else
|
||||
nmap.registry.snmpcommunity = account.pass
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user