Skip to content

Commit f7fa76a

Browse files
committed
Land rapid7#4760, java_signed_applet .class cleanup
2 parents 17437a3 + 4da2832 commit f7fa76a

File tree

6 files changed

+10
-0
lines changed

6 files changed

+10
-0
lines changed
-1.59 KB
Binary file not shown.
-1.71 KB
Binary file not shown.
-1019 Bytes
Binary file not shown.
-554 Bytes
Binary file not shown.

data/java/javaCompile/SignJar.class

-1.07 KB
Binary file not shown.

external/source/msfJavaToolkit/compile.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#!/bin/bash
22

3+
# This requires Java 1.7 or earlier because it uses private APIs.
4+
# See http://kris-sigur.blogspot.com/2014/10/heritrix-java-8-and-sunsecuritytoolskey.html
5+
# for more information.
6+
7+
# Attempt to use Java 1.6 when building on OS X, otherwise JAVA_HOME needs to
8+
# be set manually.
9+
if [ -x /usr/libexec/java_home ]; then
10+
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
11+
fi
12+
313
javac -classpath $JAVA_HOME/lib/tools.jar:. javaCompile/*.java
414

515
jar -cf msfJavaToolkit.jar javaCompile/*.class

0 commit comments

Comments
 (0)