2026-05-31 06:19:19 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
#cyan printing
|
|
|
|
|
function cprint() {
|
|
|
|
|
printf "\e[0;36m$1\e[0m\n"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default_pass="kali"
|
2026-05-31 06:44:36 +00:00
|
|
|
new_password="kali"
|
2026-05-31 06:19:19 +00:00
|
|
|
go_version="1.26.3"
|
|
|
|
|
|
|
|
|
|
printf "\n"
|
|
|
|
|
cprint "------------------------------------------------------------"
|
|
|
|
|
cprint "\t\t\tredeye"
|
|
|
|
|
cprint "------------------------------------------------------------"
|
|
|
|
|
|
|
|
|
|
read "update_toggle?do you want to preform a full-upgrade? (y/n): "
|
|
|
|
|
read "custom_go_version?what go version should be installed? (default: $go_version): "
|
|
|
|
|
read -s "custom_password?set a custom password (default: $new_password): "
|
|
|
|
|
printf "\n"
|
|
|
|
|
|
2026-05-31 06:42:03 +00:00
|
|
|
echo "$default_pass" | sudo -Sv
|
2026-05-31 06:33:13 +00:00
|
|
|
|
2026-05-31 06:19:19 +00:00
|
|
|
cprint "updating system, this may take a while"
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo apt update -y
|
2026-05-31 06:19:19 +00:00
|
|
|
if [[ "$update_toggle" == "y" ]]; then
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo apt full-upgrade -y
|
2026-05-31 06:19:19 +00:00
|
|
|
fi
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo apt autoremove -y
|
2026-05-31 06:19:19 +00:00
|
|
|
cprint "system updated"
|
|
|
|
|
|
|
|
|
|
if [[ -n "$custom_go_version" ]]; then
|
|
|
|
|
go_version=custom_go_version
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cprint "setting aliases"
|
|
|
|
|
echo "alias g='go'" >> /home/kali/.zshrc
|
|
|
|
|
echo "alias p='python3'" >> /home/kali/.zshrc
|
|
|
|
|
echo "alias s='subl'" >> /home/kali/.zshrc
|
|
|
|
|
|
|
|
|
|
cprint "starting tool setup"
|
|
|
|
|
cprint "installing golang v$go_version"
|
|
|
|
|
wget https://go.dev/dl/go$go_version.linux-amd64.tar.gz
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo rm -rf /usr/local/go
|
|
|
|
|
sudo tar -C /usr/local -xzf go$go_version.linux-amd64.tar.gz
|
2026-05-31 06:19:19 +00:00
|
|
|
echo "export PATH=\$PATH:/usr/local/go/bin" >> /home/kali/.zshrc
|
|
|
|
|
export PATH=$PATH:/usr/local/go/bin
|
|
|
|
|
rm ./go$go_version.linux-amd64.tar.gz
|
|
|
|
|
source /home/kali/.zshrc
|
|
|
|
|
cprint "golang installed"
|
|
|
|
|
|
|
|
|
|
cprint "installing credslayer"
|
|
|
|
|
pipx install credslayer
|
|
|
|
|
cprint "installing ffuf"
|
|
|
|
|
go install github.com/ffuf/ffuf/v2@latest
|
|
|
|
|
|
|
|
|
|
cprint "installing sublime text"
|
|
|
|
|
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null
|
|
|
|
|
echo -e 'Types: deb\nURIs: https://download.sublimetext.com/\nSuites: apt/stable/\nSigned-By: /etc/apt/keyrings/sublimehq-pub.asc' | sudo tee /etc/apt/sources.list.d/sublime-text.sources
|
|
|
|
|
#re-update after adding sublime
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo apt update -y
|
|
|
|
|
sudo apt install sublime-text
|
2026-05-31 06:19:19 +00:00
|
|
|
cprint "sublime installed"
|
|
|
|
|
|
|
|
|
|
cprint "installing firewall"
|
2026-05-31 06:33:13 +00:00
|
|
|
sudo apt install ufw -y
|
|
|
|
|
sudo ufw enable
|
2026-05-31 06:19:19 +00:00
|
|
|
|
|
|
|
|
cprint "tool setup complete"
|
|
|
|
|
|
|
|
|
|
if [[ -n "$custom_password" ]]; then
|
|
|
|
|
new_password=custom_password
|
|
|
|
|
fi
|
2026-05-31 06:48:09 +00:00
|
|
|
echo "kali:$new_password" | sudo chpasswd
|
2026-05-31 06:19:19 +00:00
|
|
|
cprint "password changed"
|
|
|
|
|
|
|
|
|
|
cprint "done, close this terminal window to complete setup"
|