mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Use nmap.new_socket in place of nmap:new_socket in smb-check-vulns.nse.
Kit Peters reported the crash: smb-check-vulns.nse:366: calling 'new_socket' on bad self (string expected, got table) http://seclists.org/nmap-dev/2012/q4/124
This commit is contained in:
parent
f8b8cd6b91
commit
3c87635ae8
1 changed files with 2 additions and 2 deletions
|
|
@ -373,7 +373,7 @@ local function check_smbv2_dos(host)
|
|||
string.char(0x4d, 0x20, 0x30, 0x2e, 0x31, 0x32, 0x00, 0x02, 0x53, 0x4d, 0x42, 0x20, 0x32, 0x2e) ..
|
||||
string.char(0x30, 0x30, 0x32, 0x00)
|
||||
|
||||
local socket = nmap:new_socket()
|
||||
local socket = nmap.new_socket()
|
||||
if(socket == nil) then
|
||||
return false, "Couldn't create socket"
|
||||
end
|
||||
|
|
@ -398,7 +398,7 @@ local function check_smbv2_dos(host)
|
|||
stdnse.sleep(5)
|
||||
|
||||
-- Create a new socket
|
||||
socket = nmap:new_socket()
|
||||
socket = nmap.new_socket()
|
||||
if(socket == nil) then
|
||||
return false, "Couldn't create socket"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue