From 6c2d09d4e404b92987c2ac3f0bfc7d01df5bf667 Mon Sep 17 00:00:00 2001 From: William Vu Date: Thu, 20 Sep 2018 21:29:19 -0500 Subject: [PATCH] Land #10683, to_s fixes for Heartbleed --- modules/auxiliary/scanner/ssl/openssl_heartbleed.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb index 2d20fad501..6d4ec58041 100644 --- a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb +++ b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb @@ -219,7 +219,7 @@ class MetasploitModule < Msf::Auxiliary 1.upto(leak_count) do |count| vprint_status("Leaking heartbeat response ##{count}") - bleeded << (bleed || '') + bleeded << bleed.to_s end loot_and_report(bleeded) @@ -509,7 +509,7 @@ class MetasploitModule < Msf::Auxiliary # Stores received data def loot_and_report(heartbeat_data) - if heartbeat_data.nil? || heartbeat_data.empty? + if heartbeat_data.to_s.empty? vprint_error("Looks like there isn't leaked information...") return end