Advertisement
illwill

Burp Pro Shortcut installer

Dec 4th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.21 KB | None | 0 0
  1. #!/bin/bash
  2. # Useful for installing Burp Pro jar on kali and changing the sidemenu shortcuts from community to pro where its installed to
  3. # illmob newb scripts ftw
  4. echo ""
  5. echo " ██╗██╗     ██╗     ███╗   ███╗ ██████╗ ██████╗ "
  6. echo " ██║██║     ██║     ████╗ ████║██╔═══██╗██╔══██╗"
  7. echo " ██║██║     ██║     ██╔████╔██║██║   ██║██████╔╝"
  8. echo " ██║██║     ██║     ██║╚██╔╝██║██║   ██║██╔══██╗"
  9. echo " ██║███████╗███████╗██║ ╚═╝ ██║╚██████╔╝██████╔╝"
  10. echo " ╚═╝╚══════╝╚══════╝╚═╝     ╚═╝ ╚═════╝ ╚═════╝"
  11. echo "           -=[Burp Pro installer]=-"
  12. echo ""
  13. echo "Where do you want to install Burp Pro?"
  14.  
  15. filepath=
  16. while read -ep $'(i.e. /opt/ or /usr/share/)\nPath: ' filepath; do
  17.     if [ -d $filepath ]; then
  18.       echo "$filepath already exists..."
  19.       break
  20.     elif [ ! -d $filepath ]; then
  21.       echo "$filepath is being created..."
  22.       mkdir -p $filepath
  23.       printf -v filepath "${filepath[@]%/}" #remove slash
  24.       echo $filepath
  25.       break
  26.     fi
  27. done
  28.  
  29. burppath=
  30. while read -ep $'Where is your BurpPro.Jar?(use tab-complete)\nPath: ' burppath; do
  31.     if [ ! -f $burppath ]; then
  32.       echo ".jar not found!"
  33.       break
  34.     else
  35.       echo "Moving .jar to new directory."
  36.       mv $burppath $filepath/burpsuite_pro.jar
  37.       break
  38.     fi
  39. done
  40.  
  41. echo "Create new shortcuts for kali side menu by editing the file config file"
  42. sed -i 's/Exec\=sh \-c \"java \-jar \/usr\/bin\/burpsuite\"/Exec\=sh \-c \"java \-jar \$filepath\/burpsuite_pro\.jar\"/g' /usr/share/applications/kali-burpsuite.desktop
  43. sed -i 's/Exec\=sh \-c \"java \-jar \/usr\/bin\/burpsuite\"/Exec\=sh \-c \"java \-jar \$filepath\/burpsuite_pro\.jar\"/g' /usr/share/kali-menu/applications/kali-burpsuite.desktop
  44.  
  45. echo -e "Complete!\nClick on burp suite icon in sidebar and enter your license key!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement