CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/msfJavaToolkit/compile.sh
Views: 11766
1
#!/bin/bash
2
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
13
javac -classpath $JAVA_HOME/lib/tools.jar:. javaCompile/*.java
14
15
jar -cf msfJavaToolkit.jar javaCompile/*.class
16
17
mv msfJavaToolkit.jar ../../../data/exploits/
18
19