Land #3295 - Fix NoMethodError undefined method `body' for nil:NilClass

bug/bundler_fix
sinn3r 2014-04-24 13:53:58 -05:00
commit 1353c62967
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 5 additions and 2 deletions

View File

@ -315,9 +315,12 @@ class Metasploit3 < Msf::Exploit::Remote
'uri' => path
}, 20)
if (res) && (res.code == 401)
fail_with(Failure::NoAccess,"Unable to bypass authentication. Try changing the verb to HEAD to exploit CVE-2010-0738.")
end
if (not res) or (res.code != 200)
print_error("Failed: Error requesting #{path}")
return nil
fail_with(Failure::Unknown,"Failed: Error requesting #{path}")
end
res