mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 13:19:04 +00:00
Patch to make require errors silent and removed evil workarounds.
Added new stdnse function stdnse.print_verbose (similar to print_debug).
This commit is contained in:
@@ -37,6 +37,7 @@ require "http"
|
||||
require "stdnse"
|
||||
require "datafiles"
|
||||
require "nsedebug"
|
||||
require "openssl"
|
||||
|
||||
portrule = shortport.http
|
||||
|
||||
@@ -55,12 +56,6 @@ action = function(host, port)
|
||||
return
|
||||
end
|
||||
|
||||
if not pcall(require,'openssl') then
|
||||
stdnse.print_debug( 3, "Skipping %s script because OpenSSL is missing.",
|
||||
SCRIPT_NAME)
|
||||
return
|
||||
end
|
||||
|
||||
if(nmap.registry.args['favicon.root']) then
|
||||
root = nmap.registry.args['favicon.root']
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user