Skip to content

Commit 8376531

Browse files
committed
Land rapid7#1217, java payload build system refactor
[Closes rapid7#1217]
2 parents 7e5d4bc + 1d09d7e commit 8376531

File tree

110 files changed

+5239
-4277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+5239
-4277
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ external/source/meterpreter/java/build
1919
external/source/meterpreter/java/extensions
2020
external/source/javapayload/bin
2121
external/source/javapayload/build
22+
# Java binary ignores. Replace the 5 above with this once we're merged.
23+
external/source/javapayload/*/.classpath
24+
external/source/javapayload/*/.project
25+
external/source/javapayload/*/.settings
26+
external/source/javapayload/*/bin
27+
external/source/javapayload/*/target
28+
external/source/javapayload/*/*/.classpath
29+
external/source/javapayload/*/*/.project
30+
external/source/javapayload/*/*/.settings
31+
external/source/javapayload/*/*/bin
32+
external/source/javapayload/*/*/target
2233
# Packaging directory
2334
pkg
2435
tags

data/java/metasploit/Payload.class

6 Bytes
Binary file not shown.
19 Bytes
Binary file not shown.

data/meterpreter/meterpreter.jar

30 Bytes
Binary file not shown.

external/source/javapayload/.classpath

Lines changed: 0 additions & 7 deletions
This file was deleted.

external/source/javapayload/.project

Lines changed: 0 additions & 17 deletions
This file was deleted.

external/source/javapayload/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
To compile JavaPayload for Metasploit (including Java Meterpreter), you need
2+
Maven 3.0 or above. Just run
3+
4+
mvn package
5+
6+
to package all the files, or
7+
8+
mvn -P deploy package
9+
10+
to package all the files and copy them into the correct place for Metasploit
11+
(/data/java). If you get spurious compilation errors, make sure that there
12+
is an exclude rule in your antivirus for the Metasploit directory (or that
13+
your antivirus is disabled).
14+
15+
In case you want to edit/debug JavaPayload for Metasploit or Java Meterpreter,
16+
Maven provides plugins to auto-generate project files for your favourite IDE
17+
(at least for Eclipse, Netbeans or IntelliJ). I use Eclipse, so to generate
18+
project files I use
19+
20+
mvn eclipse:eclipse
21+
22+
This will generate project files that can be imported via
23+
24+
File->Import->Existing Projects into Workspace
25+
26+
into your Eclipse workspace.
27+
28+
(Note that if this is your first Maven project you want to use in Eclipse, you
29+
also have to run
30+
31+
mvn -Declipse.workspace=/path/to/your/workspace eclipse:configure-workspace
32+
33+
to set up path variables like M2_REPO to point to the correct location.)
34+
35+
For NetBeans or IntelliJ IDEA, refer to the documentation at
36+
37+
http://maven.apache.org/netbeans-module.html
38+
http://maven.apache.org/plugins/maven-idea-plugin/
39+

external/source/javapayload/build.xml

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)