13 |
14 |
15 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/install.md:
--------------------------------------------------------------------------------
1 | # install openvpn
2 | ```
3 | apt update && apt install wget -y && wget -qO- -O install.sh https://raw.githubusercontent.com/givpn/givpn/master/openvpn/oo/install.sh && bash install.sh
4 | ```
5 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/openvpn.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # =========================================
3 | # Quick Setup | Script Setup Manager
4 | # Edition : Stable Edition 1.0
5 | # Auther : givpn
6 | # (C) Copyright 2023
7 | # =========================================
8 | # pewarna hidup
9 | BGreen='\e[1;32m'
10 | NC='\e[0m'
11 | domain=$(cat /etc/xray/domain)
12 | echo "$domain" > /root/domain
13 | clear
14 | MYIP=$(wget -qO- ifconfig.co);
15 | MYIP2="s/xxxxxxxxx/$MYIP/g";
16 | # // install squid for ubuntu 18/20
17 | apt -y install squid3
18 |
19 | # install squid for debian 11
20 | sleep 1
21 | echo "\e[1;32m Proses Download squid.. \e[0m"
22 | apt -y install squid
23 | wget -O /etc/squid/squid.conf "https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/openvpn/squid3.conf"
24 | sed -i $MYIP2 /etc/squid/squid.conf
25 |
26 | # // OpenVPN
27 | sleep 1
28 | echo "\e[1;32m Proses Download OpenVPN.. \e[0m"
29 | wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/openvpn/vpn.sh && chmod +x vpn.sh && ./vpn.sh
30 |
31 | cd
32 | chown -R www-data:www-data /home/vps/public_html
33 | sleep 0.5
34 | echo -e "$BGreen[SERVICE]$NC Restart All service SSH & OVPN"
35 | /etc/init.d/nginx restart >/dev/null 2>&1
36 | sleep 0.5
37 | echo -e "[ ${BGreen}ok${NC} ] Restarting nginx"
38 | /etc/init.d/openvpn restart >/dev/null 2>&1
39 | sleep 0.5
40 | echo -e "[ ${BGreen}ok${NC} ] Restarting cron "
41 | /etc/init.d/ssh restart >/dev/null 2>&1
42 | sleep 0.5
43 | echo -e "[ ${BGreen}ok${NC} ] Restarting ssh "
44 | /etc/init.d/dropbear restart >/dev/null 2>&1
45 | sleep 0.5
46 | echo -e "[ ${BGreen}ok${NC} ] Restarting dropbear "
47 | /etc/init.d/fail2ban restart >/dev/null 2>&1
48 | sleep 0.5
49 | echo -e "[ ${BGreen}ok${NC} ] Restarting fail2ban "
50 | /etc/init.d/stunnel4 restart >/dev/null 2>&1
51 | sleep 0.5
52 | echo -e "[ ${BGreen}ok${NC} ] Restarting stunnel4 "
53 | /etc/init.d/vnstat restart >/dev/null 2>&1
54 | sleep 0.5
55 | echo -e "[ ${BGreen}ok${NC} ] Restarting vnstat "
56 | /etc/init.d/squid restart >/dev/null 2>&1
57 | clear
58 | echo ""
59 | echo "==================================================================" | tee -a log-install.txt
60 | echo " ___ ___ ___ " | tee -a log-install.txt
61 | echo " / /\ ___ ___ / /\ /__/\ " | tee -a log-install.txt
62 | echo " / /:/_ / /\ /__/\ / /::\ \ \:\ " | tee -a log-install.txt
63 | echo " / /:/ /\ / /:/ \ \:\ / /:/\:\ \ \:\ " | tee -a log-install.txt
64 | echo " / /:/_/::\ /__/::\ \ \:\ / /:/~/:/ _____\__\:\ " | tee -a log-install.txt
65 | echo " /__/:/__\/\:\ \__\/\:\__ ___ \__\:\ /__/:/ /:/ /__/::::::::\ " | tee -a log-install.txt
66 | echo " \ \:\ /~~/:/ \ \:\/\ /__/\ | |:| \ \:\/:/ \ \:\~~\~~\/ " | tee -a log-install.txt
67 | echo " \ \:\ /:/ \__\::/ \ \:\| |:| \ \::/ \ \:\ ~~~ " | tee -a log-install.txt
68 | echo " \ \:\/:/ /__/:/ \ \:\__|:| \ \:\ \ \:\ " | tee -a log-install.txt
69 | echo " \ \::/ \__\/ \__\::::/ \ \:\ \ \:\ " | tee -a log-install.txt
70 | echo " \__\/ ~~~~ \__\/ \__\/ 1.0 " | tee -a log-install.txt
71 | echo "==================================================================" | tee -a log-install.txt
72 | echo ""
73 | echo " >>> Service & Port" | tee -a log-install.txt
74 | echo " - OpenSSH : 22" | tee -a log-install.txt
75 | echo " - OpenVPN : 1194" | tee -a log-install.txt
76 | echo " - Squid Proxy : 3128, 8000" | tee -a log-install.txt
77 | echo " - SSH Websocket : 80" | tee -a log-install.txt
78 | echo " - SSH SSL Websocket : 443" | tee -a log-install.txt
79 | echo " - Stunnel4 : 222, 777" | tee -a log-install.txt
80 | echo " - Dropbear : 109, 143" | tee -a log-install.txt
81 | echo " - Badvpn : 7100-7900" | tee -a log-install.txt
82 | echo " - Nginx : 81" | tee -a log-install.txt
83 | echo " - Vmess WS TLS : 443" | tee -a log-install.txt
84 | echo " - Vless WS TLS : 443" | tee -a log-install.txt
85 | echo " - Trojan WS TLS : 443" | tee -a log-install.txt
86 | echo " - Shadowsocks WS TLS : 443" | tee -a log-install.txt
87 | echo " - Vmess WS none TLS : 80" | tee -a log-install.txt
88 | echo " - Vless WS none TLS : 80" | tee -a log-install.txt
89 | echo " - Trojan WS none TLS : 80" | tee -a log-install.txt
90 | echo " - Shadowsocks WS none TLS : 80" | tee -a log-install.txt
91 | echo " - Vmess gRPC : 443" | tee -a log-install.txt
92 | echo " - Vless gRPC : 443" | tee -a log-install.txt
93 | echo " - Trojan gRPC : 443" | tee -a log-install.txt
94 | echo " - Shadowsocks gRPC : 443" | tee -a log-install.txt
95 | echo ""
96 | echo "=============================Contact==============================" | tee -a log-install.txt
97 | echo "---------------------------t.me/givpn-----------------------------" | tee -a log-install.txt
98 | echo "==================================================================" | tee -a log-install.txt
99 | echo -e ""
100 | echo ""
101 | echo "" | tee -a log-install.txt
102 | clear
103 | rm -rf openvpn.sh
104 | sleep 5
105 | cd
106 | clear
107 |
108 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/squid3.conf:
--------------------------------------------------------------------------------
1 | acl manager proto cache_object
2 | acl localhost src 127.0.0.1/32 ::1
3 | acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
4 | acl SSL_ports port 442
5 | acl Safe_ports port 80
6 | acl Safe_ports port 21
7 | acl Safe_ports port 443
8 | acl Safe_ports port 70
9 | acl Safe_ports port 210
10 | acl Safe_ports port 1025-65535
11 | acl Safe_ports port 280
12 | acl Safe_ports port 488
13 | acl Safe_ports port 591
14 | acl Safe_ports port 777
15 | acl CONNECT method CONNECT
16 | acl SSH dst xxxxxxxxx
17 | http_access allow SSH
18 | http_access allow manager localhost
19 | http_access deny manager
20 | http_access allow localhost
21 | http_access deny all
22 | http_port 8000
23 | http_port 3128
24 | coredump_dir /var/spool/squid3
25 | refresh_pattern ^ftp: 1440 20% 10080
26 | refresh_pattern ^gopher: 1440 0% 1440
27 | refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
28 | refresh_pattern . 0 20% 4320
29 | visible_hostname Madzril
30 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/ssh/trial.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | cekray=`cat /root/log-install.txt | grep -ow "XRAY" | sort | uniq`
6 | if [ "$cekray" = "XRAY" ]; then
7 | domen=`cat /etc/xray/domain`
8 | else
9 | domen=`cat /etc/v2ray/domain`
10 | fi
11 | portsshws=`cat ~/log-install.txt | grep -w "SSH Websocket" | cut -d: -f2 | awk '{print $1}'`
12 | wsssl=`cat /root/log-install.txt | grep -w "SSH SSL Websocket" | cut -d: -f2 | awk '{print $1}'`
13 |
14 | clear
15 | IP=$(curl -sS ifconfig.me);
16 | #ovpn=`cat /root/log-install.txt | grep -w "OpenVPN" | cut -f2 -d: | awk '{print $6}'`
17 | opensh=`cat /root/log-install.txt | grep -w "OpenSSH" | cut -f2 -d: | awk '{print $1}'`
18 | db=`cat /root/log-install.txt | grep -w "Dropbear" | cut -f2 -d: | awk '{print $1,$2}'`
19 | ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
20 | #sqd="$(cat ~/log-install.txt | grep -w "Squid Proxy" | cut -d: -f2)"
21 | export sqd="$(cat ~/log-install.txt | grep -w "Squid" | cut -d: -f2)"
22 | export ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
23 | OhpSSH=`cat /root/log-install.txt | grep -w "OHP SSH" | cut -d: -f2 | awk '{print $1}'`
24 | OhpDB=`cat /root/log-install.txt | grep -w "OHP DBear" | cut -d: -f2 | awk '{print $1}'`
25 | OhpOVPN=`cat /root/log-install.txt | grep -w "OHP OpenVPN" | cut -d: -f2 | awk '{print $1}'`
26 |
27 | Login=trial` /dev/null
39 | PID=`ps -ef |grep -v grep | grep sshws |awk '{print $2}'`
40 |
41 | if [[ ! -z "${PID}" ]]; then
42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
43 | echo -e "\E[0;41;36m TRIAL SSH \E[0m"
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | echo -e "Username : $Login"
46 | echo -e "Password : $Pass"
47 | echo -e "Expired On : $exp"
48 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
49 | echo -e "IP : $IP"
50 | echo -e "Host : $domen"
51 | echo -e "OpenSSH : $opensh"
52 | echo -e "Dropbear : $db"
53 | echo -e "SSH WS : $portsshws"
54 | echo -e "SSH SSL WS : $wsssl"
55 | echo -e "SSL/TLS :$ssl"
56 | echo -e "UDPGW : 7100-7900"
57 | echo -e "Port Squid :$sqd"
58 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
59 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m"
60 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
61 | echo -e "OpenVPN TCP : $ovpn http://$MYIP:81/client-tcp-$ovpn.ovpn"
62 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
63 | echo -e "Payload WSS"
64 | echo -e "GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]"
65 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
66 | echo -e "Payload WS"
67 | echo -e "GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]"
68 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
69 |
70 | else
71 |
72 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
73 | echo -e "\E[0;41;36m TRIAL SSH \E[0m"
74 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
75 | echo -e "Username : $Login"
76 | echo -e "Password : $Pass"
77 | echo -e "Expired On : $exp"
78 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
79 | echo -e "IP : $IP"
80 | echo -e "Host : $domen"
81 | echo -e "OpenSSH : $opensh"
82 | echo -e "Dropbear : $db"
83 | echo -e "SSH WS : $portsshws"
84 | echo -e "SSH SSL WS : $wsssl"
85 | echo -e "SSL/TLS :$ssl"
86 | echo -e "UDPGW : 7100-7900"
87 | echo -e "Port Squid :$sqd"
88 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
89 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m"
90 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
91 | echo -e "OpenVPN TCP : $ovpn http://$MYIP:81/client-tcp-$ovpn.ovpn"
92 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
93 | echo -e "Payload WSS"
94 | echo -e "GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]"
95 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
96 | echo -e "Payload WS"
97 | echo -e "GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]"
98 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
99 | fi
100 | echo ""
101 | read -n 1 -s -r -p "Press any key to back on menu"
102 | m-sshovpn
103 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/ssh/usernew.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | cekray=`cat /root/log-install.txt | grep -ow "XRAY" | sort | uniq`
6 | if [ "$cekray" = "XRAY" ]; then
7 | domen=`cat /etc/xray/domain`
8 | else
9 | domen=`cat /etc/v2ray/domain`
10 | fi
11 | portsshws=`cat ~/log-install.txt | grep -w "SSH Websocket" | cut -d: -f2 | awk '{print $1}'`
12 | wsssl=`cat /root/log-install.txt | grep -w "SSH SSL Websocket" | cut -d: -f2 | awk '{print $1}'`
13 |
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo -e "\E[0;41;36m SSH Account \E[0m"
16 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
17 | read -p "Username : " Login
18 | read -p "Password : " Pass
19 | read -p "Expired (hari): " masaaktif
20 |
21 | IP=$(curl -sS ifconfig.me);
22 | #ovpn=`cat /root/log-install.txt | grep -w "OpenVPN" | cut -f2 -d: | awk '{print $6}'`
23 | opensh=`cat /root/log-install.txt | grep -w "OpenSSH" | cut -f2 -d: | awk '{print $1}'`
24 | db=`cat /root/log-install.txt | grep -w "Dropbear" | cut -f2 -d: | awk '{print $1,$2}'`
25 | ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
26 | #sqd="$(cat ~/log-install.txt | grep -w "Squid Proxy" | cut -d: -f2)"
27 | export sqd="$(cat ~/log-install.txt | grep -w "Squid" | cut -d: -f2)"
28 | export ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
29 | OhpSSH=`cat /root/log-install.txt | grep -w "OHP SSH" | cut -d: -f2 | awk '{print $1}'`
30 | OhpDB=`cat /root/log-install.txt | grep -w "OHP DBear" | cut -d: -f2 | awk '{print $1}'`
31 | OhpOVPN=`cat /root/log-install.txt | grep -w "OHP OpenVPN" | cut -d: -f2 | awk '{print $1}'`
32 |
33 | sleep 1
34 | clear
35 | useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
36 | exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
37 | echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
38 | PID=`ps -ef |grep -v grep | grep sshws |awk '{print $2}'`
39 |
40 | if [[ ! -z "${PID}" ]]; then
41 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
42 | echo -e "\E[0;41;36m SSH Account \E[0m" | tee -a /etc/log-create-ssh.log
43 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
44 | echo -e "Username : $Login" | tee -a /etc/log-create-ssh.log
45 | echo -e "Password : $Pass" | tee -a /etc/log-create-ssh.log
46 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log
47 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
48 | echo -e "IP : $IP" | tee -a /etc/log-create-ssh.log
49 | echo -e "Host : $domen" | tee -a /etc/log-create-ssh.log
50 | echo -e "OpenSSH : $opensh" | tee -a /etc/log-create-ssh.log
51 | echo -e "SSH WS : $portsshws" | tee -a /etc/log-create-ssh.log
52 | echo -e "SSH SSL WS : $wsssl" | tee -a /etc/log-create-ssh.log
53 | echo -e "SSL/TLS :$ssl" | tee -a /etc/log-create-ssh.log
54 | echo -e "UDPGW : 7100-7900" | tee -a /etc/log-create-ssh.log
55 | echo -e "Port Squid :$sqd"
56 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
57 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m" | tee -a /etc/log-create-ssh.log
58 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
59 | echo -e "OpenVPN TCP : $ovpn http://$MYIP:81/client-tcp-$ovpn.ovpn"
60 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
61 | echo -e "Payload WSS" | tee -a /etc/log-create-ssh.log
62 | echo -e "
63 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]
64 | " | tee -a /etc/log-create-ssh.log
65 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
66 | echo -e "Payload WS" | tee -a /etc/log-create-ssh.log
67 | echo -e "
68 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]
69 | " | tee -a /etc/log-create-ssh.log
70 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
71 | else
72 |
73 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
74 | echo -e "\E[0;41;36m SSH Account \E[0m" | tee -a /etc/log-create-ssh.log
75 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
76 | echo -e "Username : $Login" | tee -a /etc/log-create-ssh.log
77 | echo -e "Password : $Pass" | tee -a /etc/log-create-ssh.log
78 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log
79 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
80 | echo -e "IP : $IP" | tee -a /etc/log-create-ssh.log
81 | echo -e "Host : $domen" | tee -a /etc/log-create-ssh.log
82 | echo -e "OpenSSH : $opensh" | tee -a /etc/log-create-ssh.log
83 | echo -e "SSH WS : $portsshws" | tee -a /etc/log-create-ssh.log
84 | echo -e "SSH SSL WS : $wsssl" | tee -a /etc/log-create-ssh.log
85 | echo -e "SSL/TLS :$ssl" | tee -a /etc/log-create-ssh.log
86 | echo -e "UDPGW : 7100-7900" | tee -a /etc/log-create-ssh.log
87 | echo -e "Port Squid :$sqd"
88 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
89 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m" | tee -a /etc/log-create-ssh.log
90 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
91 | echo -e "OpenVPN TCP : $ovpn http://$MYIP:81/client-tcp-$ovpn.ovpn"
92 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
93 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log
94 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
95 | echo -e "Payload WSS" | tee -a /etc/log-create-ssh.log
96 | echo -e "
97 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]
98 | " | tee -a /etc/log-create-ssh.log
99 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
100 | echo -e "Payload WS" | tee -a /etc/log-create-ssh.log
101 | echo -e "
102 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]
103 | " | tee -a /etc/log-create-ssh.log
104 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log
105 | fi
106 | echo "" | tee -a /etc/log-create-ssh.log
107 | read -n 1 -s -r -p "Press any key to back on menu"
108 | m-sshovpn
109 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/ssl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/udp-custom/openvpn/ssl.png
--------------------------------------------------------------------------------
/udp-custom/openvpn/vpn.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # =========================================
3 | # Quick Setup | Script Setup Manager
4 | # Edition : Stable Edition 1.0
5 | # Auther : givpn
6 | # (C) Copyright 2023
7 | # =========================================
8 | # initialisasi var
9 | export DEBIAN_FRONTEND=noninteractive
10 | OS=`uname -m`;
11 | MYIP=$(wget -qO- ifconfig.co);
12 | MYIP2="s/xxxxxxxxx/$MYIP/g";
13 | ANU=$(ip -o $ANU -4 route show to default | awk '{print $5}');
14 | domain=$(cat /root/domain)
15 |
16 | # Install OpenVPN dan Easy-RSA
17 | apt install openvpn easy-rsa unzip -y
18 | apt install openssl iptables iptables-persistent -y
19 | mkdir -p /etc/openvpn/server/easy-rsa/
20 | cd /etc/openvpn/
21 | wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/openvpn/vpn.zip
22 | unzip vpn.zip
23 | rm -f vpn.zip
24 | chown -R root:root /etc/openvpn/server/easy-rsa/
25 |
26 | cd
27 | mkdir -p /usr/lib/openvpn/
28 | cp /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so /usr/lib/openvpn/openvpn-plugin-auth-pam.so
29 |
30 | # nano /etc/default/openvpn
31 | sed -i 's/#AUTOSTART="all"/AUTOSTART="all"/g' /etc/default/openvpn
32 |
33 | # restart openvpn dan cek status openvpn
34 | systemctl enable --now openvpn-server@server-tcp-1194
35 | systemctl enable --now openvpn-server@server-udp-2200
36 | /etc/init.d/openvpn restart
37 | /etc/init.d/openvpn status
38 |
39 | # aktifkan ip4 forwarding
40 | echo 1 > /proc/sys/net/ipv4/ip_forward
41 | sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf
42 |
43 | # Buat config client TCP 1194
44 | cat > /etc/openvpn/client-tcp-1194.ovpn <<-END
45 | setenv FRIENDLY_NAME "OVPN TCP"
46 | client
47 | dev tun
48 | proto tcp
49 | setenv CLIENT_CERT 0
50 | remote $domain 1194
51 | http-proxy xxxxxxxxx 8000
52 | resolv-retry infinite
53 | route-method exe
54 | nobind
55 | remote-cert-tls server
56 | cipher AES-256-CBC
57 | auth SHA256
58 | persist-key
59 | persist-tun
60 | auth-user-pass
61 | comp-lzo
62 | verb 3
63 | END
64 |
65 | sed -i $MYIP2 /etc/openvpn/client-tcp-1194.ovpn;
66 |
67 | # Buat config client UDP 2200
68 | cat > /etc/openvpn/client-udp-2200.ovpn <<-END
69 | setenv FRIENDLY_NAME "OVPN UDP"
70 | client
71 | dev tun
72 | proto udp
73 | setenv CLIENT_CERT 0
74 | remote $domain 2200
75 | resolv-retry infinite
76 | route-method exe
77 | nobind
78 | remote-cert-tls server
79 | cipher AES-256-CBC
80 | auth SHA256
81 | persist-key
82 | persist-tun
83 | auth-user-pass
84 | comp-lzo
85 | verb 3
86 | END
87 |
88 | sed -i $MYIP2 /etc/openvpn/client-udp-2200.ovpn;
89 |
90 | # Buat config client SSL
91 | cat > /etc/openvpn/client-tcp-ssl.ovpn <<-END
92 | setenv FRIENDLY_NAME "OVPN SSL"
93 | client
94 | dev tun
95 | proto tcp
96 | setenv CLIENT_CERT 0
97 | remote $domain 442
98 | resolv-retry infinite
99 | route-method exe
100 | nobind
101 | remote-cert-tls server
102 | cipher AES-256-CBC
103 | auth SHA256
104 | persist-key
105 | persist-tun
106 | auth-user-pass
107 | comp-lzo
108 | verb 3
109 | END
110 |
111 | sed -i $MYIP2 /etc/openvpn/client-tcp-ssl.ovpn;
112 |
113 | cd
114 | # pada tulisan xxx ganti dengan alamat ip address VPS anda
115 | /etc/init.d/openvpn restart
116 |
117 | # masukkan certificatenya ke dalam config client TCP 1194
118 | echo '' >> /etc/openvpn/client-tcp-1194.ovpn
119 | cat /etc/openvpn/server/ca.crt >> /etc/openvpn/client-tcp-1194.ovpn
120 | echo '' >> /etc/openvpn/client-tcp-1194.ovpn
121 |
122 | # Copy config OpenVPN client ke home directory root agar mudah didownload ( TCP 1194 )
123 | cp /etc/openvpn/client-tcp-1194.ovpn /home/vps/public_html/client-tcp-1194.ovpn
124 |
125 | # masukkan certificatenya ke dalam config client UDP 2200
126 | echo '' >> /etc/openvpn/client-udp-2200.ovpn
127 | cat /etc/openvpn/server/ca.crt >> /etc/openvpn/client-udp-2200.ovpn
128 | echo '' >> /etc/openvpn/client-udp-2200.ovpn
129 |
130 | # Copy config OpenVPN client ke home directory root agar mudah didownload ( UDP 2200 )
131 | cp /etc/openvpn/client-udp-2200.ovpn /home/vps/public_html/client-udp-2200.ovpn
132 |
133 | # masukkan certificatenya ke dalam config client SSL
134 | echo '' >> /etc/openvpn/client-tcp-ssl.ovpn
135 | cat /etc/openvpn/server/ca.crt >> /etc/openvpn/client-tcp-ssl.ovpn
136 | echo '' >> /etc/openvpn/client-tcp-ssl.ovpn
137 |
138 | # Copy config OpenVPN client ke home directory root agar mudah didownload ( SSL )
139 | cp /etc/openvpn/client-tcp-ssl.ovpn /home/vps/public_html/client-tcp-ssl.ovpn
140 |
141 | #firewall untuk memperbolehkan akses UDP dan akses jalur TCP
142 |
143 | iptables -t nat -I POSTROUTING -s 10.6.0.0/24 -o $ANU -j MASQUERADE
144 | iptables -t nat -I POSTROUTING -s 10.7.0.0/24 -o $ANU -j MASQUERADE
145 | iptables-save > /etc/iptables.up.rules
146 | chmod +x /etc/iptables.up.rules
147 |
148 | iptables-restore -t < /etc/iptables.up.rules
149 | netfilter-persistent save
150 | netfilter-persistent reload
151 |
152 | # Restart service openvpn
153 | systemctl enable openvpn
154 | systemctl start openvpn
155 | /etc/init.d/openvpn restart
156 |
157 | # Delete script
158 | history -c
159 | rm -f /root/vpn.sh
160 |
161 |
--------------------------------------------------------------------------------
/udp-custom/openvpn/vpn.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/udp-custom/openvpn/vpn.zip
--------------------------------------------------------------------------------
/udp-custom/slowdns/nspointing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/udp-custom/slowdns/nspointing.png
--------------------------------------------------------------------------------
/udp-custom/slowdns/slowdns.sh:
--------------------------------------------------------------------------------
1 | # =========================================
2 | # Quick Setup | Script Setup Manager
3 | # Edition : Stable Edition 1.0
4 | # Auther : givpn
5 | # Kuota Habisss
6 | # (C) Copyright 2023
7 | # =========================================
8 | # pewarna hidup
9 | BGreen='\e[1;32m'
10 | NC='\e[0m'
11 | #setting IPtables
12 | iptables -I INPUT -p udp --dport 5300 -j ACCEPT
13 | iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5300
14 | netfilter-persistent save
15 | netfilter-persistent reload
16 |
17 | cd
18 | #delete directory
19 | rm -rf /root/nsdomain
20 | rm nsdomain
21 |
22 | #input nameserver manual to cloudflare
23 | #read -rp "Masukkan domain: " -e domain
24 |
25 | read -rp "Masukkan Subdomain Yang Dipakai Host Sekarang: " -e sub
26 | SUB_DOMAIN=${sub}
27 | NS_DOMAIN=ns-${SUB_DOMAIN}
28 | echo $NS_DOMAIN > /root/nsdomain
29 |
30 | nameserver=$(cat /root/nsdomain)
31 | domen=$(cat /etc/xray/domain)
32 | apt update -y
33 | apt install -y python3 python3-dnslib net-tools
34 | apt install ncurses-utils -y
35 | apt install dnsutils -y
36 | #apt install golang -y
37 | apt install git -y
38 | apt install curl -y
39 | apt install wget -y
40 | apt install ncurses-utils -y
41 | apt install screen -y
42 | apt install cron -y
43 | apt install iptables -y
44 | apt install -y git screen whois dropbear wget
45 | #apt install -y pwgen python php jq curl
46 | apt install -y sudo gnutls-bin
47 | #apt install -y mlocate dh-make libaudit-dev build-essential
48 | apt install -y dos2unix debconf-utils
49 | service cron reload
50 | service cron restart
51 |
52 | #tambahan port openssh
53 | cd
54 | echo "Port 2222" >> /etc/ssh/sshd_config
55 | echo "Port 2269" >> /etc/ssh/sshd_config
56 | sed -i 's/#AllowTcpForwarding yes/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
57 | service ssh restart
58 | service sshd restart
59 |
60 | #konfigurasi slowdns
61 | rm -rf /etc/slowdns
62 | mkdir -m 777 /etc/slowdns
63 | wget -q -O /etc/slowdns/server.key "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/server.key"
64 | wget -q -O /etc/slowdns/server.pub "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/server.pub"
65 | wget -q -O /etc/slowdns/sldns-server "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/sldns-server"
66 | wget -q -O /etc/slowdns/sldns-client "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/sldns-client"
67 | cd
68 | chmod +x /etc/slowdns/server.key
69 | chmod +x /etc/slowdns/server.pub
70 | chmod +x /etc/slowdns/sldns-server
71 | chmod +x /etc/slowdns/sldns-client
72 |
73 | cd
74 | #wget -q -O /etc/systemd/system/client-sldns.service "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/client-sldns.service"
75 | #wget -q -O /etc/systemd/system/server-sldns.service "https://raw.githubusercontent.com/fisabiliyusri/SLDNS/main/slowdns/server-sldns.service"
76 |
77 | cd
78 | #install client-sldns.service
79 | cat > /etc/systemd/system/client-sldns.service << END
80 | [Unit]
81 | Description=Client SlowDNS By SL
82 | Documentation=https://nekopoi.care
83 | After=network.target nss-lookup.target
84 |
85 | [Service]
86 | Type=simple
87 | User=root
88 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
89 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
90 | NoNewPrivileges=true
91 | ExecStart=/etc/slowdns/sldns-client -udp 8.8.8.8:53 --pubkey-file /etc/slowdns/server.pub $nameserver 127.0.0.1:2222
92 | Restart=on-failure
93 |
94 | [Install]
95 | WantedBy=multi-user.target
96 | END
97 |
98 | cd
99 | #install server-sldns.service
100 | cat > /etc/systemd/system/server-sldns.service << END
101 | [Unit]
102 | Description=Server SlowDNS By SL
103 | Documentation=https://nekopoi.care
104 | After=network.target nss-lookup.target
105 |
106 | [Service]
107 | Type=simple
108 | User=root
109 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
110 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
111 | NoNewPrivileges=true
112 | ExecStart=/etc/slowdns/sldns-server -udp :5300 -privkey-file /etc/slowdns/server.key $nameserver 127.0.0.1:2269
113 | Restart=on-failure
114 |
115 | [Install]
116 | WantedBy=multi-user.target
117 | END
118 |
119 | #permission service slowdns
120 | cd
121 | chmod +x /etc/systemd/system/client-sldns.service
122 |
123 | chmod +x /etc/systemd/system/server-sldns.service
124 | pkill sldns-server
125 | pkill sldns-client
126 |
127 | systemctl daemon-reload
128 | systemctl stop client-sldns
129 | systemctl stop server-sldns
130 |
131 | systemctl enable client-sldns
132 | systemctl enable server-sldns
133 |
134 | systemctl start client-sldns
135 | systemctl start server-sldns
136 |
137 | systemctl restart client-sldns
138 | systemctl restart server-sldns
139 |
140 | echo -e "\e[1;32m Success.. \e[0m"
141 | echo "Silahkan Pointing Type NS $nameserver Dengan Target $domen"
142 | sleep 10
143 |
144 |
--------------------------------------------------------------------------------
/udp-custom/ssh/trial.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | sldomain=$(cat /root/nsdomain)
5 | slkey=$(cat /etc/slowdns/server.pub)
6 | clear
7 | cekray=`cat /root/log-install.txt | grep -ow "XRAY" | sort | uniq`
8 | if [ "$cekray" = "XRAY" ]; then
9 | domen=`cat /etc/xray/domain`
10 | else
11 | domen=`cat /etc/v2ray/domain`
12 | fi
13 | portsshws=`cat ~/log-install.txt | grep -w "SSH Websocket" | cut -d: -f2 | awk '{print $1}'`
14 | wsssl=`cat /root/log-install.txt | grep -w "SSH SSL Websocket" | cut -d: -f2 | awk '{print $1}'`
15 |
16 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
17 | echo -e "\E[0;41;36m SSH Account \E[0m"
18 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
19 | read -p "Username : " Login
20 | read -p "Password : " Pass
21 | read -p "Expired (hari): " masaaktif
22 |
23 | IP=$(curl -sS ifconfig.me);
24 | ossl=`cat /root/log-install.txt | grep -w "OpenVPN" | cut -f2 -d: | awk '{print $6}'`
25 | opensh=`cat /root/log-install.txt | grep -w "OpenSSH" | cut -f2 -d: | awk '{print $1}'`
26 | db=`cat /root/log-install.txt | grep -w "Dropbear" | cut -f2 -d: | awk '{print $1,$2}'`
27 | ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
28 | sqd="$(cat ~/log-install.txt | grep -w "Squid Proxy" | cut -d: -f2)"
29 | #ovpntcp="$(cat ~/log-install.txt | grep -w "OpenVPN TCP" | cut -d: -f2)"
30 | #ovpnudp="$(cat ~/log-install.txt | grep -w "OpenVPN UDP" | cut -d: -f2)"
31 | tcp="1194"
32 | udp="2200"
33 | OhpSSH=`cat /root/log-install.txt | grep -w "OHP SSH" | cut -d: -f2 | awk '{print $1}'`
34 | OhpDB=`cat /root/log-install.txt | grep -w "OHP DBear" | cut -d: -f2 | awk '{print $1}'`
35 | OhpOVPN=`cat /root/log-install.txt | grep -w "OHP OpenVPN" | cut -d: -f2 | awk '{print $1}'`
36 | pkill sldns-server
37 | pkill sldns-client
38 | systemctl daemon-reload
39 | systemctl stop client-sldns
40 | systemctl stop server-sldns
41 | systemctl enable client-sldns
42 | systemctl enable server-sldns
43 | systemctl start client-sldns
44 | systemctl start server-sldns
45 | systemctl restart client-sldns
46 | systemctl restart server-sldns
47 | sleep 1
48 | clear
49 | useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
50 | exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
51 | echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
52 | PID=`ps -ef |grep -v grep | grep sshws |awk '{print $2}'`
53 |
54 | if [[ ! -z "${PID}" ]]; then
55 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
56 | echo -e "\E[0;41;36m SSH Account \E[0m"
57 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
58 | echo -e "Username : $Login"
59 | echo -e "Password : $Pass"
60 | echo -e "Expired On : $exp"
61 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
62 | echo -e "IP : $IP"
63 | echo -e "Host : $domen"
64 | echo -e "OpenSSH : $opensh"
65 | echo -e "SSH WS : $portsshws"
66 | echo -e "SSH SSL WS : $wsssl"
67 | echo -e "SSL/TLS :$ssl"
68 | echo -e "UDPGW : 7100-7900"
69 | echo -e "UDP Custom : 1-65350"
70 | echo -e "Port NS : ALL Port (22, 443, 143)"
71 | echo -e "Nameserver : $sldomain"
72 | echo -e "Pubkey : $slkey"
73 | echo -e "Squid Proxy :$sqd"
74 | echo -e "OpenVPN TCP : $tcp"
75 | echo -e "OpenVPN UDP : $udp"
76 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
77 | echo -e "\E[0;41;36m INFO UDP Custom \E[0m"
78 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
79 | echo -e "$domen:1-65350@$Login:$Pass"
80 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
81 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m"
82 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
83 | echo -e "OpenVPN TCP : http://$MYIP:81/client-tcp-$tcp.ovpn"
84 | echo -e ""
85 | echo -e "OpenVPN UDP : http://$MYIP:81/client-tcp-$udp.ovpn"
86 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
87 | echo -e "Payload WSS"
88 | echo -e "
89 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]
90 | "
91 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
92 | echo -e "Payload WS"
93 | echo -e "
94 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]
95 | "
96 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
97 | else
98 |
99 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
100 | echo -e "\E[0;41;36m SSH Account \E[0m"
101 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
102 | echo -e "Username : $Login"
103 | echo -e "Password : $Pass"
104 | echo -e "Expired On : $exp"
105 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
106 | echo -e "IP : $IP"
107 | echo -e "Host : $domen"
108 | echo -e "OpenSSH : $opensh"
109 | echo -e "SSH WS : $portsshws"
110 | echo -e "SSH SSL WS : $wsssl"
111 | echo -e "SSL/TLS :$ssl"
112 | echo -e "UDPGW : 7100-7900"
113 | echo -e "UDP Custom : 1-65350"
114 | echo -e "Port NS : ALL Port (22, 443, 143)"
115 | echo -e "Nameserver : $sldomain"
116 | echo -e "Pubkey : $slkey"
117 | echo -e "Squid Proxy :$sqd"
118 | echo -e "OpenVPN TCP : $tcp"
119 | echo -e "OpenVPN UDP : $udp"
120 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
121 | echo -e "\E[0;41;36m INFO UDP Custom \E[0m"
122 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
123 | echo -e "$domen:1-65350@$Login:$Pass"
124 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
125 | echo -e "\E[0;41;36m CONFIG OPENVPN \E[0m"
126 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
127 | echo -e "OpenVPN TCP : http://$MYIP:81/client-tcp-$tcp.ovpn"
128 | echo -e ""
129 | echo -e "OpenVPN UDP : http://$MYIP:81/client-tcp-$udp.ovpn"
130 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
131 | echo -e "Payload WSS"
132 | echo -e "
133 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]
134 | "
135 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
136 | echo -e "Payload WS"
137 | echo -e "
138 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]
139 | "
140 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
141 | fi
142 | echo ""
143 | read -n 1 -s -r -p "Press any key to back on menu"
144 | m-sshovpn
145 |
146 |
--------------------------------------------------------------------------------
/udp-custom/udp-custom-linux-amd64:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/udp-custom/udp-custom-linux-amd64
--------------------------------------------------------------------------------
/udp-custom/udp.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Script UdpCustom 2023
3 | # Script By MARDHEX
4 | # https://t.me/mdxdev
5 | # =========================================
6 | # Quick Setup | Script Setup Manager
7 | # Edition : Stable Edition 1.0
8 | # Auther : givpn
9 | # Kuota Habisss
10 | # (C) Copyright 2023
11 | # =========================================
12 | # pewarna hidup
13 | BGreen='\e[1;32m'
14 | NC='\e[0m'
15 | cd
16 | rm -rf slowdns.sh
17 | rm -rf udp.sh
18 | rm -rf vpn.sh
19 | rm -rf openvpn.sh
20 | rm -rf log-install.txt
21 | rm -rf /usr/bin/usernew
22 | rm -rf /usr/bin/trial
23 | rm -rf /root/domain
24 | echo "\e[1;32m Update Menu.. \e[0m"
25 | sleep 1
26 | wget -q -O /usr/bin/usernew https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/ssh/usernew.sh
27 | wget -q -O /usr/bin/trial https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/ssh/trial.sh
28 | echo "\e[1;32m Proses Download Script Slowdns.. \e[0m"
29 | wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/slowdns/slowdns.sh && chmod +x slowdns.sh && ./slowdns.sh
30 | sleep 1
31 | echo "\e[1;32m Proses Download Script OpenVPN.. \e[0m"
32 | wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/openvpn/openvpn.sh && chmod +x openvpn.sh && ./openvpn.sh
33 | sleep 1
34 | chmod +x /usr/bin/usernew
35 | chmod +x /usr/bin/trial
36 | rm -rf /root/udp
37 | mkdir -p /root/udp
38 | # install udp-custom
39 | echo ""
40 | sleep 1
41 | echo "\e[1;32m Proses Download Script UdpCustom.. \e[0m"
42 | sleep 1
43 | clear
44 | echo "\e[1;32m Cecking Tool UdpCustom By Mardhex.. \e[0m"
45 | sleep 1
46 | clear
47 | echo "\e[1;32m Succes Cecking Tool.. \e[0m"
48 | sleep 1
49 | clear
50 | echo "\e[1;32m Please Waiting Proses Downloading Toll UdpCustom.. \e[0m"
51 | sleep 1
52 | clear
53 | wget -q --show-progress --load-cookies /tmp/cookies.txt "https://github.com/givpn/AutoScriptXray/raw/master/udp-custom/udp-custom-linux-amd64" -O /root/udp/udp-custom && rm -rf /tmp/cookies.txt
54 | chmod +x /root/udp/udp-custom
55 | clear
56 | # install Config Default Udp
57 | echo ""
58 | sleep 1
59 | echo "\e[1;32m Proses Download Script Config Default.. \e[0m"
60 | sleep 1
61 | clear
62 | echo "\e[1;32m Cecking Config Default By Mardhex.. \e[0m"
63 | sleep 1
64 | clear
65 | echo "\e[1;32m Succes Cecking Config Default Tool.. \e[0m"
66 | sleep 1
67 | clear
68 | echo "\e[1;32m Please Waiting Proses Downloading Default Config UdpCustom.. \e[0m"
69 | sleep 1
70 | clear
71 | wget -q --show-progress --load-cookies /tmp/cookies.txt "https://github.com/givpn/AutoScriptXray/raw/master/udp-custom/config.json" -O /root/udp/config.json && rm -rf /tmp/cookies.txt
72 | chmod 644 /root/udp/config.json
73 |
74 | if [ -z "$1" ]; then
75 | cat < /etc/systemd/system/udp-custom.service
76 | [Unit]
77 | Description=UDP Custom by MARDHEX
78 |
79 | [Service]
80 | User=root
81 | Type=simple
82 | ExecStart=/root/udp/udp-custom server
83 | WorkingDirectory=/root/udp/
84 | Restart=always
85 | RestartSec=2s
86 |
87 | [Install]
88 | WantedBy=default.target
89 | EOF
90 | else
91 | cat < /etc/systemd/system/udp-custom.service
92 | [Unit]
93 | Description=UDP Custom by MARDHEX
94 |
95 | [Service]
96 | User=root
97 | Type=simple
98 | ExecStart=/root/udp/udp-custom server -exclude $1
99 | WorkingDirectory=/root/udp/
100 | Restart=always
101 | RestartSec=2s
102 |
103 | [Install]
104 | WantedBy=default.target
105 | EOF
106 | fi
107 |
108 | echo start service udp-custom
109 | systemctl start udp-custom &>/dev/null
110 |
111 | echo enable service udp-custom
112 | systemctl enable udp-custom &>/dev/null
113 |
114 | echo ""
115 | sleep 0,5
116 | clear
117 | cd
118 | rm -rf udp.sh
119 | rm -rf slowdns.sh
120 | echo -e "\e[1;32m auto reboot in 5s \e[0m"
121 | sleep 5
122 | reboot
123 |
124 |
--------------------------------------------------------------------------------
/update/yes.py:
--------------------------------------------------------------------------------
1 | cari apa ?
2 |
--------------------------------------------------------------------------------
/websocket/websocket.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # =========================================
3 | # Quick Setup | Script Setup Manager
4 | # Edition : Stable Edition 1.0
5 | # Auther : givpn
6 | # (C) Copyright 2023
7 | # =========================================
8 | clear
9 | echo Installing Websocket-SSH Python
10 | sleep 1
11 | echo Please wait...
12 | sleep 2
13 | cd
14 |
15 | # // GIT USER
16 | GitUser="givpn"
17 |
18 | # // SYSTEM WEBSOCKET HTTPS 443
19 | cat < /etc/systemd/system/ws-https.service
20 | [Unit]
21 | Description=Python Proxy
22 | Documentation=https://github.com/givpn/
23 | After=network.target nss-lookup.target
24 |
25 | [Service]
26 | Type=simple
27 | User=root
28 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
29 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
30 | NoNewPrivileges=true
31 | Restart=on-failure
32 | ExecStart=/usr/bin/python -O /usr/local/bin/ws-https
33 |
34 | [Install]
35 | WantedBy=multi-user.target
36 | EOF
37 |
38 | # // SYSTEM WEBSOCKET HTTP 80
39 | cat < /etc/systemd/system/ws-http.service
40 | [Unit]
41 | Description=Python Proxy
42 | Documentation=https://github.com/givpn/
43 | After=network.target nss-lookup.target
44 |
45 | [Service]
46 | Type=simple
47 | User=root
48 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
49 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
50 | NoNewPrivileges=true
51 | ExecStart=/usr/bin/python -O /usr/local/bin/ws-http
52 | Restart=on-failure
53 | [Install]
54 | WantedBy=multi-user.target
55 | EOF
56 |
57 | # // SYSTEM WEBSOCKET OVPN
58 | cat < /etc/systemd/system/ws-ovpn.service
59 | [Unit]
60 | Description=Python Proxy
61 | Documentation=https://github.com/givpn/
62 | After=network.target nss-lookup.target
63 |
64 | [Service]
65 | Type=simple
66 | User=root
67 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
68 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
69 | NoNewPrivileges=true
70 | ExecStart=/usr/bin/python -O /usr/local/bin/ws-ovpn 2097
71 | Restart=on-failure
72 |
73 | [Install]
74 | WantedBy=multi-user.target
75 | EOF
76 |
77 | # // PYTHON WEBSOCKET TLS && NONE
78 | wget -q -O /usr/local/bin/ws-https https://raw.githubusercontent.com/${GitUser}/AutoScriptXray/master/websocket/ws-https; chmod +x /usr/local/bin/ws-https
79 |
80 | # // PYTHON WEBSOCKET DROPBEAR
81 | wget -q -O /usr/local/bin/ws-http https://raw.githubusercontent.com/${GitUser}/AutoScriptXray/master/websocket/ws-http; chmod +x /usr/local/bin/ws-http
82 |
83 | # // PYTHON WEBSOCKET OVPN
84 | wget -q -O /usr/local/bin/ws-ovpn https://raw.githubusercontent.com/${GitUser}/AutoScriptXray/master/websocket/ws-ovpn; chmod +x /usr/local/bin/ws-ovpn
85 |
86 | # // RESTART && ENABLE SSHVPN WEBSOCKET TLS
87 | systemctl daemon-reload
88 | systemctl enable ws-https
89 | systemctl restart ws-https
90 | systemctl enable ws-http
91 | systemctl restart ws-http
92 | systemctl enable ws-ovpn
93 | systemctl restart ws-ovpn
94 |
--------------------------------------------------------------------------------
/xray/add-tr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | source /var/lib/ipvps.conf
6 | if [[ "$IP" = "" ]]; then
7 | domain=$(cat /etc/xray/domain)
8 | else
9 | domain=$IP
10 | fi
11 | tls="$(cat ~/log-install.txt | grep -w "Trojan WS TLS" | cut -d: -f2|sed 's/ //g')"
12 | ntls="$(cat ~/log-install.txt | grep -w "Trojan WS none TLS" | cut -d: -f2|sed 's/ //g')"
13 | until [[ $user =~ ^[a-zA-Z0-9_]+$ && ${user_EXISTS} == '0' ]]; do
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo -e "\E[0;41;36m TROJAN ACCOUNT \E[0m"
16 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
17 |
18 | read -rp "User: " -e user
19 | user_EXISTS=$(grep -w $user /etc/xray/config.json | wc -l)
20 |
21 | if [[ ${user_EXISTS} == '1' ]]; then
22 | clear
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo -e "\E[0;41;36m TROJAN ACCOUNT \E[0m"
25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
26 | echo ""
27 | echo "A client with the specified name was already created, please choose another name."
28 | echo ""
29 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
30 | read -n 1 -s -r -p "Press any key to back on menu"
31 | m-trojan
32 | fi
33 | done
34 |
35 | uuid=$(cat /proc/sys/kernel/random/uuid)
36 | read -p "Expired (days): " masaaktif
37 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"`
38 | sed -i '/#trojanws$/a\#! '"$user $exp"'\
39 | },{"password": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json
40 | sed -i '/#trojangrpc$/a\#! '"$user $exp"'\
41 | },{"password": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json
42 |
43 | trojanlink1="trojan://${uuid}@${domain}:${tls}?mode=gun&security=tls&type=grpc&serviceName=trojan-grpc&sni=bug.com#${user}"
44 | trojanlink="trojan://${uuid}@isi_bug_disini:${tls}?path=%2Ftrojan-ws&security=tls&host=${domain}&type=ws&sni=${domain}#${user}"
45 | trojanlink2="trojan://${uuid}@isi_bug_disini:${ntls}?path=%2Ftrojan-ws&security=none&host=${domain}&type=ws#${user}"
46 | systemctl restart xray
47 | clear
48 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
49 | echo -e "\E[0;41;36m TROJAN ACCOUNT \E[0m" | tee -a /etc/log-create-trojan.log
50 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
51 | echo -e "Remarks : ${user}" | tee -a /etc/log-create-trojan.log
52 | echo -e "Host/IP : ${domain}" | tee -a /etc/log-create-trojan.log
53 | echo -e "Wildcard : (bug.com).${domain}" | tee -a /etc/log-create-trojan.log
54 | echo -e "Port TLS : ${tls}" | tee -a /etc/log-create-trojan.log
55 | echo -e "Port none TLS : ${ntls}" | tee -a /etc/log-create-trojan.log
56 | echo -e "Port gRPC : ${tls}" | tee -a /etc/log-create-trojan.log
57 | echo -e "Key : ${uuid}" | tee -a /etc/log-create-trojan.log
58 | echo -e "Path : /trojan-ws" | tee -a /etc/log-create-trojan.log
59 | echo -e "ServiceName : trojan-grpc" | tee -a /etc/log-create-trojan.log
60 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
61 | echo -e "Link TLS : ${trojanlink}" | tee -a /etc/log-create-trojan.log
62 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
63 | echo -e "Link none TLS : ${trojanlink2}" | tee -a /etc/log-create-trojan.log
64 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
65 | echo -e "Link gRPC : ${trojanlink1}" | tee -a /etc/log-create-trojan.log
66 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
67 | echo -e "Expired On : $exp" | tee -a /etc/log-create-trojan.log
68 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-trojan.log
69 | echo "" | tee -a /etc/log-create-trojan.log
70 | read -n 1 -s -r -p "Press any key to back on menu"
71 | m-trojan
72 | fi
73 |
--------------------------------------------------------------------------------
/xray/add-vless.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | source /var/lib/ipvps.conf
6 | if [[ "$IP" = "" ]]; then
7 | domain=$(cat /etc/xray/domain)
8 | else
9 | domain=$IP
10 | fi
11 | tls="$(cat ~/log-install.txt | grep -w "Vless WS TLS" | cut -d: -f2|sed 's/ //g')"
12 | none="$(cat ~/log-install.txt | grep -w "Vless WS none TLS" | cut -d: -f2|sed 's/ //g')"
13 | until [[ $user =~ ^[a-zA-Z0-9_]+$ && ${CLIENT_EXISTS} == '0' ]]; do
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo -e "\E[44;1;39m Add Vless Account \E[0m"
16 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
17 |
18 | read -rp "User: " -e user
19 | CLIENT_EXISTS=$(grep -w $user /etc/xray/config.json | wc -l)
20 |
21 | if [[ ${CLIENT_EXISTS} == '1' ]]; then
22 | clear
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo -e "\E[44;1;39m Add Vless Account \E[0m"
25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
26 | echo ""
27 | echo "A client with the specified name was already created, please choose another name."
28 | echo ""
29 | read -n 1 -s -r -p "Press any key to back on menu"
30 | m-vless
31 | fi
32 | done
33 |
34 | uuid=$(cat /proc/sys/kernel/random/uuid)
35 | read -p "Expired (days): " masaaktif
36 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"`
37 | sed -i '/#vless$/a\#& '"$user $exp"'\
38 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json
39 | sed -i '/#vlessgrpc$/a\#& '"$user $exp"'\
40 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json
41 | vlesslink1="vless://${uuid}@${domain}:$tls?path=/vless&security=tls&encryption=none&type=ws#${user}"
42 | vlesslink2="vless://${uuid}@${domain}:$none?path=/vless&encryption=none&type=ws#${user}"
43 | vlesslink3="vless://${uuid}@${domain}:$tls?mode=gun&security=tls&encryption=none&type=grpc&serviceName=vless-grpc&sni=bug.com#${user}"
44 | systemctl restart xray
45 | clear
46 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
47 | echo -e "\E[44;1;39m Vless Account \E[0m" | tee -a /etc/log-create-vless.log
48 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
49 | echo -e "Remarks : ${user}" | tee -a /etc/log-create-vless.log
50 | echo -e "Domain : ${domain}" | tee -a /etc/log-create-vless.log
51 | echo -e "Wildcard : (bug.com).${domain}" | tee -a /etc/log-create-vless.log
52 | echo -e "Port TLS : $tls" | tee -a /etc/log-create-vless.log
53 | echo -e "Port none TLS : $none" | tee -a /etc/log-create-vless.log
54 | echo -e "id : ${uuid}" | tee -a /etc/log-create-vless.log
55 | echo -e "Encryption : none" | tee -a /etc/log-create-vless.log
56 | echo -e "Network : ws" | tee -a /etc/log-create-vless.log
57 | echo -e "Path : /vless" | tee -a /etc/log-create-vless.log
58 | echo -e "Path : vless-grpc" | tee -a /etc/log-create-vless.log
59 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
60 | echo -e "Link TLS : ${vlesslink1}" | tee -a /etc/log-create-vless.log
61 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
62 | echo -e "Link none TLS : ${vlesslink2}" | tee -a /etc/log-create-vless.log
63 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
64 | echo -e "Link gRPC : ${vlesslink3}" | tee -a /etc/log-create-vless.log
65 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
66 | echo -e "Expired On : $exp" | tee -a /etc/log-create-vless.log
67 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vless.log
68 | echo "" | tee -a /etc/log-create-vless.log
69 | read -n 1 -s -r -p "Press any key to back on menu"
70 |
71 | m-vless
72 |
--------------------------------------------------------------------------------
/xray/add-ws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | source /var/lib/ipvps.conf
6 | if [[ "$IP" = "" ]]; then
7 | domain=$(cat /etc/xray/domain)
8 | else
9 | domain=$IP
10 | fi
11 |
12 | tls="$(cat ~/log-install.txt | grep -w "Vmess WS TLS" | cut -d: -f2|sed 's/ //g')"
13 | none="$(cat ~/log-install.txt | grep -w "Vmess WS none TLS" | cut -d: -f2|sed 's/ //g')"
14 | until [[ $user =~ ^[a-zA-Z0-9_]+$ && ${CLIENT_EXISTS} == '0' ]]; do
15 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
16 | echo -e "\\E[0;41;36m Add Vmess Account \E[0m"
17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
18 |
19 | read -rp "User: " -e user
20 | CLIENT_EXISTS=$(grep -w $user /etc/xray/config.json | wc -l)
21 |
22 | if [[ ${CLIENT_EXISTS} == '1' ]]; then
23 | clear
24 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
25 | echo -e "\\E[0;41;36m Add Vmess Account \E[0m"
26 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
27 | echo ""
28 | echo "A client with the specified name was already created, please choose another name."
29 | echo ""
30 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
31 | read -n 1 -s -r -p "Press any key to back on menu"
32 | m-vmess
33 | fi
34 | done
35 |
36 | uuid=$(cat /proc/sys/kernel/random/uuid)
37 | read -p "Expired (days): " masaaktif
38 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"`
39 | sed -i '/#vmess$/a\### '"$user $exp"'\
40 | },{"id": "'""$uuid""'","alterId": '"0"',"email": "'""$user""'"' /etc/xray/config.json
41 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"`
42 | sed -i '/#vmessgrpc$/a\### '"$user $exp"'\
43 | },{"id": "'""$uuid""'","alterId": '"0"',"email": "'""$user""'"' /etc/xray/config.json
44 | asu=`cat< /dev/null 2>&1
96 | service cron restart > /dev/null 2>&1
97 | clear
98 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
99 | echo -e "\\E[0;41;36m Vmess Account \E[0m" | tee -a /etc/log-create-vmess.log
100 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
101 | echo -e "Remarks : ${user}" | tee -a /etc/log-create-vmess.log
102 | echo -e "Domain : ${domain}" | tee -a /etc/log-create-vmess.log
103 | echo -e "Wildcard : (bug.com).${domain}" | tee -a /etc/log-create-vmess.log
104 | echo -e "Port TLS : ${tls}" | tee -a /etc/log-create-vmess.log
105 | echo -e "Port none TLS : ${none}" | tee -a /etc/log-create-vmess.log
106 | echo -e "Port gRPC : ${tls}" | tee -a /etc/log-create-vmess.log
107 | echo -e "id : ${uuid}" | tee -a /etc/log-create-vmess.log
108 | echo -e "alterId : 0" | tee -a /etc/log-create-vmess.log
109 | echo -e "Security : auto" | tee -a /etc/log-create-vmess.log
110 | echo -e "Network : ws" | tee -a /etc/log-create-vmess.log
111 | echo -e "Path : /vmess" | tee -a /etc/log-create-vmess.log
112 | echo -e "ServiceName : vmess-grpc" | tee -a /etc/log-create-vmess.log
113 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
114 | echo -e "Link TLS : ${vmesslink1}" | tee -a /etc/log-create-vmess.log
115 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
116 | echo -e "Link none TLS : ${vmesslink2}" | tee -a /etc/log-create-vmess.log
117 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
118 | echo -e "Link gRPC : ${vmesslink3}" | tee -a /etc/log-create-vmess.log
119 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
120 | echo -e "Expired On : $exp" | tee -a /etc/log-create-vmess.log
121 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-vmess.log
122 | echo "" | tee -a /etc/log-create-vmess.log
123 | read -n 1 -s -r -p "Press any key to back on menu"
124 |
125 | m-vmess
126 |
--------------------------------------------------------------------------------
/xray/cek-tr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # ==========================================
3 | # Color
4 | RED='\033[0;31m'
5 | NC='\033[0m'
6 | GREEN='\033[0;32m'
7 | ORANGE='\033[0;33m'
8 | BLUE='\033[0;34m'
9 | PURPLE='\033[0;35m'
10 | CYAN='\033[0;36m'
11 | LIGHT='\033[0;37m'
12 | # ==========================================
13 | # Getting
14 | MYIP=$(wget -qO- ipv4.icanhazip.com);
15 | echo "Checking VPS"
16 | IZIN=$( curl ipv4.icanhazip.com | grep $MYIP )
17 | if [ $MYIP = $MYIP ]; then
18 | echo -e "${NC}${GREEN}Permission Accepted...${NC}"
19 | else
20 | echo -e "${NC}${RED}Permission Denied!${NC}";
21 | exit 0
22 | fi
23 | clear
24 | echo -n > /tmp/other.txt
25 | data=( `cat /etc/xray/config.json | grep '^#' | cut -d ' ' -f 2`);
26 | echo "-----------------------------------------";
27 | echo "---------=[ Trojan User Login ]=---------";
28 | echo "-----------------------------------------";
29 | for akun in "${data[@]}"
30 | do
31 | if [[ -z "$akun" ]]; then
32 | akun="tidakada"
33 | fi
34 | echo -n > /tmp/iptrojan.txt
35 | data2=( `netstat -anp | grep ESTABLISHED | grep tcp6 | grep xray | awk '{print $5}' | cut -d: -f1 | sort | uniq`);
36 | for ip in "${data2[@]}"
37 | do
38 | jum=$(cat /var/log/xray/access.log | grep -w $akun | awk '{print $3}' | cut -d: -f1 | grep -w $ip | sort | uniq)
39 | if [[ "$jum" = "$ip" ]]; then
40 | echo "$jum" >> /tmp/iptrojan.txt
41 | else
42 | echo "$ip" >> /tmp/other.txt
43 | fi
44 | jum2=$(cat /tmp/iptrojan.txt)
45 | sed -i "/$jum2/d" /tmp/other.txt > /dev/null 2>&1
46 | done
47 | jum=$(cat /tmp/iptrojan.txt)
48 | if [[ -z "$jum" ]]; then
49 | echo > /dev/null
50 | else
51 | jum2=$(cat /tmp/iptrojan.txt | nl)
52 | echo "user : $akun";
53 | echo "$jum2";
54 | echo "-----------------------------------------"
55 | fi
56 | rm -rf /tmp/iptrojan.txt
57 | done
58 | oth=$(cat /tmp/other.txt | sort | uniq | nl)
59 | echo "other";
60 | echo "$oth";
61 | echo "-----------------------------------------"
62 | echo ""
63 | rm -rf /tmp/other.txt
64 | read -n 1 -s -r -p "Press any key to back on menu"
65 | m-trojan
66 |
--------------------------------------------------------------------------------
/xray/cek-vless.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # ==========================================
3 | # Color
4 | RED='\033[0;31m'
5 | NC='\033[0m'
6 | GREEN='\033[0;32m'
7 | ORANGE='\033[0;33m'
8 | BLUE='\033[0;34m'
9 | PURPLE='\033[0;35m'
10 | CYAN='\033[0;36m'
11 | LIGHT='\033[0;37m'
12 | # ==========================================
13 | # Getting
14 | MYIP=$(wget -qO- ipv4.icanhazip.com);
15 | echo "Checking VPS"
16 | IZIN=$( curl ipv4.icanhazip.com | grep $MYIP )
17 | if [ $MYIP = $MYIP ]; then
18 | echo -e "${NC}${GREEN}Permission Accepted...${NC}"
19 | else
20 | echo -e "${NC}${RED}Permission Denied!${NC}";
21 | exit 0
22 | fi
23 | clear
24 | echo -n > /tmp/other.txt
25 | data=( `cat /etc/xray/config.json | grep '^####' | cut -d ' ' -f 2`);
26 | echo "----------------------------------------";
27 | echo "---------=[ Vless User Login ]=---------";
28 | echo "----------------------------------------";
29 | for akun in "${data[@]}"
30 | do
31 | if [[ -z "$akun" ]]; then
32 | akun="tidakada"
33 | fi
34 | echo -n > /tmp/ipvless.txt
35 | data2=( `netstat -anp | grep ESTABLISHED | grep tcp6 | grep xray | awk '{print $5}' | cut -d: -f1 | sort | uniq`);
36 | for ip in "${data2[@]}"
37 | do
38 | jum=$(cat /var/log/xray/access.log | grep -w $akun | awk '{print $3}' | cut -d: -f1 | grep -w $ip | sort | uniq)
39 | if [[ "$jum" = "$ip" ]]; then
40 | echo "$jum" >> /tmp/ipvless.txt
41 | else
42 | echo "$ip" >> /tmp/other.txt
43 | fi
44 | jum2=$(cat /tmp/ipvless.txt)
45 | sed -i "/$jum2/d" /tmp/other.txt > /dev/null 2>&1
46 | done
47 | jum=$(cat /tmp/ipvless.txt)
48 | if [[ -z "$jum" ]]; then
49 | echo > /dev/null
50 | else
51 | jum2=$(cat /tmp/ipvless.txt | nl)
52 | echo "user : $akun";
53 | echo "$jum2";
54 | echo "----------------------------------------"
55 | fi
56 | rm -rf /tmp/ipvless.txt
57 | done
58 | oth=$(cat /tmp/other.txt | sort | uniq | nl)
59 | echo "other";
60 | echo "$oth";
61 | echo "----------------------------------------"
62 | rm -rf /tmp/other.txt
63 | read -n 1 -s -r -p "Press any key to back on menu"
64 | m-vless
65 |
--------------------------------------------------------------------------------
/xray/cek-ws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # ==========================================
3 | # Color
4 | RED='\033[0;31m'
5 | NC='\033[0m'
6 | GREEN='\033[0;32m'
7 | ORANGE='\033[0;33m'
8 | BLUE='\033[0;34m'
9 | PURPLE='\033[0;35m'
10 | CYAN='\033[0;36m'
11 | LIGHT='\033[0;37m'
12 | # ==========================================
13 | # Getting
14 | MYIP=$(wget -qO- ipv4.icanhazip.com);
15 | echo "Checking VPS"
16 | IZIN=$( curl ipv4.icanhazip.com | grep $MYIP )
17 | if [ $MYIP = $MYIP ]; then
18 | echo -e "${NC}${GREEN}Permission Accepted...${NC}"
19 | else
20 | echo -e "${NC}${RED}Permission Denied!${NC}";
21 | exit 0
22 | fi
23 | clear
24 | echo -n > /tmp/other.txt
25 | data=( `cat /etc/xray/config.json | grep '^####' | cut -d ' ' -f 2`);
26 | echo "----------------------------------------";
27 | echo "---------=[ Vmess User Login ]=---------";
28 | echo "----------------------------------------";
29 | for akun in "${data[@]}"
30 | do
31 | if [[ -z "$akun" ]]; then
32 | akun="tidakada"
33 | fi
34 | echo -n > /tmp/ipvmess.txt
35 | data2=( `netstat -anp | grep ESTABLISHED | grep tcp6 | grep xray | awk '{print $5}' | cut -d: -f1 | sort | uniq`);
36 | for ip in "${data2[@]}"
37 | do
38 | jum=$(cat /var/log/xray/access.log | grep -w $akun | awk '{print $3}' | cut -d: -f1 | grep -w $ip | sort | uniq)
39 | if [[ "$jum" = "$ip" ]]; then
40 | echo "$jum" >> /tmp/ipvmess.txt
41 | else
42 | echo "$ip" >> /tmp/other.txt
43 | fi
44 | jum2=$(cat /tmp/ipvmess.txt)
45 | sed -i "/$jum2/d" /tmp/other.txt > /dev/null 2>&1
46 | done
47 | jum=$(cat /tmp/ipvmess.txt)
48 | if [[ -z "$jum" ]]; then
49 | echo > /dev/null
50 | else
51 | jum2=$(cat /tmp/ipvmess.txt | nl)
52 | echo "user : $akun";
53 | echo "$jum2";
54 | echo "----------------------------------------"
55 | fi
56 | rm -rf /tmp/ipvmess.txt
57 | done
58 | oth=$(cat /tmp/other.txt | sort | uniq | nl)
59 | echo "other";
60 | echo "$oth";
61 | echo "----------------------------------------"
62 | rm -rf /tmp/other.txt
63 | read -n 1 -s -r -p "Press any key to back on menu"
64 | m-vmess
65 |
--------------------------------------------------------------------------------
/xray/certv2ray.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | cekray=`cat /root/log-install.txt | grep -ow "XRAY" | sort | uniq`
6 | if [ "$cekray" = "XRAY" ]; then
7 | domainlama=`cat /etc/xray/domain`
8 | else
9 | domainlama=`cat /etc/v2ray/domain`
10 | fi
11 |
12 | clear
13 | echo -e "[ ${green}INFO${NC} ] Start "
14 | sleep 0.5
15 | systemctl stop nginx
16 | domain=$(cat /var/lib/ipvps.conf | cut -d'=' -f2)
17 | Cek=$(lsof -i:80 | cut -d' ' -f1 | awk 'NR==2 {print $1}')
18 | if [[ ! -z "$Cek" ]]; then
19 | sleep 1
20 | echo -e "[ ${red}WARNING${NC} ] Detected port 80 used by $Cek "
21 | systemctl stop $Cek
22 | sleep 2
23 | echo -e "[ ${green}INFO${NC} ] Processing to stop $Cek "
24 | sleep 1
25 | fi
26 | echo -e "[ ${green}INFO${NC} ] Starting renew cert... "
27 | sleep 2
28 | /root/.acme.sh/acme.sh --set-default-ca --server letsencrypt
29 | /root/.acme.sh/acme.sh --issue -d $domain --standalone -k ec-256
30 | ~/.acme.sh/acme.sh --installcert -d $domain --fullchainpath /etc/xray/xray.crt --keypath /etc/xray/xray.key --ecc
31 | echo -e "[ ${green}INFO${NC} ] Renew cert done... "
32 | sleep 2
33 | echo -e "[ ${green}INFO${NC} ] Starting service $Cek "
34 | sleep 2
35 | echo $domain > /etc/xray/domain
36 | echo $domain > /etc/v2ray/domain
37 | systemctl restart $Cek
38 | systemctl restart nginx
39 | echo -e "[ ${green}INFO${NC} ] All finished... "
40 | sleep 0.5
41 | echo ""
42 | read -n 1 -s -r -p "Press any key to back on menu"
43 | m-domain
44 |
--------------------------------------------------------------------------------
/xray/del-ssws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # SL
3 | # ==========================================
4 | # Color
5 | RED='\033[0;31m'
6 | NC='\033[0m'
7 | GREEN='\033[0;32m'
8 | ORANGE='\033[0;33m'
9 | BLUE='\033[0;34m'
10 | PURPLE='\033[0;35m'
11 | CYAN='\033[0;36m'
12 | LIGHT='\033[0;37m'
13 | # ==========================================
14 | # Getting
15 | MYIP=$(wget -qO- ipv4.icanhazip.com);
16 | echo "Checking VPS"
17 | IZIN=$( curl ipv4.icanhazip.com | grep $MYIP )
18 | if [ $MYIP = $MYIP ]; then
19 | echo -e "${NC}${GREEN}Permission Accepted...${NC}"
20 | else
21 | echo -e "${NC}${RED}Permission Denied!${NC}";
22 | echo -e "${NC}${LIGHT}Fuck You!!"
23 | exit 0
24 | fi
25 | clear
26 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/config.json")
27 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
28 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
29 | echo -e "\E[44;1;39m Delete Sodosok Account \E[0m"
30 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
31 | echo ""
32 | echo "You have no existing clients!"
33 | echo ""
34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
35 | read -n 1 -s -r -p "Press any key to back on menu"
36 | m-ssws
37 | fi
38 |
39 | clear
40 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
41 | echo -e "\E[44;1;39m Delete Sodosok Account \E[0m"
42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
43 | echo " User Expired "
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | grep -E "^### " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq
46 | echo ""
47 | echo -e " • [NOTE] Press any key to back on menu"
48 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
49 | read -rp "Input Username : " user
50 | if [ -z $user ]; then
51 | m-ssws
52 | else
53 | exp=$(grep -wE "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
54 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/config.json
55 | systemctl restart xray > /dev/null 2>&1
56 | clear
57 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
58 | echo -e "\E[44;1;39m Delete Sodosok Account \E[0m"
59 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
60 | echo -e " • Accound Delete Successfully"
61 | echo -e ""
62 | echo -e " • Client Name : $user"
63 | echo -e " • Expired On : $exp"
64 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
65 | echo ""
66 | read -n 1 -s -r -p "Press any key to back on menu"
67 | m-ssws
68 | fi
69 |
--------------------------------------------------------------------------------
/xray/del-tr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^#! " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
8 | echo -e "\E[44;1;39m ⇱ Delete Trojan Account ⇲ \E[0m"
9 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
10 | echo -e " • You Dont have any existing clients!"
11 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
12 | echo ""
13 | read -n 1 -s -r -p " Press any key to back on menu"
14 | m-trojan
15 | fi
16 | clear
17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
18 | echo -e "\E[44;1;39m ⇱ Delete Trojan Account ⇲ \E[0m"
19 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
20 | grep -E "^#! " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq | nl
21 | echo -e ""
22 | echo -e " • [NOTE] Press any key to back on menu"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | read -rp " Input Username : " user
25 | if [ -z $user ]; then
26 | m-trojan
27 | else
28 | exp=$(grep -wE "^#! $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
29 | sed -i "/^#! $user $exp/,/^},{/d" /etc/xray/config.json
30 | systemctl restart xray > /dev/null 2>&1
31 | clear
32 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
33 | echo -e "\E[44;1;39m ⇱ Delete Trojan Account ⇲ \E[0m"
34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
35 | echo -e " • Accound Delete Successfully"
36 | echo -e ""
37 | echo -e " • Client Name : $user"
38 | echo -e " • Expired On : $exp"
39 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
40 | echo ""
41 | read -n 1 -s -r -p " Press any key to back on menu"
42 | m-trojan
43 | fi
44 |
--------------------------------------------------------------------------------
/xray/del-vless.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^#& " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
8 | echo -e "\E[44;1;39m ⇱ Delete Vless Account ⇲ \E[0m"
9 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
10 | echo -e " • You Dont have any existing clients!"
11 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
12 | echo ""
13 | read -n 1 -s -r -p " Press any key to back on menu"
14 | m-vless
15 | fi
16 | clear
17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
18 | echo -e "\E[44;1;39m ⇱ Delete Vless Account ⇲ \E[0m"
19 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
20 | grep -E "^#& " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq | nl
21 | echo -e ""
22 | echo -e " • [NOTE] Press any key to back on menu"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | read -rp " Input Username : " user
25 | if [ -z $user ]; then
26 | m-vless
27 | else
28 | exp=$(grep -wE "^#& $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
29 | sed -i "/^#& $user $exp/,/^},{/d" /etc/xray/config.json
30 | systemctl restart xray > /dev/null 2>&1
31 | clear
32 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
33 | echo -e "\E[44;1;39m ⇱ Delete Vless Account ⇲ \E[0m"
34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
35 | echo -e " • Accound Delete Successfully"
36 | echo -e ""
37 | echo -e " • Client Name : $user"
38 | echo -e " • Expired On : $exp"
39 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
40 | echo ""
41 | read -n 1 -s -r -p " Press any key to back on menu"
42 | m-vless
43 | fi
44 |
--------------------------------------------------------------------------------
/xray/del-ws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
8 | echo -e "\E[44;1;39m ⇱ Delete Vmess Account ⇲ \E[0m"
9 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
10 | echo -e " • You Dont have any existing clients!"
11 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
12 | echo ""
13 | read -n 1 -s -r -p " Press any key to back on menu"
14 | m-vmess
15 | fi
16 | clear
17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
18 | echo -e "\E[44;1;39m ⇱ Delete Vmess Account ⇲ \E[0m"
19 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
20 | grep -E "^### " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq | nl
21 | echo -e ""
22 | echo -e " • [NOTE] Press any key to back on menu"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | read -rp " Input Username : " user
25 | if [ -z $user ]; then
26 | m-vmess
27 | else
28 | exp=$(grep -wE "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
29 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/config.json
30 | systemctl restart xray > /dev/null 2>&1
31 | clear
32 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
33 | echo -e "\E[44;1;39m ⇱ Delete Vmess Account ⇲ \E[0m"
34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
35 | echo -e " • Accound Delete Successfully"
36 | echo -e ""
37 | echo -e " • Client Name : $user"
38 | echo -e " • Expired On : $exp"
39 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
40 | echo ""
41 | read -n 1 -s -r -p " Press any key to back on menu"
42 | m-vmess
43 | fi
--------------------------------------------------------------------------------
/xray/renew-ssws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # SL
3 | # ==========================================
4 | # Color
5 | RED='\033[0;31m'
6 | NC='\033[0m'
7 | GREEN='\033[0;32m'
8 | ORANGE='\033[0;33m'
9 | BLUE='\033[0;34m'
10 | PURPLE='\033[0;35m'
11 | CYAN='\033[0;36m'
12 | LIGHT='\033[0;37m'
13 | # ==========================================
14 | # Getting
15 | MYIP=$(wget -qO- ipv4.icanhazip.com);
16 | echo "Checking VPS"
17 | IZIN=$( curl ipv4.icanhazip.com | grep $MYIP )
18 | if [ $MYIP = $MYIP ]; then
19 | echo -e "${NC}${GREEN}Permission Accepted...${NC}"
20 | else
21 | echo -e "${NC}${RED}Permission Denied!${NC}";
22 | echo -e "${NC}${LIGHT}Fuck You!!"
23 | exit 0
24 | fi
25 | clear
26 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/config.json")
27 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
28 | clear
29 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
30 | echo -e "\\E[0;41;36m Renew Shadowsocks \E[0m"
31 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
32 | echo ""
33 | echo "You have no existing clients!"
34 | echo ""
35 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
36 | echo ""
37 | read -n 1 -s -r -p "Press any key to back on menu"
38 | m-ssws
39 | fi
40 |
41 | clear
42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
43 | echo -e "\\E[0;41;36m Renew Shadowsocks \E[0m"
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | echo ""
46 | grep -E "^### " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq
47 | echo ""
48 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
49 | read -rp "Input Username : " user
50 | if [ -z $user ]; then
51 | m-ssws
52 | else
53 | read -p "Expired (days): " masaaktif
54 | exp=$(grep -wE "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
55 | now=$(date +%Y-%m-%d)
56 | d1=$(date -d "$exp" +%s)
57 | d2=$(date -d "$now" +%s)
58 | exp2=$(( (d1 - d2) / 86400 ))
59 | exp3=$(($exp2 + $masaaktif))
60 | exp4=`date -d "$exp3 days" +"%Y-%m-%d"`
61 | sed -i "/### $user/c\### $user $exp4" /etc/xray/config.json
62 | systemctl restart xray > /dev/null 2>&1
63 | clear
64 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
65 | echo " Shadowsocks Account Was Successfully Renewed"
66 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
67 | echo ""
68 | echo " Client Name : $user"
69 | echo " Expired On : $exp4"
70 | echo ""
71 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
72 | echo ""
73 | read -n 1 -s -r -p "Press any key to back on menu"
74 | m-ssws
75 | fi
76 |
--------------------------------------------------------------------------------
/xray/renew-tr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^#! " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | clear
8 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
9 | echo -e "\E[44;1;39m ⇱ Renew Trojan ⇲ \E[0m"
10 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
11 | echo ""
12 | echo "You have no existing clients!"
13 | echo ""
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo ""
16 | read -n 1 -s -r -p "Press any key to back on menu"
17 | m-trojan
18 | fi
19 |
20 | clear
21 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
22 | echo -e "\E[44;1;39m ⇱ Renew Trojan ⇲ \E[0m"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo ""
25 | grep -E "^#! " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq
26 | echo ""
27 | red "tap enter to go back"
28 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
29 | read -rp "Input Username : " user
30 | if [ -z $user ]; then
31 | m-trojan
32 | else
33 | read -p "Expired (days): " masaaktif
34 | exp=$(grep -wE "^#! $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
35 | now=$(date +%Y-%m-%d)
36 | d1=$(date -d "$exp" +%s)
37 | d2=$(date -d "$now" +%s)
38 | exp2=$(( (d1 - d2) / 86400 ))
39 | exp3=$(($exp2 + $masaaktif))
40 | exp4=`date -d "$exp3 days" +"%Y-%m-%d"`
41 | sed -i "/#! $user/c\#! $user $exp4" /etc/xray/config.json
42 | systemctl restart xray > /dev/null 2>&1
43 | clear
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | echo " Trojan Account Was Successfully Renewed"
46 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
47 | echo ""
48 | echo " Client Name : $user"
49 | echo " Expired On : $exp4"
50 | echo ""
51 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
52 | echo ""
53 | read -n 1 -s -r -p "Press any key to back on menu"
54 | m-trojan
55 | fi
56 |
--------------------------------------------------------------------------------
/xray/renew-vless.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^#& " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | clear
8 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
9 | echo -e "\E[44;1;39m ⇱ Renew Vless ⇲ \E[0m"
10 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
11 | echo ""
12 | echo "You have no existing clients!"
13 | echo ""
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo ""
16 | read -n 1 -s -r -p "Press any key to back on menu"
17 | m-vless
18 | fi
19 |
20 | clear
21 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
22 | echo -e "\E[44;1;39m ⇱ Renew Vless ⇲ \E[0m"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo ""
25 | grep -E "^#& " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq
26 | echo ""
27 | red "tap enter to go back"
28 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
29 | read -rp "Input Username : " user
30 | if [ -z $user ]; then
31 | m-vless
32 | else
33 | read -p "Expired (days): " masaaktif
34 | exp=$(grep -wE "^#& $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
35 | now=$(date +%Y-%m-%d)
36 | d1=$(date -d "$exp" +%s)
37 | d2=$(date -d "$now" +%s)
38 | exp2=$(( (d1 - d2) / 86400 ))
39 | exp3=$(($exp2 + $masaaktif))
40 | exp4=`date -d "$exp3 days" +"%Y-%m-%d"`
41 | sed -i "/#& $user/c\#& $user $exp4" /etc/xray/config.json
42 | systemctl restart xray > /dev/null 2>&1
43 | clear
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | echo " VLESS Account Was Successfully Renewed"
46 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
47 | echo ""
48 | echo " Client Name : $user"
49 | echo " Expired On : $exp4"
50 | echo ""
51 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
52 | echo ""
53 | read -n 1 -s -r -p "Press any key to back on menu"
54 | m-vless
55 | fi
56 |
--------------------------------------------------------------------------------
/xray/renew-ws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MYIP=$(wget -qO- ipv4.icanhazip.com);
3 | echo "Checking VPS"
4 | clear
5 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/config.json")
6 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
7 | clear
8 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
9 | echo -e "\E[44;1;39m ⇱ Renew Vmess ⇲ \E[0m"
10 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
11 | echo ""
12 | echo "You have no existing clients!"
13 | echo ""
14 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
15 | echo ""
16 | read -n 1 -s -r -p "Press any key to back on menu"
17 | m-vmess
18 | fi
19 |
20 | clear
21 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
22 | echo -e "\E[44;1;39m ⇱ Renew Vmess ⇲ \E[0m"
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo ""
25 | grep -E "^### " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq
26 | echo ""
27 | red "tap enter to go back"
28 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
29 | read -rp "Input Username : " user
30 | if [ -z $user ]; then
31 | m-vmess
32 | else
33 | read -p "Expired (days): " masaaktif
34 | exp=$(grep -wE "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq)
35 | now=$(date +%Y-%m-%d)
36 | d1=$(date -d "$exp" +%s)
37 | d2=$(date -d "$now" +%s)
38 | exp2=$(( (d1 - d2) / 86400 ))
39 | exp3=$(($exp2 + $masaaktif))
40 | exp4=`date -d "$exp3 days" +"%Y-%m-%d"`
41 | sed -i "/### $user/c\### $user $exp4" /etc/xray/config.json
42 | systemctl restart xray > /dev/null 2>&1
43 | clear
44 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
45 | echo " VMESS Account Was Successfully Renewed"
46 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
47 | echo ""
48 | echo " Client Name : $user"
49 | echo " Expired On : $exp4"
50 | echo ""
51 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
52 | echo ""
53 | read -n 1 -s -r -p "Press any key to back on menu"
54 | m-vmess
55 | fi
56 |
--------------------------------------------------------------------------------
/xray/trialssws.sh:
--------------------------------------------------------------------------------
1 | domain=$(cat /etc/xray/domain)
2 | tls="$(cat ~/log-install.txt | grep -w "Shadowsocks WS TLS" | cut -d: -f2|sed 's/ //g')"
3 | ntls="$(cat ~/log-install.txt | grep -w "Shadowsocks WS none TLS" | cut -d: -f2|sed 's/ //g')"
4 | user=trial` /tmp/log
14 | shadowsocks_base64=$(cat /tmp/log)
15 | echo -n "${shadowsocks_base64}" | base64 > /tmp/log1
16 | shadowsocks_base64e=$(cat /tmp/log1)
17 | shadowsockslink="ss://${shadowsocks_base64e}@isi_bug_disini:$tls?path=ss-ws&security=tls&host=${domain}&type=ws&sni=${domain}#${user}"
18 | shadowsockslink2="ss://${shadowsocks_base64e}@isi_bug_disini:$ntls?path=ss-ws&security=tls&host=${domain}&type=ws#${user}"
19 | shadowsockslink1="ss://${shadowsocks_base64e}@${domain}:$tls?mode=gun&security=tls&type=grpc&serviceName=ss-grpc&sni=bug.com#${user}"
20 | systemctl restart xray > /dev/null 2>&1
21 | service cron restart > /dev/null 2>&1
22 | clear
23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
24 | echo -e "\\E[0;41;36m Shadowsocks Account \E[0m"
25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
26 | echo -e "Remarks : ${user}"
27 | echo -e "Domain : ${domain}"
28 | echo -e "Wildcard : (bug.com).${domain}"
29 | echo -e "Port TLS : ${tls}"
30 | echo -e "Port none TLS : ${tls}"
31 | echo -e "Port gRPC : ${tls}"
32 | echo -e "Password : ${uuid}"
33 | echo -e "Ciphers : ${cipher}"
34 | echo -e "Network : ws/grpc"
35 | echo -e "Path : /ss-ws"
36 | echo -e "ServiceName : ss-grpc"
37 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
38 | echo -e "Link TLS : ${shadowsockslink}"
39 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
40 | echo -e "Link none TLS : ${shadowsockslink2}"
41 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
42 | echo -e "Link gRPC : ${shadowsockslink1}"
43 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
44 | echo -e "Expired On : $exp"
45 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
46 | echo "" | tee -a /etc/log-create-user.log
47 | read -n 1 -s -r -p "Press any key to back on menu"
48 | m-ssws
49 |
--------------------------------------------------------------------------------
/xray/trialtrojan.sh:
--------------------------------------------------------------------------------
1 | domain=$(cat /etc/xray/domain)
2 | tls="$(cat ~/log-install.txt | grep -w "Trojan WS TLS" | cut -d: -f2|sed 's/ //g')"
3 | ntls="$(cat ~/log-install.txt | grep -w "Trojan WS none TLS" | cut -d: -f2|sed 's/ //g')"
4 | user=trial` /dev/null 2>&1
65 | service cron restart > /dev/null 2>&1
66 | clear
67 |
68 |
69 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
70 | echo -e "\E[0;41;36m Trial Mmess \E[0m"
71 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
72 | echo -e "Remarks : ${user}"
73 | echo -e "Domain : ${domain}"
74 | echo -e "Wildcard : (bug.com).${domain}"
75 | echo -e "Port TLS : ${tls}"
76 | echo -e "Port none TLS : ${none}"
77 | echo -e "Port gRPC : ${tls}"
78 | echo -e "id : ${uuid}"
79 | echo -e "alterId : 0"
80 | echo -e "Security : auto"
81 | echo -e "Network : ws"
82 | echo -e "Path : /vmess"
83 | echo -e "ServiceName : vmess-grpc"
84 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
85 | echo -e "Link TLS : ${vmesslink1}"
86 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
87 | echo -e "Link none TLS : ${vmesslink2}"
88 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
89 | echo -e "Link gRPC : ${vmesslink3}"
90 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
91 | echo -e "Expired On : $exp"
92 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
93 | echo ""
94 |
95 | read -n 1 -s -r -p "Press any key to back on menu"
96 |
97 | m-vmess
98 |
--------------------------------------------------------------------------------