Fix typos that result in stack traces when matching the response codes
parent
3fecda95be
commit
8d212849dc
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue