2010-01-27 19:46:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-02-12 22:13:08 +00:00
|
|
|
# This requires Java 1.7 or earlier because it uses private APIs.
|
|
|
|
# See http://kris-sigur.blogspot.com/2014/10/heritrix-java-8-and-sunsecuritytoolskey.html
|
|
|
|
# for more information.
|
|
|
|
|
|
|
|
# Attempt to use Java 1.6 when building on OS X, otherwise JAVA_HOME needs to
|
|
|
|
# be set manually.
|
|
|
|
if [ -x /usr/libexec/java_home ]; then
|
|
|
|
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
|
|
|
|
fi
|
|
|
|
|
2010-01-28 22:53:36 +00:00
|
|
|
javac -classpath $JAVA_HOME/lib/tools.jar:. javaCompile/*.java
|
2010-01-27 19:46:39 +00:00
|
|
|
|
2010-01-28 22:53:36 +00:00
|
|
|
jar -cf msfJavaToolkit.jar javaCompile/*.class
|
2010-01-27 19:46:39 +00:00
|
|
|
|
|
|
|
mv msfJavaToolkit.jar ../../../data/exploits/
|