mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
Avoid integer overflow in signed pack by using literal string
This commit is contained in:
@@ -109,7 +109,8 @@ aka "Print Spooler Service Impersonation Vulnerability."
|
||||
local lanman_result
|
||||
local REMSmb_NetShareEnum_P = "WrLeh"
|
||||
local REMSmb_share_info_1 = "B13BWz"
|
||||
status, lanman_result = msrpc.call_lanmanapi(smbstate,0,REMSmb_NetShareEnum_P,REMSmb_share_info_1,bin.pack("ss",0x01,65406))
|
||||
status, lanman_result = msrpc.call_lanmanapi(
|
||||
smbstate, 0, REMSmb_NetShareEnum_P, REMSmb_share_info_1, "\x01\x00\x7e\xff")
|
||||
if status == false then
|
||||
stdnse.debug1("SMB: " .. lanman_result)
|
||||
stdnse.debug1("SMB: Looks like LANMAN API is not available. Try setting printer script arg.")
|
||||
|
||||
Reference in New Issue
Block a user