1
0
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:
nnposter
2020-12-16 17:54:15 +00:00
parent 57b7e56a68
commit 1b39988bf9
2 changed files with 2 additions and 2 deletions

View File

@@ -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.