mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
o [NSE] Added checks for missing OpenSSL to MySQL scripts and library [Patrik]
This commit is contained in:
@@ -40,6 +40,16 @@ dependencies = {"mysql-brute", "mysql-empty-password"}
|
||||
-- Version 0.1
|
||||
-- Created 01/23/2010 - v0.1 - created by Patrik Karlsson <patrik@cqure.net>
|
||||
|
||||
-- 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.", filename )
|
||||
return;
|
||||
end
|
||||
|
||||
|
||||
portrule = shortport.port_or_service(3306, "mysql")
|
||||
|
||||
action = function( host, port )
|
||||
|
||||
Reference in New Issue
Block a user