mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +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:
@@ -56,18 +56,9 @@ categories = {"safe","default","discovery"}
|
||||
|
||||
require("shortport")
|
||||
require("stdnse")
|
||||
|
||||
-- openssl is required for this script
|
||||
if pcall(require,"openssl") then
|
||||
require("ssh1")
|
||||
require("ssh2")
|
||||
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("ssh1")
|
||||
require("ssh2")
|
||||
|
||||
portrule = shortport.port_or_service(22, "ssh")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user