From 8d212849dc8c35dc9ddb559f0511eca85e2a1db3 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 22 Feb 2012 16:04:24 -0600 Subject: [PATCH] Fix typos that result in stack traces when matching the response codes --- modules/auxiliary/scanner/http/http_login.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/http/http_login.rb b/modules/auxiliary/scanner/http/http_login.rb index 3b400291ce..41a614db24 100644 --- a/modules/auxiliary/scanner/http/http_login.rb +++ b/modules/auxiliary/scanner/http/http_login.rb @@ -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({