Last active
May 20, 2020 15:08
-
-
Save decidedlygray/0b541c173103317ee7634f8255454f18 to your computer and use it in GitHub Desktop.
BurpSuite Pro burp-rest-api Kali Rolling build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################## | |
# burp-rest-api Kali build script | |
# Builds: https://github.com/vmware/burp-rest-api | |
# | |
# Currently Kali ships using java 9 as its default version of Java. This | |
# causes building https://github.com/vmware/burp-rest-api to fail. This | |
# script is meant to help fix that and get the tool to build properly | |
# | |
# You must configure the location of your Burp Suite Pro JAR before | |
# chmod +x'ing and running the script. | |
# | |
# @decidedlygray 2018 - MIT License | |
############################################################################## | |
### CONFIG | |
BURP_PRO_JAR_LOCATION="/opt/BurpSuitePro/burpsuite_pro.jar" | |
# Make sure we are elevated | |
if [[ $UID != 0 ]]; then | |
echo "Please run this script with sudo:" | |
echo "sudo $0 $*" | |
exit 1 | |
fi | |
# Fix Java - make sure the JDK 8 binary is registered and change the default | |
echo "[+] Making sure we are using Java 8..." | |
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-openjdk-amd64/bin/java 0 | |
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/bin/java | |
# Clone and build | |
echo "[+] Cloning and building..." | |
cd /opt | |
git clone https://github.com/vmware/burp-rest-api | |
cd burp-rest-api | |
mkdir lib | |
sudo cp $BURP_PRO_JAR_LOCATION lib/ | |
./gradlew clean build | |
# Fin | |
echo "[+] Done!" | |
echo "[+] Your burp-rest-api jar should be here: /opt/burp-rest-api/build/libs/" | |
echo "" | |
echo "[+] Suggest start it up with headless disabled to make sure things are configured properly:" | |
echo "[+] java -Djava.awt.headless=false -jar /opt/burp-rest-api/build/libs/burp-rest-api-1.0.3.jar" | |
echo "" | |
echo "[+] Also check out the HTTP API. Open a browser to: http://localhost:8090/swagger-ui.html#/burp-controller" | |
echo "" | |
echo "[+] For more info on options to run it: https://github.com/vmware/burp-rest-api#build--run" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment