Skip to content

Commit f521e7d

Browse files
committed
Use newer Ruby hash syntax
1 parent c93dc04 commit f521e7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/actualanalyzer_ant_cookie_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def get_analytics_host_admin
212212
nil
213213
end
214214

215-
def execute_command(cmd, opts = { :analytics_host => vhost })
215+
def execute_command(cmd, opts = { analytics_host: vhost })
216216
vuln_cookies = %w(anw anm)
217217
res = send_request_cgi(
218218
'uri' => normalize_uri(target_uri.path, 'aa.php'),
@@ -249,7 +249,7 @@ def exploit
249249
analytics_hosts.uniq.each do |host|
250250
next if host.nil?
251251
vprint_status("#{peer} - Trying hostname '#{host}' - Sending payload (#{payload.encoded.length} bytes)...")
252-
break if execute_command(payload.encoded, { :analytics_host => host })
252+
break if execute_command(payload.encoded, analytics_host: host)
253253
end
254254
end
255255
end

0 commit comments

Comments
 (0)