Fix typos that result in stack traces when matching the response codes

unstable
HD Moore 2012-02-22 16:04:24 -06:00
parent 3fecda95be
commit 8d212849dc
1 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ class Metasploit3 < Msf::Auxiliary
return :abort if (res.code == 404)
if [200, 301, 302].include?(resp.code)
if [200, 301, 302].include?(res.code)
@proof = res
return :success
end
@ -304,7 +304,7 @@ class Metasploit3 < Msf::Auxiliary
return :abort if (res.code == 404)
if ( [200, 301, 302].include?(resp.code) ) or (res.code == 201)
if ( [200, 301, 302].include?(res.code) ) or (res.code == 201)
if ((res.code == 201) and (requesttype == "PUT"))
print_good("Trying to delete #{path}")
del_res,c = send_digest_request_cgi({