-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-premiumscript.sh
103 lines (96 loc) · 4.4 KB
/
install-premiumscript.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
cd
sed -i '$ i\screen -AmdS limit /root/limit.sh' /etc/rc.local
sed -i '$ i\screen -AmdS ban /root/ban.sh' /etc/rc.local
sed -i '$ i\screen -AmdS limit /root/limit.sh' /etc/rc.d/rc.local
sed -i '$ i\screen -AmdS ban /root/ban.sh' /etc/rc.d/rc.local
echo "0 0 * * * root /usr/local/bin/user-expire" > /etc/cron.d/user-expire
echo "0 0 * * * root /usr/local/bin/user-expire-pptp" > /etc/cron.d/user-expire-pptp
cat > /root/ban.sh <<END3
#!/bin/bash
#/usr/local/bin/user-ban
END3
cat > /root/limit.sh <<END3
#!/bin/bash
#/usr/local/bin/user-limit
END3
cd /usr/local/bin
wget -O premium-script "https://raw.githubusercontent.com/nuttapongz/premium-script/master/premium-script"
wget -O alluser-pptp "https://raw.githubusercontent.com/nuttapongz/premium-script/master/alluser-pptp"
wget -O edit-port "https://raw.githubusercontent.com/nuttapongz/premium-script/master/edit-port"
wget -O edit-port-openssh "https://raw.githubusercontent.com/nuttapongz/premium-script/master/edit-port-openssh"
wget -O edit-port-openvpn "https://raw.githubusercontent.com/nuttapongz/premium-script/master/edit-port-openvpn"
wget -O edit-port-squid "https://raw.githubusercontent.com/nuttapongz/premium-script/master/edit-port-squid"
wget -O limit.sh "https://raw.githubusercontent.com/nuttapongz/premium-script/master/limit.sh"
wget -O listpassword "https://raw.githubusercontent.com/nuttapongz/premium-script/master/listpassword"
wget -O log-ban "https://raw.githubusercontent.com/nuttapongz/premium-script/master/log-ban"
wget -O log-limit "https://raw.githubusercontent.com/nuttapongz/premium-script/master/log-limit"
wget -O trial "https://raw.githubusercontent.com/nuttapongz/premium-script/master/trial"
wget -O user-add "https://raw.githubusercontent.com/nuttapongz/premium-script/master/user-add"
wget -O user-delete "https://raw.githubusercontent.com/nuttapongz/premium-script/master/user-delete"
wget -O user-delete-expired "https://raw.githubusercontent.com/nuttapongz/premium-script/master/user-delete-expired"
wget -O user-password "https://raw.githubusercontent.com/nuttapongz/premium-script/master/user-password"
cp /usr/local/bin/premium-script /usr/local/bin/menu
chmod +x /usr/local/bin/premium-script
chmod +x /usr/local/bin/alluser-pptp
chmod +x /usr/local/bin/edit-port
chmod +x /usr/local/bin/edit-port-openssh
chmod +x /usr/local/bin/edit-port-openvpn
chmod +x /usr/local/bin/edit-port-squid
chmod +x /usr/local/bin/limit.sh
chmod +x /usr/local/bin/listpassword
chmod +x /usr/local/bin/log-ban
chmod +x /usr/local/bin/log-limit
chmod +x /usr/local/bin/trial
chmod +x /usr/local/bin/user-add
chmod +x /usr/local/bin/user-delete
chmod +x /usr/local/bin/user-delete-expired
chmod +x /usr/local/bin/user-password
chmod +x /usr/local/bin/trial
chmod +x /usr/local/bin/user-add
chmod +x /usr/local/bin/user-aktif
chmod +x /usr/local/bin/user-ban
chmod +x /usr/local/bin/user-delete
chmod +x /usr/local/bin/user-detail
chmod +x /usr/local/bin/user-expire
chmod +x /usr/local/bin/user-limit
chmod +x /usr/local/bin/user-lock
chmod +x /usr/local/bin/user-login
chmod +x /usr/local/bin/user-unban
chmod +x /usr/local/bin/user-unlock
chmod +x /usr/local/bin/user-password
chmod +x /usr/local/bin/user-log
chmod +x /usr/local/bin/user-add-pptp
chmod +x /usr/local/bin/user-delete-pptp
chmod +x /usr/local/bin/alluser-pptp
chmod +x /usr/local/bin/user-login-pptp
chmod +x /usr/local/bin/user-expire-pptp
chmod +x /usr/local/bin/user-detail-pptp
chmod +x /usr/local/bin/bench-network
chmod +x /usr/local/bin/speedtest
chmod +x /usr/local/bin/ram
chmod +x /usr/local/bin/log-limit
chmod +x /usr/local/bin/log-ban
chmod +x /usr/local/bin/user-generate
chmod +x /usr/local/bin/user-list
chmod +x /usr/local/bin/diagnosa
chmod +x /usr/local/bin/premium-script
chmod +x /usr/local/bin/user-delete-expired
chmod +x /usr/local/bin/auto-reboot
chmod +x /usr/local/bin/log-install
chmod +x /usr/local/bin/menu
chmod +x /usr/local/bin/user-auto-limit
chmod +x /usr/local/bin/user-auto-limit-script
chmod +x /usr/local/bin/edit-port
chmod +x /usr/local/bin/edit-port-squid
chmod +x /usr/local/bin/edit-port-openvpn
chmod +x /usr/local/bin/edit-port-openssh
chmod +x /usr/local/bin/edit-port-dropbear
chmod +x /usr/local/bin/autokill
chmod +x /root/limit.sh
chmod +x /root/ban.sh
screen -AmdS limit /root/limit.sh
screen -AmdS ban /root/ban.sh
clear
cd
echo "สคริปต์พรีเมี่ยมได้รับการอัพเกรดเรียบร้อยแล้ว!( Supernet-VPN )"