Skip to content

Commit

Permalink
Oof, missed the parens...
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarry-r7 committed Jul 12, 2017
1 parent aa22651 commit 5802196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auxiliary/admin/http/mantisbt_password_reset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def check
'method'=>'GET'
})

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

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

0 comments on commit 5802196

Please sign in to comment.