Advertisement
dennis6400

install_kali_tools

Mar 30th, 2025
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.07 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ##
  4. # Prepare installation
  5. ##
  6.  
  7. set -e
  8.  
  9. # Architecture
  10. ARCH=$(dpkg --print-architecture)
  11. echo "Detected architecture: ${ARCH}"
  12.  
  13. # Sublime Text
  14. INSTALL_SUBL="yes"
  15. SUBL_VERS="4192"
  16.  
  17. # Google Chrome
  18. INSTALL_CHROME="yes"
  19.  
  20. # Burp Professional
  21. INSTALL_BURP="yes"
  22. BURP_VERS="2025.2.2"
  23.  
  24. # Upgrading existing apt packages
  25. #UPGRADE="yes"
  26.  
  27.  
  28. ##
  29. # Update existing apt packages
  30. ##
  31.  
  32. echo "[+] Updating system..."
  33. sudo apt update
  34. if [ "${UPGRADE}" == "yes" ]; then
  35.     sudo apt upgrade -y
  36. else
  37.     echo "Skipping"
  38. fi
  39.  
  40.  
  41. ##
  42. # Install apt packages
  43. ##
  44.  
  45. echo "[+] Installing basic tools..."
  46. sudo apt install -y \
  47.   curl wget tree htop exiftool openvpn docker.io docker-compose \
  48.   keepassx flameshot terminator git make gcc jq xclip p7zip-full
  49.  
  50. echo "[+] Installing web hacking tools..."
  51. sudo apt install -y \
  52.   dirb gobuster feroxbuster ffuf testssl.sh aha
  53.  
  54. echo "[+] Installing privilege escalation tools..."
  55. sudo apt install -y \
  56.   windows-privesc-check unix-privesc-check
  57.  
  58. echo "[+] Installing miscellaneous tools..."
  59. sudo apt install -y \
  60.   libreoffice libsecret-1-0 libsecret-1-dev chromium filezilla x11-xkb-utils
  61.  
  62. echo "[+] Installing SecLists and PayloadsAllTheThings..."
  63. sudo apt install -y seclists payloadsallthethings
  64.  
  65.  
  66. ##
  67. # Clone git repositories
  68. ##
  69.  
  70. echo "[+] Cloning Git repositories into ${TOOLS_DIR}/..."
  71. TOOLS_DIR="${HOME}/tools"
  72. mkdir -p ${TOOLS_DIR}
  73. cd ${TOOLS_DIR}
  74.  
  75. git clone https://github.com/swisskyrepo/InternalAllTheThings.git
  76. git clone https://github.com/fuzzdb-project/fuzzdb.git
  77. git clone https://github.com/HackTricks-wiki/hacktricks.git
  78.  
  79.  
  80. ##
  81. # Install additional software: Sublime Text
  82. ##
  83.  
  84. if [ "${INSTALL_SUBL}" == "yes" ]; then
  85.     echo "[+] Downloading Sublime Text..."
  86.     cd ${TOOLS_DIR}
  87.     wget -O sublime-text.deb "https://download.sublimetext.com/sublime-text_build-${SUBL_VERS}_${ARCH}.deb"
  88.     sudo apt install -y ./sublime-text.deb
  89.     rm sublime-text.deb
  90. fi
  91.  
  92.  
  93. ##
  94. # Install additional software: Google Chrome
  95. ##
  96.  
  97. if [ "${INSTALL_CHROME}" == "yes" ]; then
  98.     if [ "$ARCH" != "arm64" ]; then
  99.         echo "[+] Downloading Google Chrome..."
  100.         cd ${TOOLS_DIR}
  101.         wget -O google-chrome.deb "https://dl.google.com/linux/direct/google-chrome-stable_current_${ARCH}.deb"
  102.         sudo apt install -y ./google-chrome.deb
  103.         rm google-chrome.deb
  104.     else
  105.         echo "Skipping Google Chrome (not supported on arm64)" 
  106.     fi
  107. fi
  108.  
  109.  
  110. ##
  111. # Install additional software: Burp Suite Professional
  112. ##
  113.  
  114. if [ "${INSTALL_BURP}" == "yes" ]; then
  115.     echo "[+] Downloading Burp Suite Pro (manual license activation required)..."
  116.     mkdir -p ${TOOLS_DIR}/burp
  117.     cd ${TOOLS_DIR}/burp
  118.     if [ "$ARCH" != "arm64" ]; then
  119.         BURP_URL="https://portswigger-cdn.net/burp/releases/download?product=pro&version=${BURP_VERS}&type=LinuxArm64"
  120.     else
  121.         BURP_URL="https://portswigger-cdn.net/burp/releases/download?product=pro&version=${BURP_VERS}&type=Linux"
  122.     fi
  123.     wget "${BURP_URL}" -O burpsuite.sh
  124.     chmod +x burpsuite.sh
  125.     echo "[!] Start Burp Suite installer manually: ${TOOLS_DIR}/burp/burpsuite.sh"
  126. fi
  127.  
  128.  
  129. ##
  130. # Complete installation
  131. ##
  132.  
  133. echo "[✓] Installation complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement