mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 21:59:02 +00:00
Remove hardcoded TLSv1.1 from heartbeat message build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user