Created
October 22, 2024 18:27
-
-
Save RadNotRed/db66c1375cbd8b265a5882e36207bb5c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Check if the script is run as root | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit | |
fi | |
# Adding Kali Linux repositories to /etc/apt/sources.list.d/kali.list | |
echo "Adding Kali Linux repositories..." | |
cat <<EOF > /etc/apt/sources.list.d/kali.list | |
deb http://http.kali.org/kali kali-rolling main non-free contrib | |
EOF | |
# Adding the Kali Linux public key | |
echo "Adding Kali Linux public key..." | |
sudo wget -q -O - https://archive.kali.org/archive-key.asc | sudo tee /etc/apt/trusted.gpg.d/kali-archive-key.asc | |
# Update the package lists | |
echo "Updating package lists..." | |
sudo apt update | |
# Prompting the user for tool installation choices | |
echo "Which tools would you like to install?" | |
echo "1) Install individual tools (e.g., nmap, aircrack-ng, metasploit)" | |
echo "2) Install Kali Linux Top 10 Tools" | |
echo "3) Install all Kali Linux tools (kali-linux-everything)" | |
read -p "Please enter the option number (1-3): " choice | |
# Installing the selected tools or metapackage | |
case $choice in | |
1) | |
echo "Installing individual tools..." | |
echo "Which tools would you like to install?" | |
echo "1) nmap" | |
echo "2) aircrack-ng" | |
echo "3) metasploit-framework" | |
echo "4) hydra" | |
echo "5) Install all of the above" | |
read -p "Enter the tool numbers separated by space (e.g., 1 3): " tool_choices | |
for tool in $tool_choices; do | |
case $tool in | |
1) | |
sudo apt install -y nmap | |
;; | |
2) | |
sudo apt install -y aircrack-ng | |
;; | |
3) | |
sudo apt install -y metasploit-framework | |
;; | |
4) | |
sudo apt install -y hydra | |
;; | |
5) | |
sudo apt install -y nmap aircrack-ng metasploit-framework hydra | |
;; | |
*) | |
echo "Invalid option" | |
;; | |
esac | |
done | |
;; | |
2) | |
echo "Installing Kali Linux Top 10 Tools..." | |
sudo apt install -y kali-tools-top10 | |
;; | |
3) | |
echo "Installing all Kali Linux tools (kali-linux-everything)..." | |
sudo apt install -y kali-linux-everything | |
;; | |
*) | |
echo "Invalid option, exiting" | |
exit 1 | |
;; | |
esac | |
echo "Installation complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment