1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 05:01:29 +00:00

more stdnse.print_debug -> stdnse.debug

$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug\1("\2"/' *.nse
$ sed -i 's/stdnse.print_debug( *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
This commit is contained in:
batrick
2014-08-02 02:08:12 +00:00
parent a763dc81a8
commit d47acf9f5e
49 changed files with 162 additions and 162 deletions

View File

@@ -78,7 +78,7 @@ local function check_injection_response(response)
if errorstrings then
for _,e in ipairs(errorstrings) do
if string.find(body, e) then
stdnse.print_debug(2, "%s: error string matched: %s", SCRIPT_NAME, e)
stdnse.debug2("error string matched: %s", e)
return true
end
end
@@ -192,7 +192,7 @@ local function check_form(form, host, port, path)
for _,field in ipairs(form["fields"]) do
if sqli_field(field["type"]) then
stdnse.print_debug(2, "%s: checking field %s", SCRIPT_NAME, field["name"])
stdnse.debug2("checking field %s", field["name"])
postdata[field["name"]] = "' OR sqlspider"
response = sending_function(postdata)
if response and response.body and response.status==200 then