mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 21:29:01 +00:00
Let ssl-cert grab certs from DTLS services. Fix rules for TCP-only scripts
This commit is contained in:
@@ -47,7 +47,7 @@ dependencies = {"https-redirect"}
|
||||
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.getPrepareTLSWithoutReconnect(port)
|
||||
return port.protocol == "tcp" and (shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port))
|
||||
end
|
||||
|
||||
local function recvhdr(s)
|
||||
|
||||
Reference in New Issue
Block a user