parent
fc3094ec9b
commit
27c412341f
|
@ -95,7 +95,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'data' => data
|
||||
})
|
||||
|
||||
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?
|
||||
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue