-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtrial.sh
More file actions
45 lines (41 loc) · 1.96 KB
/
trial.sh
File metadata and controls
45 lines (41 loc) · 1.96 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
#!/bin/bash
#AutoScript Create Trial Accounts
#All Trial Accounts last for 1 day
#Modified by Bustami Arifin
#Translated by Shigeno
clear
echo -e " "
echo -e "\e[94m ::::::::: :::::::::: ::::::::: ::::::::::: "
echo -e "\e[94m :+: :+: :+: :+: :+: :+: :+: "
echo -e "\e[94m +:+ +:+ +:+ +:+ +:+ +:+ "
echo -e "\e[94m +#+ +:+ +#++:++# +#++:++#+ +#+ "
echo -e "\e[94m +#+ +#+ +#+ +#+ +#+ +#+ "
echo -e "\e[94m #+# #+# #+# #+# #+# #+# "
echo -e "\e[94m ######### ########## ######### ### "
echo -e "\e[94m Deb7AutoScriptVPS by Shigeno "
echo -e "\e[0m "
IP=`dig +short myip.opendns.com @resolver1.opendns.com`
Login=trial`</dev/urandom tr -dc X-Z0-9 | head -c4`
hari="1"
Pass=`</dev/urandom tr -dc a-f0-9 | head -c9`
useradd -e `date -d "$hari days" +"%Y-%m-%d"` -s /bin/false -M $Login
echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
echo -e ""
echo -e ""
echo -e "============Trial Account Information============="
echo -e " "
echo -e " Username : $Login "
echo -e " Password : $Pass\n "
echo -e " "
echo -e " Host / IP : $IP "
echo -e " Port OpenSSH : 22, 143 "
echo -e " Port Dropbear : 80, 443 "
echo -e " Port SSL : 442 "
echo -e " Port Squid : 3128, 8000, 8080 "
echo -e " Port OpenVPN : TCP 1194 "
echo -e " OpenVPN Config : http://$IP:81/client.ovpn "
echo -e " "
echo -e "=================================================="
echo -e ""
echo -e ""
echo -e ""