-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
169 lines (166 loc) · 3.89 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
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
#!/bin/sh
# This code write by Mr.Nope
# Mr.Nope = Mr.Programmer2938
# Black-Tool Installing File
# Version 4.0.0
if [[ "$(id -u)" -ne 0 ]]; then
echo "Please, Run This Programm as Root!"
exit 1
fi
function ext() {
clear
echo "Exiting..."
exit 1
}
function windows_installing() {
printf '\033]2;Black-Tool/Windows/Installing\a'
clear
print "Enter Path: "
read path
echo "Setup..."
cd Black-Tool/Windows && cp hack.py $path
echo "
Black-Tool Installed
"
}
function termux_installing() {
printf '\033]2;Black-Tool/Termux/Installing\a'
clear
echo "Installing..."
sleep 1
printf "Enter Path: "
read path
sleep 1
cd Black-Tool/Termux && cp hack $path
echo "
Black-Tool Installed!
"
}
function choose_os() {
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄"
echo ""
echo "
Choose OS:
{1}.Linux
{2}.Windows
{3}.Android
{99}.Exit
"
printf "choose/> "
read choose
if [[ "$choose" == '1']];
then
try1
elif [[ "$choose" == '2']];
then
windows_installing
elif [[ "$choose" == '3']];
then
termux_installing
elif [[ "$choose" == '99']];
then
clear
echo "
Exiting...
"
exit
else
choose_os
fi
}
try1() {
printf '\033]2;Black-Tool-Installing/color\a'
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄"
echo ""
echo "color:
{1}.red
{2}.green
{3}.blue
{4}.None
{99}.Exit
"
printf 'Enter color: '
read color;
if [[ "$color" == "1" ]]; then
cd color/red/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "2" ]]; then
cd color/green/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "3" ]]; then
cd color/blue/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "4" ]]; then
chmod +x hack
cp hack /usr/local/bin
cp hack /usr/bin
elif [[ "$color" == "99" ]]; then
ext
else
try1
fi
}
run() {
clear
printf '\033]2;Starting\a'
echo "Starting..."
sleep 2
chmod +x hack
chmod +x uninstall.sh
try1
printf '\033]2;Installing...\a'
echo "Installing..."
sleep 2
apt-get update
apt-get upgrade
apt install alsa-utils
apt install xtitle
apt install lolcat
apt install python
apt install python3
printf "Press any key To continue..."
read -n 1
echo ""
echo "Finish...!
Usage:
hack --help
Help Argument:
Black-Tool Usage:
--start | start Hack Menu!
--install <Pkg Name>
--clone <Repositories Link>
--version | Black-Tool version
--help | Black-Tool Help
--banner | Show Black-Tool Banner
"
exit 1
}
check() {
printf '\033]2;Black-Tool/Installing/Check-Internet\a'
clear
echo "Checking Internet..."
sleep 1
ping -w 1 google.com > /dev/null
if [[ "$?" != 0 ]]; then
clear
echo "
Please, Check Internet!
"
exit 1
else
clear
echo "Internet Connected!"
sleep 2
run
fi
}
check