mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 01:49:03 +00:00
Correct the return value of smb2.negotiate_v2
As documented, the function should return the negotiated SMB2 dialect, not just reflect back the dialect override table.
This commit is contained in:
@@ -77,7 +77,7 @@ action = function(host,port)
|
||||
elseif not(signing_enabled) and signing_required then
|
||||
table.insert(message_signing, "Message signing is disabled!")
|
||||
end
|
||||
output[stdnse.tohex(dialect[1], {separator = ".", group = 2})] = message_signing
|
||||
output[stdnse.tohex(dialect, {separator = ".", group = 2})] = message_signing
|
||||
-- We exit after first accepted dialect,
|
||||
-- SMB signing configuration appears to be global so
|
||||
-- there is no point of trying other dialects.
|
||||
|
||||
Reference in New Issue
Block a user