1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00
metasploit-payloads/java
2014-02-15 13:56:43 +00:00
..
androidpayload reduce payload size 2014-02-15 13:56:43 +00:00
javapayload Fix relative paths to Metasploit repository 2013-06-12 23:44:57 +02:00
meterpreter Fix relative paths to Metasploit repository 2013-06-12 23:44:57 +02:00
version-compatibility-check Use Android API Scents from Maven Central 2013-09-06 18:29:21 +02:00
.gitignore Update .gitignore and .travis.yml for new repo 2013-06-11 19:47:15 +02:00
.travis.yml Update .gitignore and .travis.yml for new repo 2013-06-11 19:47:15 +02:00
pom.xml Fix relative paths to Metasploit repository 2013-06-12 23:44:57 +02:00
README.md Fix relative paths to Metasploit repository 2013-06-12 23:44:57 +02:00

To compile JavaPayload for Metasploit (including Java Meterpreter), you need Maven 3.0 or above. Just run

mvn package

to package all the files, or

mvn -P deploy package

to package all the files and copy them into the correct place for Metasploit (../metasploit-framework/data/java). If you get spurious compilation errors, make sure that there is an exclude rule in your antivirus for the Metasploit directory (or that your antivirus is disabled).

If the path to your metasploit framework repository is not ../metasploit-framework, but for example ../msf3, use

mvn -D deploy.path=../msf3 -P deploy package

In case you want to edit/debug JavaPayload for Metasploit or Java Meterpreter, Maven provides plugins to auto-generate project files for your favourite IDE (at least for Eclipse, Netbeans or IntelliJ). I use Eclipse, so to generate project files I use

mvn eclipse:eclipse

This will generate project files that can be imported via

File->Import->Existing Projects into Workspace

into your Eclipse workspace.

(Note that if this is your first Maven project you want to use in Eclipse, you also have to run

mvn -Declipse.workspace=/path/to/your/workspace eclipse:configure-workspace

to set up path variables like M2_REPO to point to the correct location.)

For NetBeans or IntelliJ IDEA, refer to the documentation at

http://maven.apache.org/netbeans-module.html http://maven.apache.org/plugins/maven-idea-plugin/

Android

mvn package -Dandroid.sdk.path=/path/to/android-sdk-linux/