tomcat_exploit
Checks Apache Tomcat exposure, brute-forces manager credentials, reads files via Ghostcat AJP, uploads JSP shells via CVE-2017-12617, and deploys WAR shells for authorized penetration testing.
Instructions
šÆ Tomcat attack workflow.
action options: "check" ā version + manager availability + AJP status "brute" ā brute force manager credentials "ghostcat" ā CVE-2020-1938 file read via AJP (no auth) "deploy_war" ā deploy WAR shell (needs manager creds) "put_jsp" ā CVE-2017-12617 PUT JSP upload (no auth)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "tomcat_exploit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 8080 | |
| lhost | No | ||
| lport | No | 4444 | |
| action | No | check | |
| target | Yes | ||
| ajp_port | No | 8009 | |
| password | No | ||
| username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |