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:
@@ -23,6 +23,15 @@ require 'unpwdb'
|
||||
-- Revised 01/23/2010 - v0.2 - revised by Patrik Karlsson, changed username, password loop, added credential storage for other mysql scripts, added timelimit
|
||||
-- Revised 01/23/2010 - v0.3 - revised by Patrik Karlsson, fixed bug showing account passwords detected twice
|
||||
|
||||
-- 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