From f0dd1b8c8d71d8c163e1471d1b272963391b20ec Mon Sep 17 00:00:00 2001 From: nnposter Date: Tue, 27 Nov 2018 19:28:24 +0000 Subject: [PATCH] Variable is_ssl is not a flag but a protocol string. Fixes #1400 --- scripts/https-redirect.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/https-redirect.nse b/scripts/https-redirect.nse index 3916adf55..be8e1d48b 100644 --- a/scripts/https-redirect.nse +++ b/scripts/https-redirect.nse @@ -44,7 +44,7 @@ action = function (host, port) return nil end socket:close() - if is_ssl then + if is_ssl == "ssl" then -- Unlikely, but we could have negotiated SSL already. port.version.service_tunnel = "ssl" nmap.set_port_version(host, port, "softmatched")