We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3094e commit 27c4123Copy full SHA for 27c4123
modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb
@@ -95,7 +95,7 @@ def exploit
95
'data' => data
96
})
97
98
- if res.nil? || res.headers['Location'] =~ /action=Login/ || res.get_cookies.empty?
+ if res.nil? || res.headers['Location'].include? ('action=Login') || res.get_cookies.empty?
99
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
100
end
101
0 commit comments