forked from MrGrim666/spymer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
44 lines (42 loc) · 1.06 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
#!/bin/bash
clear
echo "--------------------"
echo "| Кто ты ? |"
echo "|------------------|"
echo "| 1. Termux |"
echo "| 2. Другой Unix |"
echo "| |"
echo "| Введите 1 или 2: |"
echo "--------------------"
read numb
if [ $numb = "1" ]
then
pkg install python
pkg install python3
pkg install python3-pip
pkg install dos2unix
pip3 install requests
pip3 install colorama
cp ~/spymer/spammer.py /data/data/com.termux/files/usr/bin/spymer
dos2unix /data/data/com.termux/files/usr/bin/spymer
chmod 777 /data/data/com.termux/files/usr/bin/spymer
spymer
else
if [ $numb = "2" ]
then
if [ "$(whoami)" != 'root' ]; then
echo "У вас нет прав. Запустите install.sh с root правами (sudo sh ~/spymer/install.sh)"
exit
else
apt install python3 python3-pip dos2unix
pip3 install requests
pip3 install colorama
cp ~/spymer/spammer.py /usr/bin/spymer
dos2unix /usr/bin/spymer
chmod 777 /usr/bin/spymer
spymer
fi
else
echo "Некорректный ввод"
fi
fi