Land #12500, Use check_code.message, not .second
This commit is contained in:
commit
effc8cbe72
|
@ -89,7 +89,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
vprint_status("Checking if it's a vulnerable ElasticSearch")
|
||||
|
||||
check_code = check_host(ip)
|
||||
print_status("#{check_code.second}")
|
||||
print_status("#{check_code.message}")
|
||||
if check_host(ip) != Exploit::CheckCode::Appears
|
||||
return
|
||||
end
|
||||
|
|
|
@ -127,13 +127,13 @@ class MetasploitModule < Msf::Post
|
|||
|
||||
# See def is_check_interesting?
|
||||
unless is_check_interesting? checkcode
|
||||
vprint_status "#{m.fullname}: #{checkcode.second}"
|
||||
vprint_status "#{m.fullname}: #{checkcode.message}"
|
||||
next
|
||||
end
|
||||
|
||||
# Prints the full name and the checkcode message for the exploit
|
||||
print_good "#{m.fullname}: #{checkcode.second}"
|
||||
results << [m.fullname, checkcode.second]
|
||||
print_good "#{m.fullname}: #{checkcode.message}"
|
||||
results << [m.fullname, checkcode.message]
|
||||
|
||||
# If the datastore option is true, a detailed description will show
|
||||
next unless datastore['SHOWDESCRIPTION']
|
||||
|
|
Loading…
Reference in New Issue