Land #10683, to_s fixes for Heartbleed
parent
53c1adcb41
commit
6c2d09d4e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue