Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BurpSuite Pro burp-rest-api Kali Rolling build script
#!/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
You can’t perform that action at this time.