-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_phantom.sh
More file actions
executable file
·174 lines (144 loc) · 7.37 KB
/
Copy pathinstall_phantom.sh
File metadata and controls
executable file
·174 lines (144 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/bin/bash
# ========== Colores (negrita + nombres descriptivos) ==========
# --- Colores normales ---
blackColour='\033[1;38;5;0m' # #0a0f0a (negro oscuro)
redColour='\033[1;38;5;1m' # #ff0059 (rojo intenso)
greenColour='\033[1;38;5;2m' # #00ff41 (verde neón)
yellowColour='\033[1;38;5;3m' # #b3ff00 (amarillo verdoso)
blueColour='\033[1;38;5;4m' # #00b3ff (azul eléctrico)
purpleColour='\033[1;38;5;5m' # #bb00ff (morado vibrante)
turquoiseColour='\033[1;38;5;6m' # #00ffd2 (cian brillante)
grayColour='\033[1;38;5;7m' # #d9e0ee (blanco suave)
# --- Colores brillantes ---
strongGray='\033[1;38;5;8m' # #262a2e (gris oscuro)
lightRedColour='\033[1;38;5;9m' # #ff477f (rosa fluorescente)
limaColour='\033[1;38;5;10m' # #77ff00 (verde limón)
lightYellowColour='\033[1;38;5;11m' # #ccff00 (amarillo puro)
lightBlueColour='\033[1;38;5;12m' # #33ccff (azul cielo)
lightPurpleColour='\033[1;38;5;13m' # #ff77ff (rosa chicle)
lightCyanColour='\033[1;38;5;14m' # #00ffff (cian encendido)
brightWhiteColour='\033[1;38;5;15m' # #ffffff (blanco puro)
# --- Reset ---
endColour='\033[0m'
#Ctrl+C
function ctrl_c(){
echo -e "\n\n${redColour}[+] Leaving...${endColour}\n"
exit 1
}
trap ctrl_c INT
banner="${limaColour}$(cat << "EOF"
____ __ __ ______ _ __
/ __ \/ /_ ____ _____ / /_____ ____ ___ /_ __/__ _________ ___ (_)___ ____ _/ /
/ /_/ / __ \/ __ `/ __ \/ __/ __ \/ __ `__ \ / / / _ \/ ___/ __ `__ \/ / __ \/ __ `/ /
/ ____/ / / / /_/ / / / / /_/ /_/ / / / / / / / / / __/ / / / / / / / / / / / /_/ / /
/_/ /_/ /_/\__,_/_/ /_/\__/\____/_/ /_/ /_/ /_/ \___/_/ /_/ /_/ /_/_/_/ /_/\__,_/_/
-=[ by r4venn ]=-
EOF
)${endColour}"
# Función de Spinner
function spinner(){
local SPIN=("◐" "◓" "◑" "◒")
local i=0
while true; do
echo -ne "\r${limaColour}[${SPIN[i]}]${endColour} $1"
((i=(i+1)%4))
sleep 0.1
done
}
function installation(){
echo -e "\n${turquoiseColour}$(for i in $(seq 1 32); do echo -n '='; done)[::] Installing Phantom Terminal [::]$(for i in $(seq 1 31); do echo -n "="; done)${endColour}\n"
spinner "${grayColour}Installing zsh ${endColour}" &
SPINNER_PID=$!
sudo apt install zsh -y &>/dev/null
sed -i '/oh-my-zsh.sh/s/^/#/' ~/.zshrc
# ========== [✔] Instalar plugins: autosuggestions & syntax highlighting ==========
mkdir -p ~/.zsh_plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh_plugins/zsh-autosuggestions &>/dev/null
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh_plugins/zsh-syntax-highlighting &>/dev/null
# ========== [✔] Activar plugins manualmente ==========
{
echo ""
echo "# Zsh Plugins (manual install, no oh-my-zsh)"
echo "source \$HOME/.zsh_plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
echo "source \$HOME/.zsh_plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
} >> ~/.zshrc
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${blueColour}Zsh${endColour} ${grayColour}Installed.${endColour}\n"
spinner "${grayColour}Installing kitty ${endColour}" &
SPINNER_PID=$!
sudo apt install kitty -y &>/dev/null
sudo apt install boxes -y &>/dev/null
mkdir ~/.config/kitty &>/dev/null
cp kitty/kitty.conf ~/.config/kitty/ &>/dev/null
sudo cp fonts/HackNerdFont* /usr/share/fonts/
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${blueColour}Kitty${endColour} ${grayColour}Installed & Configurated.${endColour} \n"
spinner "${grayColour}Installing Starship Powerline ${endColour}" &
SPINNER_PID=$!
curl -sS https://starship.rs/install.sh | sh -s -- -y > /dev/null 2>&1 #aqui le tenemos que dar que si
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
cp starship.toml ~/.config/
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${blueColour}Starship${endColour} ${grayColour}Installed & Configurated.${endColour}\n"
spinner "${grayColour}Installing Lsd & bat (ls & cat with steroids) ${endColour}" &
SPINNER_PID=$!
sudo apt install lsd -y &>/dev/null
sudo apt install bat -y &>/dev/null
echo "# Manual aliases
alias ll='lsd -lh --group-dirs=first'
alias la='lsd -a --group-dirs=first'
alias l='lsd --group-dirs=first'
alias lla='lsd -lha --group-dirs=first'
alias ls='lsd --group-dirs=first'
alias cat='batcat'" >> ~/.zshrc
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${blueColour}Lsd & Bat${endColour} ${grayColour}Installed.${endColour}\n"
#Target
spinner "${grayColour}Setting up ${endColour}${limaColour}target.sh${endColour}" &
SPINNER_PID=$!
sudo cp target.sh /usr/local/bin/target
sudo chmod +x /usr/local/bin/target
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${limaColour}target.sh${endColour} ${grayColour}is ready to use.${endColour}\n"
echo -e "\n${limaColour}[+]${endColour} ${turquoiseColour}Hacking Arsenal${endColour}"
#Arsenal
spinner "${grayColour}Setting up ${endColour}${limaColour}Network Recon${endColour}" &
SPINNER_PID=$!
git clone https://github.com/r4vencrane/Network-Recon.git &>/dev/null
mv Network-Recon ../ &>/dev/null
sudo cp ../Network-Recon/netrecon.sh /usr/local/bin/netrecon
sudo chmod +x /usr/local/bin/netrecon
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${limaColour}Network Recon${endColour} ${grayColour}is ready to use.${endColour}\n"
#Arsenal
spinner "${grayColour}Setting up ${endColour}${limaColour}Root Shadow${endColour}" &
SPINNER_PID=$!
git clone https://github.com/r4vencrane/Root-Shadow.git &>/dev/null
mv Root-Shadow ../ &>/dev/null
kill "$SPINNER_PID" &>/dev/null
echo -ne "\r${limaColour}[✔]${endColour} ${limaColour}Root Shadow${endColour} ${grayColour}is ready to use.${endColour}\n"
sleep 1
gsettings set org.mate.background picture-filename /usr/share/backgrounds/hackthebox-alt.jpg &>/dev/null
echo -ne "\n${limaColour}[✔]${endColour} ${grayColour}Finished. Enjoy!${endColour}\n"
echo -e "${limaColour}[+]${endColour} ${grayColour}Now you can open ${blueColour}kitty${endColour} ${grayColour}terminal${endColour}\n"
source ~/.zshrc &>/dev/null
}
function main(){
echo -e "$banner"
echo -e "\n${turquoiseColour}$(for in in $(seq 1 100); do echo -n '='; done)"
echo -e " I N S T A L L A T I O N"
echo -e "$(for in in $(seq 1 100); do echo -n '='; done)${endColour}"
echo -e "\n${limaColour}[+]${endColour}${grayColour} This program requires ${blueColour}sudo${endColour}${grayColour} permissions for a successful installation"
echo -ne "\n${purpleColour}[~]${endColour}${grayColour} Install Phantom Terminal?${endColour} ${limaColour}[y/n]:${endColour} "
read output_show
if [[ $output_show == "y" ]]; then
installation
elif [[ $output_show == "n" ]]; then
echo -e "${redColour}[-] Hmmmmm alright${endColour}"
exit 0
else
echo -e "${redColour}[!] You have to select y/n${endColour}"
exit 1
fi
}
main