Land #12500, Use check_code.message, not .second

This commit is contained in:
Brent Cook 2019-10-29 03:26:38 -05:00
commit effc8cbe72
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
2 changed files with 4 additions and 4 deletions

View File

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

View File

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