mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 20:39:02 +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:
@@ -29,6 +29,7 @@ categories = {"intrusive", "auth"}
|
||||
require 'shortport'
|
||||
require 'stdnse'
|
||||
require 'unpwdb'
|
||||
require 'openssl'
|
||||
|
||||
-- Version 0.3
|
||||
-- Created 01/15/2010 - v0.1 - created by Patrik Karlsson <patrik@cqure.net>
|
||||
@@ -36,18 +37,6 @@ require 'unpwdb'
|
||||
-- Revised 03/04/2010 - v0.3 - added code from ssh-hostkey.nse to check for SSL support
|
||||
-- - added support for trusted authentication method
|
||||
|
||||
-- ripped from ssh-hostkey.nse
|
||||
-- openssl is required for this script
|
||||
if pcall(require,"openssl") then
|
||||
require("pgsql")
|
||||
else
|
||||
portrule = function() return false end
|
||||
action = function() end
|
||||
stdnse.print_debug( 3, "Skipping %s script because OpenSSL is missing.",
|
||||
SCRIPT_NAME)
|
||||
return;
|
||||
end
|
||||
|
||||
portrule = shortport.port_or_service(5432, "postgresql")
|
||||
|
||||
--- Connect a socket to the server with or without SSL
|
||||
|
||||
Reference in New Issue
Block a user