mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01: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)
|
portrule = function(host, port)
|
||||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||||
end
|
end
|
||||||
|
|
||||||
local Error = {
|
local Error = {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ categories = { "default", "safe", "discovery" }
|
|||||||
|
|
||||||
|
|
||||||
portrule = function(host, port)
|
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
|
end
|
||||||
|
|
||||||
-- Find the index of a value in an array.
|
-- 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"}
|
categories = {"discovery", "safe", "default"}
|
||||||
|
|
||||||
portrule = function(host, port)
|
portrule = function(host, port)
|
||||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Miscellaneous script-wide constants
|
-- 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'}
|
local arg_protocols = stdnse.get_script_args(SCRIPT_NAME .. ".protocols") or {'TLSv1.0', 'TLSv1.1', 'TLSv1.2'}
|
||||||
|
|
||||||
portrule = function(host, port)
|
portrule = function(host, port)
|
||||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function recvhdr(s)
|
local function recvhdr(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user