Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from mogwailabs/jmxmp
Browse files Browse the repository at this point in the history
Merging JMXMP support
  • Loading branch information
h0ng10 authored Mar 28, 2020
2 parents 4836f0e + 24d7488 commit eb520ab
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 69 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.jar
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ information can be found [here](https://www.optiv.com/blog/exploiting-jmx-rmi) a

* [Jython 2.7](https://www.jython.org/)
* [Ysoserial](https://github.com/frohoff/ysoserial) (for exploiting deserialisation vulnerabilities via JMX)
* [opendmk_jmxremote_optional_jar-1.0-b01-ea.jar](https://mvnrepository.com/artifact/org.glassfish.external/opendmk_jmxremote_optional_jar/1.0-b01-ea) (to support the alternative JMX Message Protocol (JMXMP))

## Usage

Expand All @@ -31,6 +32,9 @@ Optional arguments (if JMX authentication is enabled):
* **--jmxrole** - the username
* **--jmxpassword** - the password

Optional argument (if target uses JMXMP):
* **--jmxmp** - no arguments

### Modes and modeOptions

* **install** - installs the payload in the current target
Expand Down Expand Up @@ -277,6 +281,14 @@ MJET - MOGWAI LABS JMX Exploitation Toolkit
```

### JMX message protocol

Download [opendmk_jmxremote_optional_jar-1.0-b01-ea.jar](https://mvnrepository.com/artifact/org.glassfish.external/opendmk_jmxremote_optional_jar/1.0-b01-ea) and move it into the jars directory. You need to add this directory to the classpath via `java -cp`.

```bash
java -cp "jython.jar:jars/*" org.python.util.jython mjet.py shell mypass
```

## Contributing

Feel free to contribute.
Expand All @@ -288,6 +300,7 @@ Feel free to contribute.
* **Ben Campbell** - *Several improvements* - [Meatballs1](https://github.com/Meatballs1)
* **Arnim Rupp** - *Authentication support*
* **Sebastian Kindler** - *Deserialization support*
* **Karsten Zeides** - *JMX Message Protocol support* [zeides](https://github.com/zeides)

See also the list of [contributors](https://github.com/mogwailabs/sjet/graphs/contributors) who participated in this project.

Expand Down
Empty file added jars/.keep
Empty file.
Loading

0 comments on commit eb520ab

Please sign in to comment.