return nil

bug/bundler_fix
Brendan Coles 2014-12-15 01:04:39 +11:00
parent 55d9e9cff6
commit 4530066187
1 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class Metasploit3 < Msf::Exploit::Remote
else
vprint_status("#{peer} - Could not find any hosts on view.php")
end
nil
end
#
@ -144,6 +145,7 @@ class Metasploit3 < Msf::Exploit::Remote
else
vprint_status("#{peer} - Could not find any hosts on code.php")
end
nil
end
#
@ -207,6 +209,7 @@ class Metasploit3 < Msf::Exploit::Remote
else
vprint_status("#{peer} - Could not find any hosts on admin.php")
end
nil
end
def execute_command(cmd, opts = { :analytics_host => vhost })
@ -228,6 +231,7 @@ class Metasploit3 < Msf::Exploit::Remote
else
fail_with(Failure::Unknown, "#{peer} - Something went wrong")
end
nil
end
def exploit
@ -243,6 +247,7 @@ class Metasploit3 < Msf::Exploit::Remote
analytics_hosts << datastore['ANALYZER_HOST']
end
analytics_hosts.uniq.each do |host|
next if host.nil?
vprint_status("#{peer} - Trying hostname '#{host}' - Sending payload (#{payload.encoded.length} bytes)...")
break if execute_command(payload.encoded, { :analytics_host => host })
end