Cleaned up double-negative logic.

Decreased default HTTPClientTimeout to 5 seconds.
bug/bundler_fix
Ben Lincoln 2015-07-01 09:34:11 -07:00
parent 6ceb734972
commit db721dff8e
1 changed files with 5 additions and 7 deletions

View File

@ -110,7 +110,7 @@ class Metasploit4 < Msf::Exploit::Remote
register_advanced_options(
[
OptInt.new('HTTPClientTimeout', [ true, 'HTTP read response timeout (seconds)', 10])
OptInt.new('HTTPClientTimeout', [ true, 'HTTP read response timeout (seconds)', 5])
], self.class)
end
@ -173,13 +173,11 @@ class Metasploit4 < Msf::Exploit::Remote
'data' => data
})
if not res.nil?
if res.code == 404
if res && res.code == 404
fail_with(Failure::Unreachable,
"#{rhost}:#{rport} - Received a 404 HTTP response - " +
"your TARGETURI value is most likely not correct")
end
end
end