mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Compatibility check for ssl-poodle
This commit is contained in:
parent
29ce5da5a1
commit
eeb5f41932
1 changed files with 8 additions and 2 deletions
|
|
@ -313,9 +313,15 @@ local function check_fallback_scsv(host, port, protocol, ciphers)
|
|||
t["ciphers"] = tcopy(ciphers)
|
||||
t.ciphers[#t.ciphers+1] = "TLS_FALLBACK_SCSV"
|
||||
|
||||
local record = try_params(host, port, t)
|
||||
local checked, record = pcall(try_params, host, port, t)
|
||||
-- TODO: remove this check after the next release.
|
||||
-- Users are using this script without the necessary tls.lua changes
|
||||
if not checked then
|
||||
stdnse.print_verbose(1, "You have an out-of-date version of tls.lua. Some checks were skipped.")
|
||||
return nil
|
||||
end
|
||||
|
||||
if record["type"] == "alert" and record["body"][1]["description"] == "inappropriate_fallback" then
|
||||
if record and record["type"] == "alert" and record["body"][1]["description"] == "inappropriate_fallback" then
|
||||
ctx_log(2, protocol, "TLS_FALLBACK_SCSV rejected properly.")
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue