From 1ffa6fd8c09793706fa8bc5edc7d17256ea7ee8f Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 11 Aug 2007 04:39:39 +0000 Subject: [PATCH] merge soc07 r4990 - fixed tiny oversight in nselib debug function --- nselib/stdnse.lua | 2 ++ scripts/showHTMLTitle.nse | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nselib/stdnse.lua b/nselib/stdnse.lua index b11fc2224..19efff9f4 100644 --- a/nselib/stdnse.lua +++ b/nselib/stdnse.lua @@ -1,3 +1,5 @@ +module(..., package.seeall) + print_debug = function(...) local verbosity = 1; if ((#arg > 1) and (tonumber(arg[1]))) then diff --git a/scripts/showHTMLTitle.nse b/scripts/showHTMLTitle.nse index e63cf8538..6cfef2cdc 100644 --- a/scripts/showHTMLTitle.nse +++ b/scripts/showHTMLTitle.nse @@ -12,6 +12,7 @@ license = "See nmaps COPYING for licence" categories = {"demo", "safe"} require "shortport" +require "stdnse" portrule = shortport.port_or_service(80, "http") @@ -50,7 +51,7 @@ action = function(host, port) if title ~= nil then result = string.gsub(title , "[\n\r\t]", "") if string.len(title) > 50 then - nmap.print_debug("showHTMLTitle.nse: Title got truncated!"); + stdnse.print_debug("showHTMLTitle.nse: Title got truncated!"); result = string.sub(result, 1, 62) .. "..." end else