qtc-de / beanshooter

JMX enumeration and attacking tool.
GNU General Public License v3.0
378 stars 45 forks source link

Add JMXMP support #1

Closed qtc-de closed 4 years ago

qtc-de commented 4 years ago

Recently I found a host that only supported the JMXMP protocol for JMX connections. It was quite easy to adopt the tool, but I think implementing this as a feature would be nice. To support it, one needs fist of all a jmxremote_optional.jar, which has unfortunately no official maven repository anymore. However, it can be loaded using a glassfish groupId.

<dependency>
    <groupId>org.glassfish.external</groupId>
    <artifactId>opendmk_jmxremote_optional_jar</artifactId>
    <version>1.0-b01-ea</version>
</dependency>

After adding this to the pom.xml one does only need to change the URI of the jmx service to:

service:jmx:jmxmp://<HOST>:<PORT>
qtc-de commented 4 years ago

Implemented as requested in pull-request #2.