File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ def target_url
58
58
end
59
59
60
60
def has_j_security_check?
61
- print_status ( "#{ target_url } - Checking j_security_check..." )
61
+ vprint_status ( "#{ target_url } - Checking j_security_check..." )
62
62
res = send_request_raw ( { 'uri' => normalize_uri ( datastore [ 'URI' ] ) } )
63
63
if res
64
- print_status ( "#{ target_url } - Server returned: #{ res . code . to_s } " )
64
+ vprint_status ( "#{ target_url } - Server returned: #{ res . code . to_s } " )
65
65
return true if res . code == 200 or res . code == 302
66
66
end
67
67
@@ -106,7 +106,7 @@ def do_login(user)
106
106
107
107
if res and res . code == 200 and res . headers [ 'Set-Cookie' ]
108
108
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
110
110
vprint_error ( "#{ target_url } - Apache Tomcat #{ user } not found " )
111
111
elsif res and res . code == 500
112
112
# Based on: http://archives.neohapsis.com/archives/bugtraq/2009-06/0047.html
You can’t perform that action at this time.
0 commit comments