1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-08 22:46:34 +00:00

more stdnse.print_debug -> stdnse.debug

Manual corrections.
This commit is contained in:
batrick
2014-08-02 03:15:44 +00:00
parent 6e3bde5de5
commit 91a106e7d5
26 changed files with 80 additions and 209 deletions

View File

@@ -106,8 +106,7 @@ local function kill_proftpd(socket)
local killed = false
local TELNET_KILL = '\000'..'\255' -- TELNET_DUMMY..TELNET_IAC
stdnse.print_debug(2, "%s: sending evil TELNET_IAC commands.",
SCRIPT_NAME)
stdnse.debug2("sending evil TELNET_IAC commands.")
local st, ret = socket:send(string.rep(TELNET_KILL, 4069)..
'\255'..string.rep("Nmap", 256).."\n")
if not st then
@@ -118,8 +117,7 @@ local function kill_proftpd(socket)
st, ret = socket:receive_lines(1)
if not st then
if ret == "EOF" then -- "connection closed"
stdnse.print_debug(2, "%s: remote proftpd child was killed.",
SCRIPT_NAME)
stdnse.debug2("remote proftpd child was killed.")
killed = true
else
return st, ret