mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
Avoid integer overflow in signed pack by using literal string
This commit is contained in:
parent
5022aaf794
commit
11c2662a40
1 changed files with 2 additions and 1 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue