- more functions in the script
- readability increase
- readme updates to reflect removed pieces
- no password updates
This commit is contained in:
2026-05-31 12:14:50 -04:00
parent edac8da712
commit ec6c6e67a9
2 changed files with 78 additions and 65 deletions

View File

@@ -3,14 +3,14 @@ Redeye is a basic linux setup script used for kali linux virtual machines
## Usage ## Usage
- wget https://code.jakeyoungdev.com/jake/redeye/raw/branch/main/redeye.sh - wget https://code.jakeyoungdev.com/jake/redeye/raw/branch/main/redeye.sh
- chmod +x redeye.sh - chmod +x ./redeye.sh
- ./redeye.sh - source ./redeye.sh
## Configuration ## Configuration
Redeye provides some basic configuration: Redeye provides some basic configuration:
- Updates package list, or installs new package versions if a full upgrade is being done - Updates package list, or installs new package versions if a full upgrade is being done
- Installs Golang version 1.26.3 - Installs Golang version 1.26.3
- Sets some alias's - Sets some alias'
- g=go - g=go
- p=python - p=python
- s=subl(sublime text) - s=subl(sublime text)
@@ -18,4 +18,3 @@ Redeye provides some basic configuration:
- Installs ffuf (via go) - Installs ffuf (via go)
- Installs sublime text - Installs sublime text
- Installs ufw and enables it - Installs ufw and enables it
- Updates the default password to "redeye6"

View File

@@ -2,13 +2,9 @@
set -euo pipefail set -euo pipefail
#cyan printing function main() {
function cprint() { default_system_pass="kali"
printf "\e[0;36m$1\e[0m\n" default_go_version="1.26.3"
}
default_pass="kali"
go_version="1.26.3"
printf "\n" printf "\n"
cprint "------------------------------------------------------------" cprint "------------------------------------------------------------"
@@ -16,39 +12,39 @@ cprint "\t\t\tredeye"
cprint "------------------------------------------------------------" cprint "------------------------------------------------------------"
read "update_toggle?do you want to preform a full-upgrade? (y/n): " 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 "custom_go_version?what go version should be installed? (default: $default_go_version): "
printf "\n" printf "\n"
echo "$default_pass" | sudo -Sv
cprint "updating system, this may take a while"
sudo apt update -y
if [[ "$update_toggle" == "y" ]]; then
sudo apt full-upgrade -y
fi
sudo apt autoremove -y
cprint "system updated"
if [[ -n "$custom_go_version" ]]; then if [[ -n "$custom_go_version" ]]; then
go_version=custom_go_version default_go_version="$custom_go_version"
fi fi
updateSystem "$default_system_pass" "$update_toggle"
cprint "setting aliases" cprint "setting aliases"
echo "alias g='go'" >> /home/kali/.zshrc echo "alias g='go'" >> /home/kali/.zshrc
echo "alias p='python3'" >> /home/kali/.zshrc echo "alias p='python3'" >> /home/kali/.zshrc
echo "alias s='subl'" >> /home/kali/.zshrc echo "alias s='subl'" >> /home/kali/.zshrc
cprint "starting tool setup" installGo "$default_go_version"
cprint "installing golang v$go_version" installTools
wget https://go.dev/dl/go$go_version.linux-amd64.tar.gz
cprint "don't forget to update the default password!"
cprint "done, close this terminal to finish setup"
}
function installGo() {
cprint "installing golang v$1"
wget https://go.dev/dl/go$1.linux-amd64.tar.gz
sudo rm -rf /usr/local/go sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$go_version.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go$1.linux-amd64.tar.gz
echo "export PATH=\$PATH:/usr/local/go/bin" >> /home/kali/.zshrc echo "export PATH=\$PATH:/usr/local/go/bin" >> /home/kali/.zshrc
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:/usr/local/go/bin
rm ./go$go_version.linux-amd64.tar.gz rm ./go$1.linux-amd64.tar.gz
source /home/kali/.zshrc source /home/kali/.zshrc
cprint "golang installed" cprint "golang installed"
}
function installTools() {
cprint "installing credslayer" cprint "installing credslayer"
pipx install credslayer pipx install credslayer
cprint "installing ffuf" cprint "installing ffuf"
@@ -65,5 +61,23 @@ cprint "sublime installed"
cprint "installing firewall" cprint "installing firewall"
sudo apt install ufw -y sudo apt install ufw -y
sudo ufw enable sudo ufw enable
cprint "firewall installed"
}
cprint "done, close this terminal window to complete setup and remember to update the default password" function updateSystem() {
cprint "updating system, this may take a while"
echo "$1" | sudo -Sv
sudo apt update -y
if [[ "$2" == "y" ]]; then
sudo apt full-upgrade -y
fi
sudo apt autoremove -y
cprint "system updated"
}
#cyan printing
function cprint() {
printf "\e[0;36m$1\e[0m\n"
}
main "$@"