
This tool allows you to send Java bytecode in the form of class files to your clients (or potential targets) to load and execute using Java ClassLoader together with Reflect API. The client receives the class file from the server and return the respective execution output. Payloads must be written in Java and compiled before starting the server.
- Client-server architecture
- Remote loading of Java class files
- In-transit encryption using ChaCha20 cipher
- Settings defined via args
- Keepalive mechanism to re-establish communication if server restarts
Tool has been tested using OpenJDK 11 with JRE Java Package, both on Windows and Linux (zip portable version). Java version should be 11 or higher due to dependencies.
https://www.openlogic.com/openjdk-downloads
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ java -jar java-class-loader.jar -help usage: Main -address address to connect (client) / to bind (server) -classfile filename of bytecode .class file to load remotely (default: Payload.class) -classmethod name of method to invoke (default: exec) -classname name of class (default: Payload) -client run as client -help print this message -keepalive keeps the client getting classfile from server every X seconds (default: 3 seconds) -key secret key – 256 bits in base64 format (if not specified it will generate a new one) -port port to connect (client) / to bind (server) -server run as server” dir=”auto”>
$ java -jar java-class-loader.jar -helpusage: Main
-address <arg> address to connect (client) / to bind (server)
-classfile <arg> filename of bytecode .class file to load remotely
(default: Payload.class)
-classmethod <arg> name of method to invoke (default: exec)
-classname <arg> name of class (default: Payload)
-client run as client
-help print this message
-keepalive keeps the client getting classfile from server every
X seconds (default: 3 seconds)
-key <arg> secret key - 256 bits in base64 format (if not
specified it will generate a new one)
-port <arg> port to connect (client) / to bind (server)
-server run as server