-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
setup.sh
294 lines (290 loc) · 10.1 KB
/
setup.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# /bin/bash
# Author: AnonyminHack5
##INstall flask, sendgrid
cls || clear
# banner
echo -e "\033[38;5;208m
▒██ ██▒ ▒█████ ██████ ██▓ ███▄ █ ▄▄▄█████▓
▒▒ █ █ ▒░▒██▒ ██▒▒██ ▒ ▓██▒ ██ ▀█ █ ▓ ██▒ ▓▒
░░ █ ░▒██░ ██▒░ ▓██▄ ▒██▒▓██ ▀█ ██▒▒ ▓██░ ▒░
░ █ █ ▒ ▒██ ██░ ▒ ██▒░██░▓██▒ ▐▌██▒░ ▓██▓ ░
▒██▒ ▒██▒░ ████▓▒░▒██████▒▒░██░▒██░ ▓██░ ▒██▒ ░
▒▒ ░ ░▓ ░░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░░▓ ░ ▒░ ▒ ▒ ▒ ░░
░░ ░▒ ░ ░ ▒ ▒░ ░ ░▒ ░ ░ ▒ ░░ ░░ ░ ▒░ ░
░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░
An Open Source Intelligence Framework
Created by: AnonyminHack5
Team: TermuxHackz Society
Version: \033[1;92m2.3
\033[0m"
echo
printf "\e[1;34m\tSelect your terminal to install X-osint \e[0m\n"
printf "\e[1;91m\t[!] PLEASE MAKE SURE YOU CHOOSE CORRECTLY [!] \e[0m\n\n"
printf "\e[1;34m\t\t[\e[0m\e[1;77m01\e[0m\e[1;34m]\e[0m\e[1;93mTermux\e[0m\e[1;91m [STABLE]\e[0m\n"
printf "\e[1;34m\t\t[\e[0m\e[1;77m02\e[0m\e[1;34m]\e[0m\e[1;93mLinux\e[0m\n"
read -p $'\n\e[1;92m[\e[0m\e[1;77m*\e[0m\e[1;92m] Choose your terminal: \e[0m\en' terminal
if [[ $terminal == "1" || $terminal == "01" ]]; then
printf "\e[1;94mYou have choosen Termux as your current terminal packages for Termux will Start to install... \e[0m\n"
sleep 3
clear || cls
echo -e "\033[1;91m[*] \033[1;97m Allow file/move permission\033[0m"
echo
termux-setup-storage
echo -e "\033[1;91m[*]\033[1;97m Installing Required Packages\033[0m"
echo
echo -e "\033[1;91m[*]\033[1;97m Updating Termux\033[0m"
echo
pkg update -y
echo
echo -e "\033[1;91m[*]\033[1;97m Upgrading Termux\033[0m"
pkg upgrade -y
echo
echo -e "\033[1;91m[*]\033[1;97m Installing All Packages one-time\033[0m"
pkg install python3
echo
echo -e "\033[1;91m[*]\033[1;97m Installing tor \033[0m"
pkg install tor
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Requests\033[0m"
echo
pip install requests
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Pillow\033[0m"
echo
pip install pillow==2.2.1
echo
echo -e "\033[1;91m[*]\033[1;97m Upgrading Pillow\033[0m"
echo
pip install --upgrade pillow
echo
echo -e "\033[1;91m[*]\033[1;97m Installing resolver\033[0m"
pip install resolver
echo
echo -e "\033[1;91m[*]\033[1;97m Installing piexif\033[0m"
pip install piexif
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Flask\033[0m"
pip install flask
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Sendgrid\033[0m"
pip install sendgrid
echo
echo -e "\033[1;91m[*]\033[1;97m Installing cryptography\033[0m"
pip install cryptography
echo
echo -e "\033[1;91m[*]\033[1;97m Removing old packages\033[0m"
python3 -m pip uninstall googlesearch-python -y
python3 -m pip uninstall google-search -y
python3 -m pip uninstall google -y
echo
echo -e "\033[1;91m[*]\033[1;97m Installing google\033[0m"
pip install google
echo
echo -e "\033[1;91m[*]\033[1;97m Installing numpy and folium\033[0m"
pkg install python-numpy
pip install folium
echo
echo -e "\033[1;91m[*]\033[1;97m Installing libxslt\033[0m"
pkg install libxslt
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Pylint Flake\033[0m"
pip install pylint flake8
echo
echo -e "\033[1;91m[*]\033[1;97m Installing E-slint\033[0m"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install node
nvm use node
nvm alias default node
npm cache clean --force
npm install -g eslint
echo
echo -e "\033[1;91m[*]\033[1;97m Installing IMDb [Might take a while, please be patient]\033[0m"
pip install IMDbPY
pip install imdbpy
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Cinemagoer \033[0m"
pip install cinemagoer
echo
echo -e "\033[1;91m[*]\033[1;97m Installing prompt-toolkit\033[0m"
pip install prompt-toolkit
echo
echo -e "\033[1;91m[*]\033[1;97m Installing vininfo\033[0m"
pip install vininfo
echo
echo -e "\033[1;91m[*]\033[1;97m Installing tkinter\033[0m"
pip install tk-tools
echo
echo -e "\033[1;91m[*]\033[1;97m Installing phonenumbers\033[0m"
pip install phonenumbers
echo
echo -e "\033[1;91m[*]\033[1;97m Installing colorama\033[0m"
pip install colorama
echo
echo -e "\033[1;91m[*]\033[1;97m Installing folium\033[0m"
pip install folium
echo
echo -e "\033[1;91m[*]\033[1;97m Installing opencage\033[0m"
pip install opencage
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Find github\033[0m"
pip install find-github-email
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Stripe\033[0m"
pip install stripe
echo
echo -e "\033[1;91m[*]\033[1;97m Installing BeautifulSoup4\033[0m"
pip install bs4
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Modules\033[0m"
pip install pillow google-api-python-client requests beautifulsoup4
echo
echo -e "\033[1;91m[*]\033[1;97m Installing ping3\033[0m"
echo
pip install ping3
echo
echo -e "\033[1;91m[*]\033[1;97m Setting up environment \033[0m"
echo
cp -r xosint $PREFIX/bin
cp -r subdomains.txt $PREFIX/bin
cp -r templates $PREFIX/bin
cp -r static $PREFIX/bin
cd $PREFIX/bin && chmod u+x xosint
cd $PREFIX/bin && chmod u+x subdomains.txt
cd $PREFIX/bin && chmod u+x templates
cd $PREFIX/bin && chmod u+x static
cd $HOME && rm -rf X-osint
printf "\e[1;91m[*]\e[1;97m X-osint Installed Successfully, Now its ready for use. So re-open your Termux To use X-osint\e[0m\n"
printf "\e[1;91m[*]\e[1;97m After reopen your termux just type '\e[1;91mxosint\e[1;97m' to launch X-osint \e[0m"
exit
elif [[ $terminal == "02" || $terminal == "2" ]]; then
printf "\e[1;94mYou have choosen Linux as your current terminal packages for Linux will Start to install... \e[0m\n"
sleep 2
clear || cls
echo -e "\033[1;91m[*]\033[1;97m Updating Linux\033[0m"
apt-get update
echo
echo -e "\033[1;91m[*]\033[1;97m Upgrading Linux\033[0m"
apt-get upgrade -y
echo
echo -e "\033[1;91m[*]\033[1;97m Installing tor \033[0m"
apt install tor -y
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Lolcat\033[0m"
echo
pip install lolcat --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Pillow\033[0m"
echo
pip install pillow==2.2.1 --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Upgrading Pillow\033[0m"
echo
pip install --upgrade pillow
echo
echo -e "\033[1;91m[*]\033[1;97m Installing resolver\033[0m"
echo
pip install resolver --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing piexif\033[0m"
pip install piexif --break-system-packages
sleep 1
echo
echo -e "\033[1;91m[*]\033[1;97m Installing google\033[0m"
pip install google --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing IMDb\033[0m"
pip install IMDbPY --break-system-packages
pip install imdbpy --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Cinemagoer \033[0m"
pip install cinemagoer --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing prompt-toolkit\033[0m"
pip install prompt-toolkit --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing phonenumbers\033[0m"
pip install phonenumbers --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing colorama\033[0m"
pip install colorama --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing BeautifulSoup4\033[0m"
pip install bs4 --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Google Search\033[0m"
pip install googlesearch-python
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Stripe\033[0m"
pip install stripe
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Pylint Flake\033[0m"
pip install pylint flake8
echo
echo -e "\033[1;91m[*]\033[1;97m Installing E-slint\033[0m"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install node
nvm use node
nvm alias default node
npm cache clean --force
npm install -g eslint
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Find github\033[0m"
pip install find-github-email --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing folium\033[0m"
apt install python3-numpy -y
pip install folium --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing opencage\033[0m"
pip install opencage --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing vininfo\033[0m"
pip install vininfo --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing tkinter\033[0m"
pip install tk-tools --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Modules\033[0m"
pip install pillow google-api-python-client requests beautifulsoup4
echo
echo -e "\033[1;91m[*]\033[1;97m Installing cryptography\033[0m"
pip install cryptography
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Flask\033[0m"
pip install flask
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Sendgrid\033[0m"
pip install sendgrid
echo
echo -e "\033[1;91m[*]\033[1;97m Installing ping3\033[0m"
echo
pip install ping3
echo
printf "\e[1;94mSetting up environment for Linux .. \e[0m\n"
sleep 1
echo
sudo cp -r xosint /usr/local/bin
sudo cp -r subdomains.txt /usr/local/bin
sudo cp -r templates /usr/local/bin
sudo cp -r static /usr/local/bin
cd /usr/local/bin && sudo chmod +x xosint
cd /usr/local/bin && chmod u+x subdomains.txt
cd /usr/local/bin && chmod u+x templates
cd /usr/local/bin && chmod u+x static
cd $HOME && sudo rm -rf X-osint
echo
printf "\e[1;91m[*]\e[1;97m X-osint Installed Successfully, Now its ready for use. So re-open your Linux Terminal To use X-osint\e[0m\n"
echo
echo
printf "\e[1;91m[*]\e[1;97m After reopen your terminal just type '\e[1;91msudo xosint or python xosint or xosint\e[1;97m' to launch X-osint \e[0m"
echo ""
exit
else
printf "\e[0m\e[1;91m [\e[1;97m~\e[1;91m]\e[1;93m Sorry, lol thats not in the option 😂....open up your eyes..!!. \e[0m\e[1;91m[\e[0m\e[1;97m~\e[0m\e[1;91m]\e[0m\n"
sleep 1
clear || cls
bash setup.sh
fi