1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

nselib stdnse.print_debug -> stdnse.debug

$ f() { find -name \*.lua -exec /bin/echo sed -i "$1" {} \; ; }
$ f 's/stdnse.print_debug( *\([0-9]*\) *, */stdnse.debug\1(/'
$ f 's/stdnse.print_debug( *"\(.*\))/stdnse.debug1("\1)/'
This commit is contained in:
batrick
2014-08-03 00:56:45 +00:00
parent a809f52d5d
commit ee6622aea4
67 changed files with 1092 additions and 1092 deletions

View File

@@ -100,7 +100,7 @@ function test_get(host, port, proxyType, test_url, hostname, pattern)
return false, socket
end
local req = "GET " .. test_url .. " HTTP/1.0\r\nHost: " .. hostname .. "\r\n\r\n"
stdnse.print_debug("GET Request: " .. req)
stdnse.debug1("GET Request: " .. req)
return test(socket, req, pattern)
end
@@ -118,7 +118,7 @@ function test_head(host, port, proxyType, test_url, hostname, pattern)
return false, socket
end
local req = "HEAD " .. test_url .. " HTTP/1.0\r\nHost: " .. hostname .. "\r\n\r\n"
stdnse.print_debug("HEAD Request: " .. req)
stdnse.debug1("HEAD Request: " .. req)
return test(socket, req, pattern)
end
@@ -134,7 +134,7 @@ function test_connect(host, port, proxyType, hostname)
return false, socket
end
local req = "CONNECT " .. hostname .. ":80 HTTP/1.0\r\n\r\n"
stdnse.print_debug("CONNECT Request: " .. req)
stdnse.debug1("CONNECT Request: " .. req)
return test(socket, req, false)
end
@@ -262,7 +262,7 @@ function socksHandshake(socket, version, hostname)
err = "Authentication Required"
else
-- If no Auth is required, try to establish connection
stdnse.print_debug("Socks5: No authentication required")
stdnse.debug1("Socks5: No authentication required")
-- Socks5 second payload: Version, Command, Null, Address type, Ip-Address, Port number
paystring = '05 01 00 01 ' .. sip .. '00 50'
payload = bin.pack("H",paystring)