mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Handle empty snmpcommunity correctly
This commit is contained in:
parent
7fc0f3ee6d
commit
762207f02e
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue