Skip to content

Commit 27c4123

Browse files
committed
Syntax Changes
Cleaned up this statement a tiny bit
1 parent fc3094e commit 27c4123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def exploit
9595
'data' => data
9696
})
9797

98-
if res.nil? || res.headers['Location'] =~ /action=Login/ || res.get_cookies.empty?
98+
if res.nil? || res.headers['Location'].include? ('action=Login') || res.get_cookies.empty?
9999
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
100100
end
101101

0 commit comments

Comments
 (0)