1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Fix some incorrect conversions from bin to string unpacking

This commit is contained in:
dmiller
2018-09-20 02:19:53 +00:00
parent 00ec940ead
commit 7819453af5
5 changed files with 6 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ function smb2_send(smb, header, data, overrides)
local attempts = 5
local status, err
local out = string.pack(">I<c" .. #body, #body, body)
local out = string.pack(">s4", body)
repeat
attempts = attempts - 1
stdnse.debug3("SMB: Sending SMB packet (len: %d, attempts remaining: %d)", #out, attempts)