Skip to content

Commit 5802196

Browse files
committed
Oof, missed the parens...
1 parent aa22651 commit 5802196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/http/mantisbt_password_reset.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def check
4444
'method'=>'GET'
4545
})
4646

47-
if res && res.body && res.body.include? 'Powered by <a href="http://www.mantisbt.org" title="bug tracking software">MantisBT'
47+
if res && res.body && res.body.include?('Powered by <a href="http://www.mantisbt.org" title="bug tracking software">MantisBT')
4848
vprint_status("MantisBT detected")
4949
return Exploit::CheckCode::Detected
5050
else
@@ -104,7 +104,7 @@ def run
104104
'cookie' => cookie
105105
})
106106

107-
if res && res.body && res.body.include? 'Password successfully updated'
107+
if res && res.body && res.body.include?('Password successfully updated')
108108
print_good("Password successfully changed to '#{password}'.")
109109
else
110110
fail_with(Failure::UnexpectedReply, 'Something went wrong, the password was not changed.')

0 commit comments

Comments
 (0)