Land #3295 - Fix NoMethodError undefined method `body' for nil:NilClass
commit
1353c62967
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue