Uses #blank?

bug/bundler_fix
wchen-r7 2016-04-04 16:34:49 -05:00
parent 5a6d1ee0a9
commit da3388248a
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class MetasploitModule < Msf::Auxiliary
# Retrieve the supplied registry key # Retrieve the supplied registry key
# #
def dump_key(reg_key) def dump_key(reg_key)
if reg_key.nil? || reg_key.empty? if reg_key.blank?
fail_with(Failure::BadConfig, "#{peer} - Please supply a valid key name") fail_with(Failure::BadConfig, "#{peer} - Please supply a valid key name")
end end
hive = reg_key.split('\\').first hive = reg_key.split('\\').first
@ -124,7 +124,7 @@ class MetasploitModule < Msf::Auxiliary
# #
def dump_all def dump_all
hives = retrieve_hive_list hives = retrieve_hive_list
if hives.nil? || hives.empty? if hives.blank?
print_error("#{peer} - Found no registry hives") print_error("#{peer} - Found no registry hives")
return return
end end