File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def check
44
44
'method' => 'GET'
45
45
} )
46
46
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' )
48
48
vprint_status ( "MantisBT detected" )
49
49
return Exploit ::CheckCode ::Detected
50
50
else
@@ -104,7 +104,7 @@ def run
104
104
'cookie' => cookie
105
105
} )
106
106
107
- if res && res . body && res . body . include? 'Password successfully updated'
107
+ if res && res . body && res . body . include? ( 'Password successfully updated' )
108
108
print_good ( "Password successfully changed to '#{ password } '." )
109
109
else
110
110
fail_with ( Failure ::UnexpectedReply , 'Something went wrong, the password was not changed.' )
You can’t perform that action at this time.
0 commit comments