-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
69 lines (62 loc) · 1.95 KB
/
install.sh
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
#!/bin/bash
# Detect system and update full system
detect_and_update() {
echo -e "\e[36mDetecting System...\e[0m"
if [[ "$(uname -o)" == "Android" ]]; then
echo -e "\e[33mRunning on Termux. Updating system...\e[0m"
pkg update -y && pkg upgrade -y
install_required_termux_packages
elif [[ "$(uname -o)" == "GNU/Linux" ]]; then
echo -e "\e[33mRunning on Linux. Updating system...\e[0m"
sudo apt update -y && sudo apt full-upgrade -y
install_required_kali_packages
else
echo -e "\e[31mUnsupported system detected. Exiting...\e[0m"
exit 1
fi
}
# Install required packages in Termux
install_required_termux_packages() {
echo -e "\e[34mChecking and installing required packages for Termux...\e[0m"
pkg install curl jq figlet toilet -y
# Optional: Check if lolcat exists, since it's not always in the default Termux repo
pkg install ruby -y
gem install lolcat
}
# Install required packages in Kali Linux
install_required_kali_packages() {
echo -e "\e[34mChecking and installing required packages for Kali Linux...\e[0m"
sudo apt install curl jq figlet toilet lolcat -y
clear
sleep 5
}
# Display a colorful and fancy banner
display_banner() {
colors=(31 32 33 34 35 36)
color_index=$(( RANDOM % 6 ))
echo "SsL Hunter" | figlet | lolcat
}
# Show a 3D progress bar (simple version)
progress_bar() {
echo -e "\e[34mPlease Wait Installation in progress...\e[0m" | lolcat
for ((i=0; i<=30; i++)); do
printf "["
for ((j=0; j<=i; j++)); do
printf "#"
done
for ((k=i; k<=30; k++)); do
printf "."
done
printf "]\r"
sleep 1
done
echo -e "\nInstallati0n Complete."
xdg-open https://youtu.be/JMCTjlqS5Oc
echo "Support on Youtube" | lolcat
xdg-open https://www.youtube.com/@TermuxVibes
sleep 60
}
# Run the functions
detect_and_update
display_banner
progress_bar