1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +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:
david
2012-10-18 03:47:22 +00:00
parent f8b8cd6b91
commit 3c87635ae8

View File

@@ -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