Land #10683, to_s fixes for Heartbleed

4.x
William Vu 2018-09-20 21:29:19 -05:00 committed by Metasploit
parent 53c1adcb41
commit 6c2d09d4e4
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ class MetasploitModule < Msf::Auxiliary
1.upto(leak_count) do |count| 1.upto(leak_count) do |count|
vprint_status("Leaking heartbeat response ##{count}") vprint_status("Leaking heartbeat response ##{count}")
bleeded << (bleed || '') bleeded << bleed.to_s
end end
loot_and_report(bleeded) loot_and_report(bleeded)
@ -509,7 +509,7 @@ class MetasploitModule < Msf::Auxiliary
# Stores received data # Stores received data
def loot_and_report(heartbeat_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...") vprint_error("Looks like there isn't leaked information...")
return return
end end