Skip to content

Commit 1446a56

Browse files
authored
Merge pull request #6 from h00die/tomcat_admin_docs
markdown docs
2 parents c31d398 + 553221a commit 1446a56

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Vulnerable Application
2+
3+
The administrator application was removed as of Tomcat 6. Tomcat 5.5.36 is available from [apache](https://archive.apache.org/dist/tomcat/tomcat-5/v5.5.36/). This does not have the `admin` app bundled though, and can be downloaded [here](https://archive.apache.org/dist/tomcat/tomcat-5/v5.5.36/bin/apache-tomcat-5.5.36-admin.zip).
4+
5+
To utilize the `admin` application, a user must have the permission `admin` applied to their account. The following user line will handle all necessary permissions: `<user username="tomcat" password="tomcat" roles="admin"/>`.
6+
7+
## Verification Steps
8+
9+
1. Install Tomcat 5.5 or older
10+
2. Install the admin app
11+
3. Start msfconsole
12+
4. Do: ```use auxiliary/admin/http/tomcat_administration```
13+
5. Do: ```set rhosts <ips>```
14+
6. Do: ```set tomcat_user <username>```
15+
7. Do: ```set tomcat_pass <username>```
16+
8. Do: ```set rport <port>```
17+
9. Do: ```run```
18+
10. Find all the Tomcat admin portals
19+
20+
## Options
21+
22+
**rport**
23+
24+
The default is set to `8180`, which is only default on FreeBSD. All other operating systems, and the software itself, default to `8080`.
25+
26+
## Scenarios
27+
28+
Example run against Tomcat 5.5.36 with admin module installed against Windows XP
29+
30+
```
31+
msf > use auxiliary/admin/http/tomcat_administration
32+
msf auxiliary(tomcat_administration) > set rport 8085
33+
rport => 8085
34+
msf auxiliary(tomcat_administration) > set rhosts 192.168.2.108
35+
rhosts => 192.168.2.108
36+
msf auxiliary(tomcat_administration) > set verbose true
37+
verbose => true
38+
msf auxiliary(tomcat_administration) > set tomcat_pass tomcat
39+
tomcat_pass => tomcat
40+
msf auxiliary(tomcat_administration) > set tomcat_user tomcat
41+
tomcat_user => tomcat
42+
msf auxiliary(tomcat_administration) > run
43+
44+
[*] http://192.168.2.108:8085/admin [Apache-Coyote/1.1] [Apache Tomcat/5.5.36] [Tomcat Server Administration] [tomcat/tomcat]
45+
[*] Scanned 1 of 1 hosts (100% complete)
46+
[*] Auxiliary module execution completed
47+
```

0 commit comments

Comments
 (0)