forked from syapik96/aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrial.sh
49 lines (45 loc) · 1.64 KB
/
trial.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
#!/bin/bash
IP=$(wget -qO- icanhazip.com);
domain=$(cat /etc/v2ray/domain);
Login=trial`</dev/urandom tr -dc X-Z0-9 | head -c4`
hari="1"
Pass="1"
echo "Script AutoCreate Akun SSH dan OpenVPN Mod By PrinceNewbie"
sleep 3
echo Ping Host
echo Cek Hak Akses...
sleep 0.5
echo Permission Accepted
clear
sleep 0.5
echo Membuat Akun: $Login
sleep 0.5
echo Setting Password: $Pass
sleep 0.5
clear
useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
echo -e ""
echo -e "Informasi Trial 1 Hari SSH & OpenVPN"
echo -e "Informasi Akun SSH & OpenVPN"
echo -e "Username : $Login "
echo -e "Password : $Pass"
echo -e "==============================="
echo -e "IP Server : $IP"
echo -e "Host : $domain"
echo -e "OpenSSH : 22, 500, 40000"
echo -e "Dropbear : 143, 109, 50000"
echo -e "SSH WS Python : 100, 2021 , 2020"
echo -e "SSH WS Python SSL : 2052, 2053 "
echo -e "SSL/TLS : 443, 777"
echo -e "Port Squid : 3128, 8080 (limit to IP SSH)"
echo -e "OpenVPN : TCP 1194 http://$IP:81/client-tcp-1194.ovpn"
echo -e "OpenVPN : UDP 2200 http://$IP:81/client-udp-2200.ovpn"
echo -e "OpenVPN : SSL 992 http://$IP:81/client-tcp-ssl.ovpn"
echo -e "badvpn : 7100, 7200, 7300"
echo -e "==============================="
echo -e "Payload Websocket : GET / HTTP/1.1[crlf]Host: $domain[crlf]Upgrade: websocket[crlf][crlf]"
echo -e "==============================="
echo -e "Aktif Sampai : $exp"
echo -e "Script Mod by @PrinceNewbie"