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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user