Created
October 20, 2017 12:59
-
-
Save anburocky3/aaa495527b4b56a70a6b2f541f980e54 to your computer and use it in GitHub Desktop.
Shell script to add Latest Burp Suite Pro to Unity Launcher
This file contains 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
# For example: | |
# If your burpsuite jar is named: burpsuite_pro_v1.7.11.jar | |
# ..and located at: /opt/burpsuite/ | |
# | |
# export BURP_VER=1.7.11 | |
# export BURP_PATH=/opt/burpsuite/ | |
export BURP_VER=YOUR_VERSION | |
export BURP_PATH=YOUR_PATH | |
# Extract icon | |
unzip ${BURP_PATH}/burpsuite_pro_v${BURP_VER}.jar */icon64.png | |
# Make icon directory and move icon64.png inside it | |
mkdir -p ${HOME}/.local/share/pixmaps/ | |
mv ./burp/media/icon64.png ${HOME}/.local/share/pixmaps/burpsuite.png | |
# Make applications directory (where the shortcut will be placed) | |
mkdir -p ${HOME}/.local/share/applications/ | |
#Create launcher item | |
cat << EOF > ${HOME}/.local/share/applications/burpsuite.desktop | |
[Desktop Entry] | |
Name=Burp Suite | |
Version=${BURP_VER} | |
Exec=/usr/bin/java -jar ${BURP_PATH}/burpsuite_pro_v${BURP_VER}.jar | |
Icon=${HOME}/.local/share/pixmaps/burpsuite.png | |
Terminal=false | |
Type=Application | |
Categories=Utility;Application; | |
EOF | |
# Delete the ./burp/ directory | |
rm -rf ./burp/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment