Prefer to_s.empty?

Oh, hell, do it here, too.
GSoC/Meterpreter_Web_Console
William Vu 2018-09-20 20:29:56 -05:00
parent c875f66154
commit 02f4fc1876
1 changed files with 1 additions and 1 deletions

View File

@ -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