Skip to content

Commit 10d8beb

Browse files
author
Tod Beardsley
committed
Start with a random username to test 401 codes
SeeRM rapid7#7991 While this fixes the specific case of tomcat_mgr_login, it doesn't address the general case where modules are attempting to test code 401 responses in order to determine if bruteforcing should continue.
1 parent f0e3b0c commit 10d8beb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/scanner/http/tomcat_mgr_login.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def run_host(ip)
7575
uri = normalize_uri(datastore['URI'])
7676
res = send_request_cgi({
7777
'uri' => uri,
78-
'method' => 'GET'
78+
'method' => 'GET',
79+
'username' => Rex::Text.rand_text_alpha(8)
7980
}, 25)
8081
http_fingerprint({ :response => res })
8182
rescue ::Rex::ConnectionError => e

0 commit comments

Comments
 (0)