Skip to content

Commit a2d6c58

Browse files
author
Tod Beardsley
committed
Changing << to + per @jlee-r7
1 parent 1a73206 commit a2d6c58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/scanner/ssl/openssl_heartbleed.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ def test_host(ip, safe = false)
265265

266266
vprint_status("#{peer} - Sending Heartbeat...")
267267
if safe
268-
sock.put(heartbeat(max_record_length - 3, safe) << heartbeat(0, safe))
268+
# 3 is magical. As you know.
269+
sock.put(heartbeat(max_record_length - 3, safe) + heartbeat(0, safe))
269270
else
270271
sock.put(heartbeat(heartbeat_length))
271272
end

0 commit comments

Comments
 (0)