-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathfedora.sh
55 lines (52 loc) · 3.07 KB
/
fedora.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
echo -e "$123\n$123\n" | sudo passwd
rm -rf ngrok ngrok.zip ng.sh > /dev/null 2>&1
wget -O ng.sh https://bit.ly/GCngr0k > /dev/null 2>&1
chmod +x ng.sh
./ng.sh
clear
echo "======================="
echo choose ngrok region
echo "======================="
echo "us - United States (Ohio)"
echo "eu - Europe (Frankfurt)"
echo "ap - Asia/Pacific (Singapore)"
echo "au - Australia (Sydney)"
echo "sa - South America (Sao Paulo)"
echo "jp - Japan (Tokyo)"
echo "in - India (Mumbai)"
read -p "choose ngrok region: " CRP
./ngrok tcp --region $CRP 3388 &>/dev/null &
echo "===================================="
echo "Install RDP"
echo "===================================="
docker pull danchitnis/xrdp:fedora-xfce
clear
echo "===================================="
echo "Start RDP"
echo "===================================="
echo "Username : root"
echo "Password : 123"
echo "RDP Address:"
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'
echo "===================================="
echo "Don't close this tab to keep RDP running"
echo "Wait 1 minute and next open RDC to connect"
echo "===================================="
echo "===================================="
docker run -it -p 3388:3389 danchitnis/xrdp:fedora-xfce root 123 yes > /dev/null 2>&1
b='\033[1m'
r='\E[31m'
g='\E[32m'
c='\E[36m'
endc='\E[0m'
enda='\033[0m'
# Branding
printf """$c$b
██╗ ██╗███╗ ██╗ ██████╗ ██████╗ █████╗ ██╗ ██╗ ██████╗ ███████╗████████╗██╗███╗ ██╗ ██████╗
██║ ██║████╗ ██║██╔════╝ ██╔════╝ ██╔══██╗██║ ██║██╔═══██╗██╔════╝╚══██╔══╝██║████╗ ██║██╔════╝
██║ ██║██╔██╗ ██║██║ ███╗██║ ███╗███████║███████║██║ ██║███████╗ ██║ ██║██╔██╗ ██║██║ ███╗
██║ ██║██║╚██╗██║██║ ██║██║ ██║██╔══██║██╔══██║██║ ██║╚════██║ ██║ ██║██║╚██╗██║██║ ██║
███████╗██║██║ ╚████║╚██████╔╝╚██████╔╝██║ ██║██║ ██║╚██████╔╝███████║ ██║ ██║██║ ╚████║╚██████╔╝
╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
$r Support YT Channel-> Aank is ME © 2022 $c https://aank.me/Youtube
$endc$enda""";