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