-
-
Notifications
You must be signed in to change notification settings - Fork 296
Expand file tree
/
Copy pathsetup.sh
More file actions
151 lines (148 loc) · 6.03 KB
/
Copy pathsetup.sh
File metadata and controls
151 lines (148 loc) · 6.03 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
# /bin/bash
cls || clear
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 Python, Tor and Tkinter\033[0m"
pkg install -y python tor python-tkinter libxslt python-numpy
echo
echo -e "\033[1;91m[*]\033[1;97m Installing prebuilt cryptography and rust (needed if pip has to build cryptography from source)\033[0m"
pkg install -y python-cryptography rust binutils
echo
echo -e "\033[1;91m[*]\033[1;97m Installing pip dependencies from requirements.txt\033[0m"
echo
pip install --upgrade pip
pip install -r requirements.txt
echo
echo -e "\033[1;91m[*]\033[1;97m Downloading spaCy language model\033[0m"
python -m spacy download en_core_web_sm --break-system-packages
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 vininfo\033[0m"
pip install vininfo
echo
echo -e "\033[1;91m[*]\033[1;97m Installing find-github-email\033[0m"
pip install find-github-email
echo
echo -e "\033[1;91m[*]\033[1;97m Setting up environment \033[0m"
echo
if [ -f xosint ] && [ -f setup.sh ]; then
chmod u+x xosint && \
cp -f xosint $PREFIX/bin/xosint && \
cp -r subdomains.txt $PREFIX/bin && \
cp -r templates $PREFIX/bin && \
cp -r static $PREFIX/bin
if [ $? -eq 0 ]; then
REPO_DIR=$(pwd)
cd ..
rm -rf "$REPO_DIR"
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"
else
printf "\e[1;91m[*]\e[1;97m Install failed while copying files to \$PREFIX/bin, see the errors above\e[0m\n"
fi
else
printf "\e[1;91m[*]\e[1;97m xosint or setup.sh not found in the current directory\e[0m\n"
fi
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"
sudo apt-get update
echo
echo -e "\033[1;91m[*]\033[1;97m Upgrading Linux\033[0m"
sudo apt-get upgrade -y
echo
echo -e "\033[1;91m[*]\033[1;97m Installing Tor and Tkinter\033[0m"
sudo apt-get install -y tor python3-tk python3-numpy libxslt1-dev
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 pip dependencies from requirements.txt\033[0m"
echo
pip install --upgrade pip --break-system-packages
pip install -r requirements.txt --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Downloading spaCy language model\033[0m"
python3 -m spacy download en_core_web_sm --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 vininfo\033[0m"
pip install vininfo --break-system-packages
echo
echo -e "\033[1;91m[*]\033[1;97m Installing find-github-email\033[0m"
pip install find-github-email --break-system-packages
echo
printf "\e[1;94mSetting up environment for Linux .. \e[0m\n"
sleep 1
echo
if [ -f xosint ] && [ -f setup.sh ]; then
chmod +x xosint && \
sudo cp -f xosint /usr/local/bin/xosint && \
sudo cp -r subdomains.txt /usr/local/bin && \
sudo cp -r templates /usr/local/bin && \
sudo cp -r static /usr/local/bin
if [ $? -eq 0 ]; then
REPO_DIR=$(pwd)
cd ..
sudo rm -rf "$REPO_DIR"
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;91mxosint\e[1;97m' to launch X-osint \e[0m"
echo ""
else
printf "\e[1;91m[*]\e[1;97m Install failed while copying files to /usr/local/bin, see the errors above\e[0m\n"
fi
else
printf "\e[1;91m[*]\e[1;97m xosint or setup.sh not found in the current directory\e[0m\n"
fi
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