mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 21:51:28 +00:00
Check the appropriate functions in portrules for SSL/TLS
This commit is contained in:
@@ -72,7 +72,7 @@ categories = { "vuln", "safe" }
|
||||
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
||||
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
end
|
||||
|
||||
local Error = {
|
||||
|
||||
@@ -119,7 +119,7 @@ categories = { "default", "safe", "discovery" }
|
||||
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
end
|
||||
|
||||
-- Find the index of a value in an array.
|
||||
|
||||
@@ -39,7 +39,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||
categories = {"discovery", "safe", "default"}
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
||||
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
end
|
||||
|
||||
-- Miscellaneous script-wide constants
|
||||
|
||||
@@ -45,7 +45,7 @@ categories = { "vuln", "safe" }
|
||||
local arg_protocols = stdnse.get_script_args(SCRIPT_NAME .. ".protocols") or {'TLSv1.0', 'TLSv1.1', 'TLSv1.2'}
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
||||
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
end
|
||||
|
||||
local function recvhdr(s)
|
||||
|
||||
Reference in New Issue
Block a user