From 353291aebaff38911cf9f287e020dd0d23531522 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 10 Apr 2014 20:53:12 +0000 Subject: [PATCH] Remove hardcoded TLSv1.1 from heartbeat message build --- scripts/ssl-heartbleed.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ssl-heartbleed.nse b/scripts/ssl-heartbleed.nse index 337e8ddaa..fec7839a2 100644 --- a/scripts/ssl-heartbleed.nse +++ b/scripts/ssl-heartbleed.nse @@ -144,7 +144,7 @@ local function testversion(host, port, version) }) local payload = "Nmap ssl-heartbleed" - local hb = tls.record_write("heartbeat", "TLSv1.1", bin.pack("C>SA", + local hb = tls.record_write("heartbeat", version, bin.pack("C>SA", 1, -- HeartbeatMessageType heartbeat_request 0x0fe9, -- payload length (falsified) -- payload length is based on 4096 - 16 bytes padding - 8 bytes packet