mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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:
@@ -27,20 +27,10 @@ categories = {"discovery", "intrusive"}
|
||||
require 'shortport'
|
||||
require 'stdnse'
|
||||
require 'mysql'
|
||||
require 'openssl'
|
||||
|
||||
dependencies = {"mysql-brute", "mysql-empty-password"}
|
||||
|
||||
-- ripped from ssh-hostkey.nse
|
||||
-- openssl is required for this script
|
||||
if not pcall(require,"openssl") then
|
||||
portrule = function() return false end
|
||||
action = function() end
|
||||
stdnse.print_debug( 3, "Skipping %s script because OpenSSL is missing.",
|
||||
SCRIPT_NAME)
|
||||
return;
|
||||
end
|
||||
|
||||
|
||||
-- Version 0.1
|
||||
-- Created 01/23/2010 - v0.1 - created by Patrik Karlsson
|
||||
|
||||
|
||||
Reference in New Issue
Block a user