1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Add parsing support for TLS heartbeat ContentType

This commit is contained in:
dmiller
2014-04-08 20:12:22 +00:00
parent c87a4f1b3f
commit 9e601256c6

View File

@@ -687,8 +687,14 @@ function record_read(buffer, i)
b["compressor"] = find_key(COMPRESSORS, b["compressor"])
else
-- TODO: implement other handshake message types
stdnse.print_debug(2, "Unknown handshake message type: %s", b["type"])
j = msg_end
end
elseif h["type"] == "heartbeat" then
j, b["type"], b["payload_length"] = bin.unpack("C>S", buffer, j)
j, b["payload"], b["padding"] = bin.unpack("PP", buffer, j)
else
stdnse.print_debug("Unknown message type: %s", h["type"])
end
end