Skip to content

Commit 780293d

Browse files
committed
Minor changes
1 parent a94c6aa commit 780293d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/tomcat_enum.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def target_url
5858
end
5959

6060
def has_j_security_check?
61-
print_status("#{target_url} - Checking j_security_check...")
61+
vprint_status("#{target_url} - Checking j_security_check...")
6262
res = send_request_raw({'uri' => normalize_uri(datastore['URI'])})
6363
if res
64-
print_status("#{target_url} - Server returned: #{res.code.to_s}")
64+
vprint_status("#{target_url} - Server returned: #{res.code.to_s}")
6565
return true if res.code == 200 or res.code == 302
6666
end
6767

@@ -106,7 +106,7 @@ def do_login(user)
106106

107107
if res and res.code == 200 and res.headers['Set-Cookie']
108108
vprint_error("#{target_url} - Apache Tomcat #{user} not found ")
109-
elsif res and res.body =~ /invalid username/i
109+
elsif res and res.code == 200 and res.body =~ /invalid username/i
110110
vprint_error("#{target_url} - Apache Tomcat #{user} not found ")
111111
elsif res and res.code == 500
112112
# Based on: http://archives.neohapsis.com/archives/bugtraq/2009-06/0047.html

0 commit comments

Comments
 (0)