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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user