Created
January 17, 2024 06:52
-
-
Save M41KL-N41TT/f01666da322d2429422d584b84024fac to your computer and use it in GitHub Desktop.
evilginx2 installer rawr (partial)
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/sh | |
export GO_PKG=go1.21.3.linux-amd64.tar.gz | |
export DEBIAN_FRONTEND=noninteractive | |
printf 'Files in installer have been extracted.\n Is or has evilginx2 been already installed on current OS? Choose n on a completely fresh VPS. (y/n)? ' | |
old_stty_cfg=$(stty -g) | |
stty raw -echo | |
# TODO: make it question to copy files, copy files and configure domain or do full upgrade | |
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done ) | |
stty "$old_stty_cfg" | |
if echo "$answer" | grep -iq "^y" ;then | |
bash ./install/start.sh | |
echo "Installer finished successfully" | |
exit 0 | |
fi | |
set -e | |
bash ./install/ubuntu-update.sh && | |
cp -a ./install/.zshrc ./install/.p10k.zsh ./install/.antigen.zsh "$HOME"/ && | |
# packages will corrupt if you don't do a restart after ./ubuntu-update.sh | |
apt install -y curl gnupg lsb-release libc6 runc ca-certificates git pigz xz-utils containerd certbot make g++ zsh zsh-antigen fontconfig wget build-essential&& | |
[ -f '/usr/local/share/fonts/MesloLGS NF Regular.ttf' ] || wget -P /usr/local/share/fonts/ -i ./install/font.cfg && fc-cache -f -v && | |
[ -d ~/.oh-my-zsh ] || sh -c "./install/install.sh --keep-zshrc --unattended" && | |
chsh -s /usr/bin/zsh && | |
zsh -c "source ~/.zshrc" && | |
[ -f /usr/local/go/bin ] || wget https://go.dev/dl/"$GO_PKG" && rm -rf /usr/local/go && tar -C /usr/local -xzf "$GO_PKG" && rm -rf "$GO_PKG" && export PATH="$PATH":/usr/local/go/bin && | |
echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a ~/.bashrc && | |
echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a ~/.zshrc && | |
go install golang.org/x/tools/...@latest && | |
bash ./install/start.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment