mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +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:
@@ -34,15 +34,8 @@ categories = {"intrusive", "auth"}
|
||||
|
||||
require 'shortport'
|
||||
require 'unpwdb'
|
||||
if pcall(require,"openssl") then
|
||||
require("tns")
|
||||
else
|
||||
portrule = function() return false end
|
||||
action = function() end
|
||||
stdnse.print_debug( 3, "Skipping %s script because OpenSSL is missing.",
|
||||
SCRIPT_NAME)
|
||||
return;
|
||||
end
|
||||
require 'openssl'
|
||||
require 'tns'
|
||||
|
||||
portrule = shortport.port_or_service(1521, 'oracle-tns' )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user