Skip to content

Commit 862af07

Browse files
committed
fix bug
1 parent d007b72 commit 862af07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/mantisbt_php_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def do_login()
9191
})
9292
fail_with(Failure::NoAccess, 'Login failed') unless res && res.code == 302
9393

94-
fail_with(Failure::NoAccess, 'Wrong credentials') unless res && res.redirection.to_s.include?('login_page.php')
94+
fail_with(Failure::NoAccess, 'Wrong credentials') unless res && !res.redirection.to_s.include?('login_page.php')
9595

9696
session_cookie = "#{session_cookie} #{res.get_cookies}"
9797
end

0 commit comments

Comments
 (0)