forked from kleiton0x00/XSScope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
65 lines (54 loc) · 1.65 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
#!/bin/bash
if [[ -e ngrok ]]; then
echo "[*] Ngrok is already installed, no need to setup."
exit
else
printf "[*] Getting system specifications...\n"
sleep 1
system_info=$(uname -m)
if [[ $system_info == 'x86_64' ]]; then
printf "\n[*] Downloading 64bit version of Ngrok...\n"
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
if [[ -e ngrok-stable-linux-amd64.zip ]]; then
unzip ngrok-stable-linux-amd64.zip > /dev/null 2>&1
chmod +x ngrok
rm -rf ngrok-stable-linux-amd64.zip
else
printf "\e[1;93m[!] Download error... Terminal, run:\e[0m\e[1;77m pkg install wget\e[0m\n"
exit 1
fi
elif [[ $system_info == 'i686' ]]; then
printf "\n[*] Downloading 32bit verson of Ngrok...\n"
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip
if [[ -e ngrok-stable-linux-386.zip ]]; then
unzip ngrok-stable-linux-386.zip > /dev/null 2>&1
chmod +x ngrok
rm -rf ngrok-stable-linux-386.zip
else
printf "\e[1;93m[!] Download error... Terminal, run:\e[0m\e[1;77m pkg install wget\e[0m\n"
exit 1
fi
fi
fi
printf "[+] Ngrok installed."
sleep 1
printf "\n[*] Setting up Ngrok Authtoken...\n"
sleep 1
echo [?] Paste Ngrok Authtoken here:
read authtoken
./ngrok authtoken $authtoken
printf "[+] Ngrok activated. Configuring files\n"
cd config
echo $authtoken > ngrok_authtoken.txt
printf "[+] Ngrok authtoken saved to config file.\n"
sleep 1
printf "\n\e[1;93m[!] Setup status: [1/2]\e[0m"
sleep 1
printf "\n\n[*] Installing the required Python Libraries..."
sleep 1
sudo apt-get install python3-tk
sudo pip3 install pyperclip requests
pip3 install pyngrok
printf "\n\n\e[1;93m[!] Setup status: [2/2]\e[0m"
printf "\n\n[+] Setup is successfully completed."
exit