├── .github └── FUNDING.yml ├── .gitignore ├── And thanks for └── README.md ├── LICENSE ├── README.md ├── addip └── register.txt ├── banner └── banner.conf ├── bot telegram panel ├── README.md └── xolpanel.sh ├── cap └── openvpn.m ├── cara └── README.md ├── cari-apa └── setup.toml ├── fix ├── README.md ├── speedtest └── speedtestfix.sh ├── grpc ├── addgrpc.sh ├── cekgrpc.sh ├── delgrpc.sh ├── renewgrpc.sh ├── trojan.go └── xray.sh ├── helium ├── README.md ├── helium.sh ├── ins-helium.sh ├── menu │ └── m-system.sh └── webmin │ └── wbmn.sh ├── image ├── cloudflare1.png ├── cloudflare2.png ├── cloudflare3.png ├── cloudflare4.png ├── menu.png ├── pointing.png ├── qris-givpn.jpg └── service.png ├── index └── index.html ├── jangan-dibuka └── README.toml ├── menu ├── auto-reboot.sh ├── bw.sh ├── clearcache.sh ├── debian.md ├── debian.sh ├── m-dns.sh ├── m-domain.sh ├── m-sshovpn.sh ├── m-ssws.sh ├── m-system.sh ├── m-trojan.sh ├── m-vless.sh ├── m-vmess.sh ├── m-webmin.sh ├── menu.sh ├── restart.sh ├── running.sh ├── tcp.sh └── versi ├── openvpn └── openvpn.modul ├── privacy └── user.toml ├── rootvps.sh ├── setup.sh ├── slowdns ├── README.md └── slowdns.go ├── ssh ├── add-host.sh ├── autokill.sh ├── cek.sh ├── ceklim.sh ├── cf ├── delete.sh ├── hapus.sh ├── index ├── member.sh ├── newudpgw ├── nginx.conf ├── password ├── proxy3.js ├── renew.sh ├── speedtest_cli.py ├── ssh-vpn.sh ├── tendang.sh ├── trial.sh ├── user-lock.sh ├── user-unlock.sh ├── usernew.sh ├── vps.conf └── xp.sh ├── sshd_config ├── sshws ├── insshws.sh ├── ws-dropbear ├── ws-dropbear.service ├── ws-stunnel └── ws-stunnel.service ├── stempel ├── setup.sh └── stempel.m ├── ubuntu ├── setup.sh └── use.toml ├── udp-custom ├── README.md ├── config.json ├── openvpn │ ├── LICENSE │ ├── README.md │ ├── install.md │ ├── openvpn.sh │ ├── squid3.conf │ ├── ssh │ │ ├── trial.sh │ │ └── usernew.sh │ ├── ssl.png │ ├── vpn.sh │ └── vpn.zip ├── slowdns │ ├── nspointing.png │ └── slowdns.sh ├── ssh │ ├── trial.sh │ └── usernew.sh ├── udp-custom-linux-amd64 └── udp.sh ├── update └── yes.py ├── websocket ├── websocket.sh ├── ws-http ├── ws-https └── ws-ovpn └── xray ├── add-ssws.sh ├── add-tr.sh ├── add-vless.sh ├── add-ws.sh ├── cek-tr.sh ├── cek-vless.sh ├── cek-ws.sh ├── certv2ray.sh ├── del-ssws.sh ├── del-tr.sh ├── del-vless.sh ├── del-ws.sh ├── ins-xray.sh ├── renew-ssws.sh ├── renew-tr.sh ├── renew-vless.sh ├── renew-ws.sh ├── trialssws.sh ├── trialtrojan.sh ├── trialvless.sh └── trialvmess.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: ['https://paypal.me/givpn11', 'https://s.id/qris-givpn', 'https://s.id/bitcoin-givpn', 'https://s.id/ethereum-givpn'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build and Release Folders 2 | bin-debug/ 3 | bin-release/ 4 | [Oo]bj/ 5 | [Bb]in/ 6 | 7 | # Other files and folders 8 | .settings/setup.sh 9 | /addip/register.txt 10 | # Executables 11 | *.swf 12 | *.air 13 | *.ipa 14 | *.apk 15 | 16 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` 17 | # should NOT be excluded as they contain compiler settings and other important 18 | # information for Eclipse / Flash Builder. 19 | -------------------------------------------------------------------------------- /And thanks for/README.md: -------------------------------------------------------------------------------- 1 | # And thanks for your Support 2 | | Name | Donation Fund | 3 | | :------------ | -----:| 4 | | Goodi | $5 | 5 | | Olly | $15 | 6 | | Bakulan.ID | 25k | 7 | | arlin | 5k | 8 | | VPN-STORE | 10k | 9 | | dodo | 30k | 10 | | Pech | $54 | 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Gilang Tok'yo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Directly install without the need to register an IP VPS 2 | 3 | # Order from me (MUST READ) before using 4 | 5 |

6 |

Supported Linux Distribution

7 |

8 |

9 |

10 | 11 |

12 |

13 |

14 |

15 | 16 | # Required VPS is still fresh (MUST) / have never installed anything 17 |
18 | - If you install the Script twice, you need to rebuild the VPS to factory settings, in the VPS provider panel
19 | - DOMAIN (MUST) / Random
20 | - DEBIAN 9/10
21 | - Ubuntu 18/20 LTS
22 | - CPU MIN 1 CORE
23 | - RAM 1GB
24 | - (Recommendation) Ubuntu 18 / 20 LTS (STABLE to use) 25 |
26 | 27 | # Cloudflare settings for those who have their own Domain, you can check at folder [image](https://github.com/givpn/AutoScriptXray/tree/master/image) to display other settings 28 |
29 | - SSL/TLS : FULL
30 | - SSL/TLS Recommender : OFF
31 | - GRPC : ON
32 | - WEBSOCKET : ON
33 | - Always Use HTTPS : OFF
34 | - UNDER ATTACK MODE : OFF
35 |
36 | 37 | # Pointing 38 | ![Pointing](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/image/pointing.png) 39 | 40 | ## Service & Port: 41 |
42 | - OpenSSH : 22
43 | - SSH Websocket : 80
44 | - SSH SSL Websocket : 443
45 | - Stunnel4 : 222, 777
46 | - Dropbear : 109, 143
47 | - Badvpn : 7100-7900
48 | - Nginx : 81
49 | - Vmess WS TLS : 443
50 | - Vless WS TLS : 443
51 | - Trojan WS TLS : 443
52 | - Shadowsocks WS TLS : 443
53 | - Vmess WS none TLS : 80
54 | - Vless WS none TLS : 80
55 | - Trojan WS none TLS : 80
56 | - Shadowsocks WS none TLS : 80
57 | - Vmess gRPC : 443
58 | - Vless gRPC : 443
59 | - Trojan gRPC : 443
60 | - Shadowsocks gRPC : 443
61 |
62 | 63 | ## Feature 64 | - Speedtest® by [Ookla®](https://speedtest.net) 65 | - Set Auto Reboot 66 | - Restart All Service 67 | - AUTO delete user Expired 68 | - Check Bandwith 69 | - BBRPLUS version 1.4.0 by [Chikage0o0](https://github.com/Chikage0o0) What is BBR [Search now BBR](https://www.google.com/search?q=what+bbr+in+linux) 70 | - DNS CHANGER 71 | - no auto backup? which... is permanently removed 72 | - Just accept the existing features / you can add them yourself manually 73 | - Additional Features (Optional) skipper (NOTE) install after [Step Install] is complete 74 | - Optional [install OpenVPN + Slowdns +](https://github.com/givpn/AutoScriptXray/tree/master/udp-custom) UDP-Custom by [Exe302](https://gitlab.com/Exe302) + Slowdns by [SL](https://github.com/fisabiliyusri) 75 | - Optional [install Panel Webmin + ADS Block](https://github.com/givpn/AutoScriptXray/tree/master/helium) Helium version 3.0 by [Abi Darwish](https://github.com/abidarwish) 76 | - Optional [install Bot Telegram Xolpanel](https://github.com/givpn/AutoScriptXray/tree/master/bot%20telegram%20panel) by [XolvaID](https://github.com/XolvaID) 77 | 78 | # Menu 79 | ![Service Status](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/image/menu.png) 80 | 81 | # Service Status 82 | ![Service Status](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/image/service.png) 83 | 84 | # [Step Install] 85 | - Step 1 for (debian) please update first 86 | ``` 87 | apt update && apt upgrade -y && reboot 88 | ``` 89 | - Step 2 for (ubuntu) directly install 90 | ``` 91 | sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sysctl -w net.ipv6.conf.default.disable_ipv6=1 && apt update && apt install -y bzip2 gzip coreutils screen curl unzip && wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/setup.sh && chmod +x setup.sh && sed -i -e 's/\r$//' setup.sh && screen -S setup ./setup.sh 92 | ``` 93 | 94 | # Telegram 95 | [![Telegram-chat](https://img.shields.io/badge/Chat-Telegram-blue)](https://t.me/givpn/) 96 | [![Telegram-grup](https://img.shields.io/badge/Grup-Telegram-blue)](https://t.me/givpn_grup/) 97 | 98 | # Donate 99 | [![PayPal donate button](https://img.shields.io/badge/Donate-PayPal-yellow)](https://paypal.me/givpn11) 100 | [![QRIS donate button](https://img.shields.io/badge/Donate-QRIS-red)](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/image/qris-givpn.jpg) 101 | [![Bitcoin donate button](https://img.shields.io/badge/Donate-Bitcoin-orange)](https://www.blockchain.com/explorer/addresses/btc/3BE1deCJcuykuTHMzmrmNYgN51E24Hix8i) 102 | [![Ethereum donate button](https://img.shields.io/badge/Donate-Ethereum-blue)](https://www.blockchain.com/explorer/addresses/eth/0x3eb09df9a72e8e333e202116ff3eb348b3ebf554) 103 | # List Donate 104 | [![donate button](https://img.shields.io/badge/List-Donate-green)](https://github.com/givpn/donate) 105 | 106 | 107 | 108 | # ATTENTION (MUST READ) CAREFULLY 109 | - PROHIBITED FOR SALE BECAUSE I GET FREE FROM THE INTERNET 110 | - DATA SECURITY / YOUR USE HISTORY ON THE INTERNET IS NOT MY RESPONSIBILITY AS A SCRIPT PROVIDER 111 | - ALL YOUR DATA / USAGE HISTORY ON THE INTERNET ONLY VPS NETWORK PROVIDERS MANAGE IT AND (FBI) maybe 112 | - USE IT WISELY THEN YOU WILL AVOID PROBLEMS 113 | - WATCHING ADULT FILM IS YOUR OWN RESPONSIBILITY 114 | 115 | # FINAL MESSAGE 116 | - THANK YOU FOR TAKING THE TIME TO READ AND SORRY IF THERE ARE IMPACT WORDS 117 | - BECAUSE I AM ALSO A HUMAN WHO DOESN'T ESCAPE FROM MISTAKES 118 | 119 |

120 | 121 |

122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /addip/register.txt: -------------------------------------------------------------------------------- 1 | 8.8.8.8 LIFETIME 2 | -------------------------------------------------------------------------------- /banner/banner.conf: -------------------------------------------------------------------------------- 1 | 2 |

3 | 🚀 Premium Server SSH Websocket 🚀

4 | 5 |

6 | ❌ NO DDOS ❌

7 | 8 |

9 | ❌ NO HACKING ❌

10 | 11 |

12 | ❌ NO TORRENT ❌

13 | 14 |

15 | 🚯 NO SPAMMING 🚯

16 | 17 |

18 | 💳 NO CARDING 💳

19 | 20 |

21 | 👥 MAX LOGIN 2 DEVICE 👥

22 | 23 |

24 | 🚫 VIOLATE AUTO BANNED PERMANENT 🚫

25 | 26 | 27 |

28 | 🗿 t.me/givpn 🗿

29 | 30 | -------------------------------------------------------------------------------- /bot telegram panel/README.md: -------------------------------------------------------------------------------- 1 | # Bot Telegram Xolpanel 2 | - Required : 3 | - Bot Token : Create on [BotFather](https://t.me/BotFather) 4 | - Id Telegram : Found on [userinfobot](https://t.me/userinfobot) 5 | - Subdomain : Your Subdomain use on IP VPS 6 | ``` 7 | apt update && apt install wget -y && wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/bot%20telegram%20panel/xolpanel.sh && chmod +x xolpanel.sh && ./xolpanel.sh 8 | ``` 9 | -------------------------------------------------------------------------------- /bot telegram panel/xolpanel.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #install 4 | rm -rf xolpanel.sh 5 | apt update && apt upgrade 6 | apt install python3 python3-pip git 7 | git clone https://github.com/givpn/xolpanel.git 8 | unzip xolpanel/xolpanel.zip 9 | pip3 install -r xolpanel/requirements.txt 10 | pip3 install pillow 11 | 12 | #isi data 13 | echo "" 14 | read -e -p "[*] Input your Bot Token : " bottoken 15 | read -e -p "[*] Input Your Id Telegram :" admin 16 | read -e -p "[*] Input Your Subdomain :" domain 17 | echo -e BOT_TOKEN='"'$bottoken'"' >> /root/xolpanel/var.txt 18 | echo -e ADMIN='"'$admin'"' >> /root/xolpanel/var.txt 19 | echo -e DOMAIN='"'$domain'"' >> /root/xolpanel/var.txt 20 | clear 21 | echo "Done" 22 | echo "Your Data Bot" 23 | echo -e "===============================" 24 | echo "Bot Token : $bottoken" 25 | echo "Id Telegram : $admin" 26 | echo "Subdomain : $domain" 27 | echo -e "===============================" 28 | echo "Setting done Please wait 10s" 29 | sleep 10 30 | 31 | cat > /etc/systemd/system/xolpanel.service << END 32 | [Unit] 33 | Description=Simple XolPanel - @XolPanel 34 | After=network.target 35 | 36 | [Service] 37 | WorkingDirectory=/root 38 | ExecStart=/usr/bin/python3 -m xolpanel 39 | Restart=always 40 | 41 | [Install] 42 | WantedBy=multi-user.target 43 | END 44 | 45 | systemctl start xolpanel 46 | systemctl enable xolpanel 47 | 48 | clear 49 | 50 | echo -e "===============================================" 51 | echo " Installations complete, type /menu on your bot" 52 | echo -e "===============================================" 53 | read -n 1 -s -r -p "Press any key to Reboot" 54 | rm -rf xolpanel.sh 55 | clear 56 | reboot 57 | 58 | -------------------------------------------------------------------------------- /cap/openvpn.m: -------------------------------------------------------------------------------- 1 | jangan salah pilih, pilih yang ada badaknya 2 | awas pusing sendiri ntar 3 | -------------------------------------------------------------------------------- /cara/README.md: -------------------------------------------------------------------------------- 1 | # Belajarlah..!!! 2 | -------------------------------------------------------------------------------- /cari-apa/setup.toml: -------------------------------------------------------------------------------- 1 | cari apa ? 2 | -------------------------------------------------------------------------------- /fix/README.md: -------------------------------------------------------------------------------- 1 | # update speedtest 2 | ``` 3 | apt update && apt install wget -y && wget https://raw.githubusercontent.com/givpn/AutoScriptXray/master/fix/speedtestfix.sh && chmod +x speedtestfix.sh && ./speedtestfix.sh 4 | ``` 5 | -------------------------------------------------------------------------------- /fix/speedtest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/fix/speedtest -------------------------------------------------------------------------------- /fix/speedtestfix.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pewarna hidup 3 | BGreen='\e[1;32m' 4 | NC='\e[0m' 5 | clear 6 | rm -rf /usr/bin/speedtest 7 | echo -e "\e[1;32m Start download speedtest.. \e[0m" 8 | wget -q -O /usr/bin/speedtest https://raw.githubusercontent.com/givpn/AutoScriptXray/master/fix/speedtest.sh 9 | chmod +x /usr/bin/speedtest 10 | clear 11 | echo -e "\e[1;32m Setup done Please wait.. \e[0m" 12 | sleep 2 13 | rm -rf speedtestfix.sh 14 | clear 15 | echo -e "\e[1;32m auto reboot in 5s \e[0m" 16 | sleep 5 17 | reboot 18 | 19 | -------------------------------------------------------------------------------- /grpc/addgrpc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Color 3 | red='\e[1;31m' 4 | green='\e[0;32m' 5 | NC='\e[0m' 6 | dateFromServer=$(curl -v --insecure --silent https://google.com/ 2>&1 | grep Date | sed -e 's/< Date: //') 7 | biji=`date +"%Y-%m-%d" -d "$dateFromServer"` 8 | # Getting 9 | MYIP=$(curl -sS ipv4.icanhazip.com) 10 | clear 11 | domain=$(cat /etc/xray/domain) 12 | tls=$(cat /etc/xray/vmessgrpc.json | grep port | awk '{print $2}' | sed 's/,//g') 13 | vl=$(cat /etc/xray/vlessgrpc.json | grep port | awk '{print $2}' | sed 's/,//g') 14 | until [[ $user =~ ^[a-zA-Z0-9_]+$ && ${CLIENT_EXISTS} == '0' ]]; do 15 | read -rp "User: " -e user 16 | CLIENT_EXISTS=$(grep -w $user /etc/xray/vmessgrpc.json | wc -l) 17 | 18 | if [[ ${CLIENT_EXISTS} == '1' ]]; then 19 | echo "" 20 | echo "A client with the specified name was already created, please choose another name." 21 | exit 1 22 | fi 23 | done 24 | uuid=$(cat /proc/sys/kernel/random/uuid) 25 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"` 26 | sed -i '/#vmessgrpc$/a\### '"$user $exp"'\ 27 | },{"id": "'""$uuid""'","alterId": '"0"',"email": "'""$user""'"' /etc/xray/vmessgrpc.json 28 | sed -i '/#vlessgrpc$/a\### '"$user $exp"'\ 29 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/vlessgrpc.json 30 | cat > /etc/xray/$user-tls.json << EOF 31 | { 32 | "v": "0", 33 | "ps": "${user}", 34 | "add": "${domain}", 35 | "port": "${tls}", 36 | "id": "${uuid}", 37 | "aid": "0", 38 | "net": "grpc", 39 | "path": "GunService", 40 | "type": "none", 41 | "host": "${sni}", 42 | "tls": "tls" 43 | } 44 | EOF 45 | vmess_base641=$( base64 -w 0 <<< $vmess_json1) 46 | ##vmesslink#1="vmess://$(base64 -w 0 /etc/xray/$user-tls.json)" 47 | vmesslink1="vmess://${uuid}@${domain}:${tls}/?type=grpc&encryption=auto&serviceName=GunService&security=tls&sni=${domain}#$user" 48 | vlesslink1="vless://${uuid}@${domain}:${vl}?mode=gun&security=tls&encryption=none&type=grpc&serviceName=GunService&sni=${domain}#$user" 49 | systemctl restart fb-vmess-grpc.service 50 | systemctl restart fb-vless-grpc.service 51 | systemctl restart vmess-grpc.service 52 | systemctl restart vless-grpc.service 53 | service cron restart 54 | clear 55 | echo -e "=================================" 56 | echo -e " XRAY GRPC " 57 | echo -e "=================================" 58 | echo -e "Remarks : ${user}" 59 | echo -e "Domain : ${domain}" 60 | echo -e "Port VMess : ${tls}" 61 | echo -e "Port VLess : ${vl}" 62 | echo -e "ID : ${uuid}" 63 | echo -e "Alter ID : 0" 64 | echo -e "Mode : Gun" 65 | echo -e "Security : TLS" 66 | echo -e "Type : grpc" 67 | echo -e "Service Name gRPC : GunService" 68 | echo -e "SNI : ${domain}" 69 | echo -e "=================================" 70 | echo -e "Link VMess GRPC : " 71 | echo -e "${vmesslink1}" 72 | echo -e "=================================" 73 | echo -e "Link VLess GRPC : " 74 | echo -e "${vlesslink1}" 75 | echo -e "=================================" 76 | echo -e "Expired On : $exp" 77 | echo -e "=================================" 78 | -------------------------------------------------------------------------------- /grpc/cekgrpc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Color 3 | red='\e[1;31m' 4 | green='\e[0;32m' 5 | NC='\e[0m' 6 | # Getting 7 | MYIP=$(wget -qO- ipv4.icanhazip.com); 8 | echo "Checking VPS" 9 | clear 10 | echo -n > /tmp/other.txt 11 | data=( `cat /etc/xray/vmessgrpc.json | grep '^###' | cut -d ' ' -f 2`); 12 | echo "-------------------------------"; 13 | echo " XRAY GRPC VMess User Login"; 14 | echo "-------------------------------"; 15 | for akun in "${data[@]}" 16 | do 17 | if [[ -z "$akun" ]]; then 18 | akun="There isn't any" 19 | fi 20 | echo -n > /tmp/ipvmess.txt 21 | data2=( `netstat -anp | grep ESTABLISHED | grep tcp6 | grep xray | awk '{print $5}' | cut -d: -f1 | sort | uniq`); 22 | for ip in "${data2[@]}" 23 | do 24 | jum=$(cat /var/log/xray/access.log | grep -w $akun | awk '{print $3}' | cut -d: -f1 | grep -w $ip | sort | uniq) 25 | if [[ "$jum" = "$ip" ]]; then 26 | echo "$jum" >> /tmp/ipvmess.txt 27 | else 28 | echo "$ip" >> /tmp/other.txt 29 | fi 30 | jum2=$(cat /tmp/ipvmess.txt) 31 | sed -i "/$jum2/d" /tmp/other.txt > /dev/null 2>&1 32 | done 33 | jum=$(cat /tmp/ipvmess.txt) 34 | if [[ -z "$jum" ]]; then 35 | echo > /dev/null 36 | else 37 | jum2=$(cat /tmp/ipvmess.txt | nl) 38 | echo "user : $akun"; 39 | echo "$jum2"; 40 | echo "-------------------------------" 41 | fi 42 | rm -rf /tmp/ipvmess.txt 43 | done 44 | oth=$(cat /tmp/other.txt | sort | uniq | nl) 45 | echo "$oth"; 46 | echo "-------------------------------" 47 | dt=( `cat /etc/xray/vlessgrpc.json | grep '^###' | cut -d ' ' -f 2`); 48 | echo "-------------------------------"; 49 | echo " XRAY GRPC VLess User Login"; 50 | echo "-------------------------------"; 51 | for akun in "${dt[@]}" 52 | do 53 | if [[ -z "$akun" ]]; then 54 | acc="No" 55 | fi 56 | echo -n > /tmp/ipvmess.txt 57 | dt2=( `netstat -anp | grep ESTABLISHED | grep tcp6 | grep xray | awk '{print $5}' | cut -d: -f1 | sort | uniq`); 58 | for ip in "${dt2[@]}" 59 | do 60 | jum1=$(cat /var/log/xray/access.log | grep -w $akun | awk '{print $3}' | cut -d: -f1 | grep -w $ip | sort | uniq) 61 | if [[ "$jum1" = "$ip" ]]; then 62 | echo "$jum1" >> /tmp/ipvmess.txt 63 | else 64 | echo "$ip" >> /tmp/other.txt 65 | fi 66 | jum3=$(cat /tmp/ipvmess.txt) 67 | sed -i "/$jum3/d" /tmp/other.txt > /dev/null 2>&1 68 | done 69 | jum=$(cat /tmp/ipvmess.txt) 70 | if [[ -z "$jum1" ]]; then 71 | echo > /dev/null 72 | else 73 | jum2=$(cat /tmp/ipvmess.txt | nl) 74 | echo "user : $acc"; 75 | echo "$jum3"; 76 | echo "-------------------------------" 77 | fi 78 | rm -rf /tmp/ipvmess.txt 79 | done 80 | ot=$(cat /tmp/other.txt | sort | uniq | nl) 81 | echo "$ot"; 82 | echo "-------------------------------" 83 | rm -rf /tmp/other.txt 84 | -------------------------------------------------------------------------------- /grpc/delgrpc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Color 3 | RED='\033[0;31m' 4 | NC='\033[0m' 5 | GREEN='\033[0;32m' 6 | ORANGE='\033[0;33m' 7 | BLUE='\033[0;34m' 8 | PURPLE='\033[0;35m' 9 | CYAN='\033[0;36m' 10 | LIGHT='\033[0;37m' 11 | # Getting 12 | MYIP=$(wget -qO- ipv4.icanhazip.com); 13 | echo "Checking VPS" 14 | clear 15 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/vmessgrpc.json") 16 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then 17 | echo "" 18 | echo "You have no existing clients!" 19 | exit 1 20 | fi 21 | 22 | clear 23 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/vlessgrpc.json") 24 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then 25 | echo "" 26 | echo "You have no existing clients!" 27 | exit 1 28 | fi 29 | 30 | clear 31 | echo "" 32 | echo " Select the existing client you want to remove" 33 | echo " Press CTRL+C to return" 34 | echo " ===============================" 35 | echo " No Expired User" 36 | grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 2-3 | nl -s ') ' 37 | grep -E "^### " "/etc/xray/vlessgrpc.json" | cut -d ' ' -f 2-3 | nl -s ') ' 38 | until [[ ${CLIENT_NUMBER} -ge 1 && ${CLIENT_NUMBER} -le ${NUMBER_OF_CLIENTS} ]]; do 39 | if [[ ${CLIENT_NUMBER} == '1' ]]; then 40 | read -rp "Select one client [1]: " CLIENT_NUMBER 41 | else 42 | read -rp "Select one client [1-${NUMBER_OF_CLIENTS}]: " CLIENT_NUMBER 43 | fi 44 | done 45 | user=$(grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 2 | sed -n "${CLIENT_NUMBER}"p) 46 | exp=$(grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 3 | sed -n "${CLIENT_NUMBER}"p) 47 | user=$(grep -E "^### " "/etc/xray/vlessgrpc.json" | cut -d ' ' -f 2 | sed -n "${CLIENT_NUMBER}"p) 48 | exp=$(grep -E "^### " "/etc/xray/vlessgrpc.json" | cut -d ' ' -f 3 | sed -n "${CLIENT_NUMBER}"p) 49 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/vmessgrpc.json 50 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/vlessgrpc.json 51 | rm -f /etc/xray/$user-tls.json 52 | systemctl restart vmess-grpc.service 53 | systemctl restart vless-grpc.service 54 | clear 55 | echo "" 56 | echo "===============================" 57 | echo " XRAY GRPC VMESS VLESS Account Deleted " 58 | echo "===============================" 59 | echo "Username : $user" 60 | echo "Expired : $exp" 61 | echo "===============================" 62 | -------------------------------------------------------------------------------- /grpc/renewgrpc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Color 3 | RED='\033[0;31m' 4 | NC='\033[0m' 5 | GREEN='\033[0;32m' 6 | ORANGE='\033[0;33m' 7 | BLUE='\033[0;34m' 8 | PURPLE='\033[0;35m' 9 | CYAN='\033[0;36m' 10 | LIGHT='\033[0;37m' 11 | # Getting 12 | MYIP=$(wget -qO- ipv4.icanhazip.com); 13 | echo "Checking VPS" 14 | clear 15 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/vmessgrpc.json") 16 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then 17 | clear 18 | echo "" 19 | echo "You have no existing clients!" 20 | exit 1 21 | fi 22 | 23 | clear 24 | echo "" 25 | echo "Select the existing client you want to renew" 26 | echo " Press CTRL+C to return" 27 | echo -e "===============================" 28 | grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 2-3 | nl -s ') ' 29 | until [[ ${CLIENT_NUMBER} -ge 1 && ${CLIENT_NUMBER} -le ${NUMBER_OF_CLIENTS} ]]; do 30 | if [[ ${CLIENT_NUMBER} == '1' ]]; then 31 | read -rp "Select one client [1]: " CLIENT_NUMBER 32 | else 33 | read -rp "Select one client [1-${NUMBER_OF_CLIENTS}]: " CLIENT_NUMBER 34 | fi 35 | done 36 | read -p "Expired (Days): " masaaktif 37 | user=$(grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 2 | sed -n "${CLIENT_NUMBER}"p) 38 | exp=$(grep -E "^### " "/etc/xray/vmessgrpc.json" | cut -d ' ' -f 3 | sed -n "${CLIENT_NUMBER}"p) 39 | user=$(grep -E "^### " "/etc/xray/vlessgrpc.json" | cut -d ' ' -f 2 | sed -n "${CLIENT_NUMBER}"p) 40 | exp=$(grep -E "^### " "/etc/xray/vlessgrpc.json" | cut -d ' ' -f 3 | sed -n "${CLIENT_NUMBER}"p) 41 | now=$(date +%Y-%m-%d) 42 | d1=$(date -d "$exp" +%s) 43 | d2=$(date -d "$now" +%s) 44 | exp2=$(( (d1 - d2) / 86400 )) 45 | exp3=$(($exp2 + $masaaktif)) 46 | exp4=`date -d "$exp3 days" +"%Y-%m-%d"` 47 | sed -i "s/### $user $exp/### $user $exp4/g" /etc/xray/vmessgrpc.json 48 | sed -i "s/### $user $exp/### $user $exp4/g" /etc/xray/vlessgrpc.json 49 | systemctl restart vmess-grpc.service 50 | systemctl restart vless-grpc.service 51 | service cron restart 52 | clear 53 | echo "" 54 | echo "===============================" 55 | echo " XRAY Vmess/Vless gRPC Account Renewed " 56 | echo "===============================" 57 | echo "Username : $user" 58 | echo "Expired : $exp4" 59 | echo "===============================" 60 | -------------------------------------------------------------------------------- /grpc/trojan.go: -------------------------------------------------------------------------------- 1 | cari apa ? 2 | -------------------------------------------------------------------------------- /helium/README.md: -------------------------------------------------------------------------------- 1 | # install Helium ADS Block + Panel Webmin 2 | ``` 3 | apt update && apt install wget -y && wget -q -O /usr/bin/ins-helium "https://raw.githubusercontent.com/givpn/AutoScriptXray/master/helium/ins-helium.sh" && chmod +x /usr/bin/ins-helium && ins-helium 4 | ``` 5 | -------------------------------------------------------------------------------- /helium/ins-helium.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ========================================= 3 | # Quick Setup | Script Setup Manager 4 | # Edition : Stable Edition 1.0 5 | # Auther : givpn 6 | # Kuota Habisss 7 | # (C) Copyright 2023 8 | # ========================================= 9 | # pewarna hidup 10 | BGreen='\e[1;32m' 11 | NC='\e[0m' 12 | clear 13 | rm -rf /usr/bin/m-system 14 | echo -e "\e[1;32m Update Menu System.. \e[0m" 15 | wget -q -O /usr/bin/m-system https://raw.githubusercontent.com/givpn/AutoScriptXray/master/helium/menu/m-system.sh 16 | chmod +x /usr/bin/m-system 17 | rm -rf /usr/bin/wbmn 18 | echo -e "\e[1;32m Start download Panel Webmin.. \e[0m" 19 | wget -q -O /usr/bin/wbmn https://raw.githubusercontent.com/givpn/AutoScriptXray/master/helium/webmin/wbmn.sh 20 | chmod +x /usr/bin/wbmn 21 | rm -rf /usr/bin/helium 22 | echo -e "\e[1;32m Start download Panel ADS Block.. \e[0m" 23 | wget -q -O /usr/bin/helium https://raw.githubusercontent.com/givpn/AutoScriptXray/master/helium/helium.sh 24 | chmod +x /usr/bin/helium 25 | echo -e "\e[1;32m Setup done Please wait.. \e[0m" 26 | sleep 2 27 | rm -rf /usr/bin/ins-helium 28 | echo -e "\e[1;32m auto reboot in 5s \e[0m" 29 | sleep 5 30 | reboot 31 | 32 | -------------------------------------------------------------------------------- /helium/menu/m-system.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • SYSTEM MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Panel Domain" 10 | echo -e " [\e[36m•2\e[0m] Speedtest VPS" 11 | echo -e " [\e[36m•3\e[0m] Set Auto Reboot" 12 | echo -e " [\e[36m•4\e[0m] Restart All Service" 13 | echo -e " [\e[36m•5\e[0m] Cek Bandwith" 14 | echo -e " [\e[36m•6\e[0m] Install TCP BBR" 15 | echo -e " [\e[36m•7\e[0m] DNS CHANGER" 16 | echo -e " [\e[36m•8\e[0m] Panel ADS Block " 17 | echo -e " [\e[36m•9\e[0m] Panel Webmin " 18 | echo -e "" 19 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 20 | echo -e "" 21 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 22 | echo -e "" 23 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 24 | echo -e "" 25 | read -p " Select menu : " opt 26 | echo -e "" 27 | case $opt in 28 | 1) clear ; m-domain ; exit ;; 29 | 2) clear ; speedtest ; exit ;; 30 | 3) clear ; auto-reboot ; exit ;; 31 | 4) clear ; restart ; exit ;; 32 | 5) clear ; bw ; exit ;; 33 | 6) clear ; m-tcp ; exit ;; 34 | 7) clear ; m-dns ; exit ;; 35 | 8) clear ; helium ; exit ;; 36 | 9) clear ; wbmn ; exit ;; 37 | 0) clear ; menu ; exit ;; 38 | x) exit ;; 39 | *) echo -e "" ; echo "Anda salah tekan" ; sleep 1 ; m-system ;; 40 | esac 41 | -------------------------------------------------------------------------------- /helium/webmin/wbmn.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 | Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m" 10 | Info="${Green_font_prefix}[Installed]${Font_color_suffix}" 11 | Error="${Red_font_prefix}[Not Installed]${Font_color_suffix}" 12 | cek=$(netstat -ntlp | grep 10000 | awk '{print $7}' | cut -d'/' -f2) 13 | function install () { 14 | IP=$(wget -qO- ifconfig.co); 15 | echo " Adding Repositori Webmin" 16 | sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list' 17 | apt install gnupg gnupg1 gnupg2 -y 18 | wget http://www.webmin.com/jcameron-key.asc 19 | apt-key add jcameron-key.asc 20 | echo " Start Install Webmin" 21 | clear 22 | sleep 0.5 23 | apt update > /dev/null 2>&1 24 | apt install webmin -y 25 | sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf 26 | /etc/init.d/webmin restart 27 | rm -f /root/jcameron-key.asc 28 | clear 29 | echo "" 30 | echo " Done Install Webmin" 31 | echo " $IP:10000" 32 | echo " Username : root" 33 | echo " Password : Your Paasword VPS" 34 | } 35 | function restart () { 36 | echo " Restarting Webmin" 37 | sleep 0.5 38 | service webmin restart > /dev/null 2>&1 39 | echo " Start Uninstall Webmin" 40 | clear 41 | echo "" 42 | echo " Done Restart Webmin" 43 | } 44 | function uninstall () { 45 | echo " Removing Repositori Webmin" 46 | rm -f /etc/apt/sources.list.d/webmin.list 47 | apt update > /dev/null 2>&1 48 | echo " Start Uninstall Webmin" 49 | clear 50 | sleep 0.5 51 | apt autoremove --purge webmin -y > /dev/null 2>&1 52 | clear 53 | echo "" 54 | echo " Done Uninstall Webmin" 55 | } 56 | if [[ "$cek" = "perl" ]]; then 57 | sts="${Info}" 58 | else 59 | sts="${Error}" 60 | fi 61 | clear 62 | echo -e " ==============================" 63 | echo -e " Webmin Menu " 64 | echo -e " ==============================" 65 | echo -e " Status $sts" 66 | echo -e " 1. Install Webmin" 67 | echo -e " 2. Restart Webmin" 68 | echo -e " 3. Uninstall Webmin" 69 | echo -e " " 70 | echo -e " 0. Back Menu" 71 | echo -e " " 72 | echo -e " Press CTRL+C to return" 73 | read -rp " Please Enter The Correct Number : " -e num 74 | if [[ "$num" = "1" ]]; then 75 | install 76 | elif [[ "$num" = "2" ]]; then 77 | restart 78 | elif [[ "$num" = "3" ]]; then 79 | uninstall 80 | elif [[ "$num" = "0" ]]; then 81 | m-system 82 | else 83 | clear 84 | echo " You Entered The Wrong Number" 85 | wbmn 86 | fi 87 | 88 | -------------------------------------------------------------------------------- /image/cloudflare1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/cloudflare1.png -------------------------------------------------------------------------------- /image/cloudflare2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/cloudflare2.png -------------------------------------------------------------------------------- /image/cloudflare3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/cloudflare3.png -------------------------------------------------------------------------------- /image/cloudflare4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/cloudflare4.png -------------------------------------------------------------------------------- /image/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/menu.png -------------------------------------------------------------------------------- /image/pointing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/pointing.png -------------------------------------------------------------------------------- /image/qris-givpn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/qris-givpn.jpg -------------------------------------------------------------------------------- /image/service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/image/service.png -------------------------------------------------------------------------------- /index/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | Auto script VPS givpn 11 | 12 | 25 | 26 | 27 | 28 |
29 |

givpn

30 |

Auto script VPS

31 |
32 | 33 |
34 | 40 |
41 | 42 |
51 |

52 | 53 |

54 | 55 | 56 | -------------------------------------------------------------------------------- /jangan-dibuka/README.toml: -------------------------------------------------------------------------------- 1 | sudah dikasih tau ngeyel 2 | -------------------------------------------------------------------------------- /menu/auto-reboot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pewarna hidup 3 | BRed='\e[1;31m' 4 | BGreen='\e[1;32m' 5 | BYellow='\e[1;33m' 6 | BBlue='\e[1;34m' 7 | BPurple='\e[1;35m' 8 | NC='\e[0m' 9 | MYIP=$(wget -qO- ipv4.icanhazip.com); 10 | echo "Checking VPS" 11 | clear 12 | if [ ! -e /usr/local/bin/reboot_otomatis ]; then 13 | echo '#!/bin/bash' > /usr/local/bin/reboot_otomatis 14 | echo 'tanggal=$(date +"%m-%d-%Y")' >> /usr/local/bin/reboot_otomatis 15 | echo 'waktu=$(date +"%T")' >> /usr/local/bin/reboot_otomatis 16 | echo 'echo "Server successfully rebooted on the date of $tanggal hit $waktu." >> /root/log-reboot.txt' >> /usr/local/bin/reboot_otomatis 17 | echo '/sbin/shutdown -r now' >> /usr/local/bin/reboot_otomatis 18 | chmod +x /usr/local/bin/reboot_otomatis 19 | fi 20 | clear 21 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 22 | echo -e "\e[1;34m AUTO-REBOOT MENU \e[0m" 23 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 24 | echo -e "" 25 | echo -e "\e[1;35m 1 \e[0m Set Auto-Reboot Setiap 1 Jam" 26 | echo -e "\e[1;35m 2 \e[0m Set Auto-Reboot Setiap 6 Jam" 27 | echo -e "\e[1;35m 3 \e[0m Set Auto-Reboot Setiap 12 Jam" 28 | echo -e "\e[1;35m 4 \e[0m Set Auto-Reboot Setiap 1 Hari" 29 | echo -e "\e[1;35m 5 \e[0m Set Auto-Reboot Setiap 1 Minggu" 30 | echo -e "\e[1;35m 6 \e[0m Set Auto-Reboot Setiap 1 Bulan" 31 | echo -e "\e[1;35m 7 \e[0m Matikan Auto-Reboot" 32 | echo -e "\e[1;35m 8 \e[0m View reboot log" 33 | echo -e "\e[1;35m 9 \e[0m Remove reboot log" 34 | echo -e "" 35 | echo -e "\e[1;35m 0 \e[0m Back To Menu" 36 | echo -e "" 37 | echo -e "\e[1;34m Press x or [ Ctrl+C ] To-Exit \e[0m" 38 | echo -e "" 39 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 40 | echo -e "" 41 | read -p " Select menu : " x 42 | if test $x -eq 1; then 43 | echo "10 * * * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 44 | echo "Auto-Reboot has been set every an hour." 45 | elif test $x -eq 2; then 46 | echo "10 */6 * * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 47 | echo "Auto-Reboot has been successfully set every 6 hours." 48 | elif test $x -eq 3; then 49 | echo "10 */12 * * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 50 | echo "Auto-Reboot has been successfully set every 12 hours." 51 | elif test $x -eq 4; then 52 | echo "10 0 * * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 53 | echo "Auto-Reboot has been successfully set once a day." 54 | elif test $x -eq 5; then 55 | echo "10 0 */7 * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 56 | echo "Auto-Reboot has been successfully set once a week." 57 | elif test $x -eq 6; then 58 | echo "10 0 1 * * root /usr/local/bin/reboot_otomatis" > /etc/cron.d/reboot_otomatis 59 | echo "Auto-Reboot has been successfully set once a month." 60 | elif test $x -eq 7; then 61 | rm -f /etc/cron.d/reboot_otomatis 62 | echo "Auto-Reboot successfully TURNED OFF." 63 | elif test $x -eq 8; then 64 | if [ ! -e /root/log-reboot.txt ]; then 65 | clear 66 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 67 | echo -e "\e[1;34m AUTO-REBOOT LOG \e[0m" 68 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 69 | echo -e "" 70 | echo " No reboot activity found \e[0m" 71 | echo -e "" 72 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 73 | echo "" 74 | read -n 1 -s -r -p "Press any key to back on menu" 75 | auto-reboot 76 | else 77 | clear 78 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 79 | echo -e "\e[1;34m AUTO-REBOOT LOG \e[0m" 80 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 81 | echo -e "" 82 | echo ' LOG REBOOT \e[0m' 83 | cat /root/log-reboot.txt 84 | echo -e "" 85 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 86 | echo "" 87 | read -n 1 -s -r -p "Press any key to back on menu" 88 | auto-reboot 89 | fi 90 | elif test $x -eq 9; then 91 | clear 92 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 93 | echo -e "\e[1;34m AUTO-REBOOT LOG \e[0m" 94 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 95 | echo -e "" 96 | echo "" > /root/log-reboot.txt 97 | echo " Auto Reboot Log successfully deleted! \e[0m" 98 | echo -e "" 99 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 100 | echo "" 101 | read -n 1 -s -r -p "Press any key to back on menu" 102 | auto-reboot 103 | elif test $x -eq 0; then 104 | clear 105 | m-system 106 | else 107 | clear 108 | echo "" 109 | echo "Options Not Found In Menu" 110 | echo "" 111 | read -n 1 -s -r -p "Press any key to back on menu" 112 | auto-reboot 113 | fi 114 | -------------------------------------------------------------------------------- /menu/bw.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pewarna hidup 3 | BGreen='\e[1;32m' 4 | BYellow='\e[1;33m' 5 | BBlue='\e[1;34m' 6 | BPurple='\e[1;35m' 7 | NC='\e[0m' 8 | MYIP=$(wget -qO- ipv4.icanhazip.com); 9 | echo "Checking VPS" 10 | clear 11 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 12 | echo -e "\e[1;34m BANDWITH MONITOR \e[0m" 13 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 14 | echo -e "" 15 | echo -e "\e[1;35m 1 \e[0m Lihat Total Bandwith Tersisa" 16 | echo -e "\e[1;35m 2 \e[0m Tabel Penggunaan Setiap 5 Menit" 17 | echo -e "\e[1;35m 3 \e[0m Tabel Penggunaan Setiap Jam" 18 | echo -e "\e[1;35m 4 \e[0m Tabel Penggunaan Setiap Hari" 19 | echo -e "\e[1;35m 5 \e[0m Tabel Penggunaan Setiap Bulan" 20 | echo -e "\e[1;35m 6 \e[0m Tabel Penggunaan Setiap Tahun" 21 | echo -e "\e[1;35m 7 \e[0m Tabel Penggunaan Tertinggi" 22 | echo -e "\e[1;35m 8 \e[0m Statistik Penggunaan Setiap Jam" 23 | echo -e "\e[1;35m 9 \e[0m Lihat Penggunaan Aktif Saat Ini" 24 | echo -e "\e[1;35m 10 \e[0m Lihat Trafik Penggunaan Aktif Saat Ini [5s]" 25 | echo -e "" 26 | echo -e "\e[1;34m 0 BACK TO MENU \e[0m" 27 | echo -e "\e[1;34m x Keluar \e[0m" 28 | echo -e "" 29 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 30 | echo -e "" 31 | read -p " Select menu : " opt 32 | echo -e "" 33 | case $opt in 34 | 1) 35 | clear 36 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 37 | echo -e "\e[1;34m TOTAL BANDWITH SERVER TERSISA \e[0m" 38 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 39 | echo -e "" 40 | 41 | vnstat 42 | 43 | echo -e "" 44 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 45 | echo -e "" 46 | read -n 1 -s -r -p "Press any key to back on menu" 47 | bw 48 | ;; 49 | 50 | 2) 51 | clear 52 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 53 | echo -e "\e[1;34m TOTAL BANDWITH SETIAP 5 MENIT \e[0m" 54 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 55 | echo -e "" 56 | 57 | vnstat -5 58 | 59 | echo -e "" 60 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 61 | echo -e "" 62 | read -n 1 -s -r -p "Press any key to back on menu" 63 | bw 64 | ;; 65 | 66 | 3) 67 | clear 68 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 69 | echo -e "\e[1;34m TOTAL BANDWITH SETIAP JAM \e[0m" 70 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 71 | echo -e "" 72 | 73 | vnstat -h 74 | 75 | echo -e "" 76 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 77 | echo -e "" 78 | read -n 1 -s -r -p "Press any key to back on menu" 79 | bw 80 | ;; 81 | 82 | 4) 83 | clear 84 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 85 | echo -e "\e[1;34m TOTAL BANDWITH SETIAP HARI \e[0m" 86 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 87 | echo -e "" 88 | 89 | vnstat -d 90 | 91 | echo -e "" 92 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 93 | echo -e "" 94 | read -n 1 -s -r -p "Press any key to back on menu" 95 | bw 96 | ;; 97 | 98 | 5) 99 | clear 100 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 101 | echo -e "\e[1;34m TOTAL BANDWITH SETIAP BULAN • \e[0m" 102 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 103 | echo -e "" 104 | 105 | vnstat -m 106 | 107 | echo -e "" 108 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 109 | echo -e "" 110 | read -n 1 -s -r -p "Press any key to back on menu" 111 | bw 112 | ;; 113 | 114 | 6) 115 | clear 116 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 117 | echo -e "\e[1;34m TOTAL BANDWITH SETIAP TAHUN \e[0m" 118 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 119 | echo -e "" 120 | 121 | vnstat -y 122 | 123 | echo -e "" 124 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 125 | echo -e "" 126 | read -n 1 -s -r -p "Press any key to back on menu" 127 | bw 128 | ;; 129 | 130 | 7) 131 | clear 132 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 133 | echo -e "\e[1;34m TOTAL BANDWITH TERTINGGI \e[0m" 134 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 135 | echo -e "" 136 | 137 | vnstat -t 138 | 139 | echo -e "" 140 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 141 | echo -e "" 142 | read -n 1 -s -r -p "Press any key to back on menu" 143 | bw 144 | ;; 145 | 146 | 8) 147 | clear 148 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 149 | echo -e "\e[1;34m STATISTIK TERPAKAI SETIAP JAM \e[0m" 150 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 151 | echo -e "" 152 | 153 | vnstat -hg 154 | 155 | echo -e "" 156 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 157 | echo -e "" 158 | read -n 1 -s -r -p "Press any key to back on menu" 159 | bw 160 | ;; 161 | 162 | 9) 163 | clear 164 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 165 | echo -e "\e[1;34m LIVE BANDWITH SAAT INI \e[0m" 166 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 167 | echo -e "\e[1;34m Press [ Ctrl+C ] To-Exit \e[0m" 168 | echo -e "" 169 | 170 | vnstat -l 171 | 172 | echo -e "" 173 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 174 | echo -e "" 175 | read -n 1 -s -r -p "Press any key to back on menu" 176 | bw 177 | ;; 178 | 179 | 10) 180 | clear 181 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 182 | echo -e "\e[1;34m LIVE TRAFIK PENGGUNAAN BANDWITH \e[0m" 183 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 184 | echo -e "" 185 | 186 | vnstat -tr 187 | 188 | echo -e "" 189 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 190 | echo -e "" 191 | read -n 1 -s -r -p "Press any key to back on menu" 192 | bw 193 | ;; 194 | 195 | 0) 196 | sleep 1 197 | m-system 198 | ;; 199 | x) 200 | exit 201 | ;; 202 | *) 203 | echo -e "" 204 | echo -e "Anda salah tekan" 205 | sleep 1 206 | bw 207 | ;; 208 | esac 209 | -------------------------------------------------------------------------------- /menu/clearcache.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo "" 6 | echo "" 7 | echo -e "[ \033[32mInfo\033[0m ] Clear RAM Cache" 8 | echo 1 > /proc/sys/vm/drop_caches 9 | sleep 3 10 | echo -e "[ \033[32mok\033[0m ] Cache cleared" 11 | echo "" 12 | echo "Back to menu in 2 sec " 13 | sleep 2 14 | menu 15 | 16 | -------------------------------------------------------------------------------- /menu/debian.md: -------------------------------------------------------------------------------- 1 | ``` 2 | apt update && apt install wget -y && wget -qO- -O debian.sh "https://raw.githubusercontent.com/givpn/AutoScriptXray/master/menu/debian.sh" && chmod +x debian.sh && ./debian.sh 3 | ``` 4 | -------------------------------------------------------------------------------- /menu/debian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 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 | clear 12 | cd 13 | rm -rf debian.sh 14 | rm -rf /usr/bin/clearcache 15 | rm -rf /usr/bin/menu 16 | echo "\e[1;32m Update Menu.. \e[0m" 17 | sleep 1 18 | wget -q -O /usr/bin/clearcache https://raw.githubusercontent.com/givpn/AutoScriptXray/master/menu/clearcache.sh 19 | wget -q -O /usr/bin/menu https://raw.githubusercontent.com/givpn/AutoScriptXray/master/menu/menu.sh 20 | sleep 1 21 | chmod +x /usr/bin/clearcache 22 | chmod +x /usr/bin/menu 23 | clear 24 | rm -rf debian.sh 25 | echo -e "\e[1;32m auto reboot in 5s \e[0m" 26 | sleep 5 27 | reboot 28 | /sbin/reboot 29 | 30 | 31 | -------------------------------------------------------------------------------- /menu/m-dns.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ========================================= 3 | # Auther : givpn 4 | # ========================================= 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 | y="\033[0;1;37m" 14 | wh="\033[0m" 15 | # Getting 16 | MYIP=$(wget -qO- ipv4.icanhazip.com); 17 | echo "Checking VPS" 18 | clear 19 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 20 | echo -e "$y DNS CHANGER$wh" 21 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 22 | dnsfile="/root/dns" 23 | if test -f "$dnsfile"; then 24 | udns=$(cat /root/dns) 25 | echo -e "" 26 | echo -e "Active DNS : $udns" 27 | fi 28 | echo -e "" 29 | echo -e " [\e[36m•1\e[0m] CHANGE DNS" 30 | echo -e " [\e[36m•2\e[0m] Reset DNS To Default" 31 | echo -e "" 32 | echo -e "\e[1;34m 0 BACK TO MENU \e[0m" 33 | echo -e "" 34 | read -p "Select From Options [ 1 - 2 ] or 0 Back To Menu : " dns 35 | echo -e "" 36 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 37 | case $dns in 38 | 1) 39 | clear 40 | echo "" 41 | read -p "Please Insert DNS : " dns1 42 | if [ -z $dns1 ]; then 43 | echo "" 44 | echo "Please Insert DNS !" 45 | sleep 1 46 | clear 47 | dns 48 | fi 49 | rm /etc/resolv.conf 50 | rm /etc/resolvconf/resolv.conf.d/head 51 | touch /etc/resolv.conf 52 | touch /etc/resolvconf/resolv.conf.d/head 53 | echo "$dns1" > /root/dns 54 | echo "nameserver $dns1" >> /etc/resolv.conf 55 | echo "nameserver $dns1" >> /etc/resolvconf/resolv.conf.d/head 56 | systemctl restart resolvconf.service 57 | echo "" 58 | echo -e "\e[032;1mDNS $dns1 sucessfully insert in VPS\e[0m" 59 | echo "" 60 | cat /etc/resolvconf/resolv.conf.d/head 61 | sleep 1 62 | clear 63 | dns 64 | ;; 65 | 2) 66 | clear 67 | echo "" 68 | read -p "Reset To Default DNS [Y/N]: " -e answer 69 | if [ "$answer" = 'y' ] || [ "$answer" = 'Y' ]; then 70 | rm /root/dns 71 | echo "" 72 | echo -e "[ ${GREEN}INFO${NC} ] Delete Resolv.conf DNS" 73 | echo "nameserver 8.8.8.8" > /etc/resolv.conf 74 | sleep 1 75 | echo -e "[ ${GREEN}INFO${NC} ] Delete Resolv.conf.d/head DNS" 76 | echo "nameserver 8.8.8.8" > /etc/resolvconf/resolv.conf.d/head 77 | sleep 1 78 | else if [ "$answer" = 'n' ] || [ "$answer" = 'N' ]; then 79 | echo -e "" 80 | echo -e "[ ${GREEN}INFO${NC} ] Operation Cancelled By User" 81 | sleep 1 82 | fi 83 | fi 84 | clear 85 | dns 86 | ;; 87 | 0) 88 | clear 89 | m-system 90 | ;; 91 | *) 92 | echo "Please enter an correct number" 93 | clear 94 | dns 95 | ;; 96 | esac 97 | -------------------------------------------------------------------------------- /menu/m-domain.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • DOMAIN MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] CHANGE DOMAIN VPS" 10 | echo -e " [\e[36m•2\e[0m] RENEW CERTIFICATE DOMAIN" 11 | echo -e "" 12 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 13 | echo -e "" 14 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 15 | echo -e "" 16 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 17 | echo -e "" 18 | read -p " Select menu : " opt 19 | echo -e "" 20 | case $opt in 21 | 1) clear ; add-host ;; 22 | 2) clear ; certv2ray ;; 23 | 0) clear ; m-system ;; 24 | x) exit ;; 25 | *) echo "Anda salah tekan" ; sleep 1 ; m-domain ;; 26 | esac 27 | -------------------------------------------------------------------------------- /menu/m-sshovpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | # CARI APA 6 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 7 | echo -e "\E[0;100;33m • SSH MENU • \E[0m" 8 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 9 | echo -e "" 10 | echo -e " [\e[36m•1\e[0m] Create SSH & WS Account " 11 | echo -e " [\e[36m•2\e[0m] Trial SSH & WS Account " 12 | echo -e " [\e[36m•3\e[0m] Renew SSH & WS Account " 13 | echo -e " [\e[36m•4\e[0m] Delete SSH & WS Account " 14 | echo -e " [\e[36m•5\e[0m] Check User Login SSH & WS " 15 | echo -e " [\e[36m•6\e[0m] List Member SSH & WS " 16 | echo -e " [\e[36m•7\e[0m] Delete User Expired SSH & WS " 17 | echo -e " [\e[36m•8\e[0m] Set up Autokill SSH " 18 | echo -e " [\e[36m•9\e[0m] Cek Users Who Do Multi Login Multi" 19 | echo -e " [\e[36m•10\e[0m] User list created Account " 20 | echo -e " [\e[36m•11\e[0m] Change Banner SSH " 21 | echo -e " [\e[36m•12\e[0m] Set Lock User " 22 | echo -e " [\e[36m•13\e[0m] Set Unlock User " 23 | echo -e "" 24 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 25 | echo -e "" 26 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 27 | echo "" 28 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 29 | echo -e "" 30 | read -p " Select menu : " opt 31 | echo -e "" 32 | case $opt in 33 | 1) clear ; usernew ; exit ;; 34 | 2) clear ; trial ; exit ;; 35 | 3) clear ; renew ; exit ;; 36 | 4) clear ; hapus ; exit ;; 37 | 5) clear ; cek ; exit ;; 38 | 6) clear ; member ; exit ;; 39 | 7) clear ; delete ; exit ;; 40 | 8) clear ; autokill ; exit ;; 41 | 9) clear ; ceklim ; exit ;; 42 | 10) clear ; cat /etc/log-create-ssh.log ; exit ;; 43 | 11) clear ; nano /etc/issue.net ; exit ;; 44 | 12) clear ; user-lock ; exit ;; 45 | 13) clear ; user-unlock ; exit ;; 46 | 0) clear ; menu ; exit ;; 47 | x) exit ;; 48 | *) echo "Anda salah tekan " ; sleep 1 ; m-sshovpn ;; 49 | esac 50 | -------------------------------------------------------------------------------- /menu/m-ssws.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • Shadowsocks Account • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Create Account Shadowsocks " 10 | echo -e " [\e[36m•2\e[0m] Create Trial Shadowsocks " 11 | echo -e " [\e[36m•3\e[0m] Extending Account Shadowsocks " 12 | echo -e " [\e[36m•4\e[0m] Delete Account Shadowsocks " 13 | echo -e " [\e[36m•5\e[0m] User list created Account " 14 | echo -e "" 15 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 16 | echo -e "" 17 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 18 | echo "" 19 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 20 | echo -e "" 21 | read -p " Select menu : " opt 22 | echo -e "" 23 | case $opt in 24 | 1) clear ; add-ssws ;; 25 | 2) clear ; trialssws ;; 26 | 3) clear ; renew-ssws ;; 27 | 4) clear ; del-ssws ;; 28 | 5) clear ; cat /etc/log-create-shadowsocks.log ; exit ;; 29 | 0) clear ; menu ;; 30 | x) exit ;; 31 | *) echo "salah tekan" ; sleep 1 ; m-ssws ;; 32 | esac 33 | -------------------------------------------------------------------------------- /menu/m-system.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • SYSTEM MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Panel Domain" 10 | echo -e " [\e[36m•2\e[0m] Speedtest VPS" 11 | echo -e " [\e[36m•3\e[0m] Set Auto Reboot" 12 | echo -e " [\e[36m•4\e[0m] Restart All Service" 13 | echo -e " [\e[36m•5\e[0m] Cek Bandwith" 14 | echo -e " [\e[36m•6\e[0m] Install TCP BBR" 15 | echo -e " [\e[36m•7\e[0m] DNS CHANGER" 16 | echo -e "" 17 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 18 | echo -e "" 19 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 20 | echo -e "" 21 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 22 | echo -e "" 23 | read -p " Select menu : " opt 24 | echo -e "" 25 | case $opt in 26 | 1) clear ; m-domain ; exit ;; 27 | 2) clear ; speedtest ; exit ;; 28 | 3) clear ; auto-reboot ; exit ;; 29 | 4) clear ; restart ; exit ;; 30 | 5) clear ; bw ; exit ;; 31 | 6) clear ; m-tcp ; exit ;; 32 | 7) clear ; m-dns ; exit ;; 33 | 0) clear ; menu ; exit ;; 34 | x) exit ;; 35 | *) echo -e "" ; echo "Anda salah tekan" ; sleep 1 ; m-system ;; 36 | esac 37 | -------------------------------------------------------------------------------- /menu/m-trojan.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • TROJAN MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Create Account Trojan " 10 | echo -e " [\e[36m•2\e[0m] Trial Account Trojan " 11 | echo -e " [\e[36m•3\e[0m] Extending Account Trojan " 12 | echo -e " [\e[36m•4\e[0m] Delete Account Trojan " 13 | echo -e " [\e[36m•5\e[0m] Check User Login Trojan " 14 | echo -e " [\e[36m•6\e[0m] User list created Account " 15 | echo -e "" 16 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 17 | echo -e "" 18 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 19 | echo "" 20 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 21 | echo -e "" 22 | read -p " Select menu : " opt 23 | echo -e "" 24 | case $opt in 25 | 1) clear ; add-tr ;; 26 | 2) clear ; trialtrojan ;; 27 | 3) clear ; renew-tr ;; 28 | 4) clear ; del-tr ;; 29 | 5) clear ; cek-tr ;; 30 | 6) clear ; cat /etc/log-create-trojan.log ; exit ;; 31 | 0) clear ; menu ;; 32 | x) exit ;; 33 | *) echo "Anda Salah Tekan" ; sleep 1 ; m-trojan ;; 34 | esac 35 | -------------------------------------------------------------------------------- /menu/m-vless.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • VLESS MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Create Account Vless " 10 | echo -e " [\e[36m•2\e[0m] Trial Account Vless " 11 | echo -e " [\e[36m•3\e[0m] Extending Account Vless " 12 | echo -e " [\e[36m•4\e[0m] Delete Account Vless " 13 | echo -e " [\e[36m•5\e[0m] Check User Login Vless " 14 | echo -e " [\e[36m•6\e[0m] User list created Account " 15 | echo -e "" 16 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 17 | echo -e "" 18 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 19 | echo "" 20 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 21 | echo -e "" 22 | read -p " Select menu : " opt 23 | echo -e "" 24 | case $opt in 25 | 1) clear ; add-vless ; exit ;; 26 | 2) clear ; trialvless ; exit ;; 27 | 3) clear ; renew-vless ; exit ;; 28 | 4) clear ; del-vless ; exit ;; 29 | 5) clear ; cek-vless ; exit ;; 30 | 6) clear ; cat /etc/log-create-vless.log ; exit ;; 31 | 0) clear ; menu ; exit ;; 32 | x) exit ;; 33 | *) echo "Anda salah tekan " ; sleep 1 ; m-sshovpn ;; 34 | esac 35 | -------------------------------------------------------------------------------- /menu/m-vmess.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;100;33m • VMESS MENU • \E[0m" 7 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo -e "" 9 | echo -e " [\e[36m•1\e[0m] Create Account Vmess " 10 | echo -e " [\e[36m•2\e[0m] Trial Account Vmess " 11 | echo -e " [\e[36m•3\e[0m] Extending Account Vmess " 12 | echo -e " [\e[36m•4\e[0m] Delete Account Vmess " 13 | echo -e " [\e[36m•5\e[0m] Check User Login Vmess " 14 | echo -e " [\e[36m•6\e[0m] User list created Account " 15 | echo -e "" 16 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 17 | echo -e "" 18 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 19 | echo "" 20 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 21 | echo -e "" 22 | read -p " Select menu : " opt 23 | echo -e "" 24 | case $opt in 25 | 1) clear ; add-ws ; exit ;; 26 | 2) clear ; trialvmess ; exit ;; 27 | 3) clear ; renew-ws ; exit ;; 28 | 4) clear ; del-ws ; exit ;; 29 | 5) clear ; cek-ws ; exit ;; 30 | 6) clear ; cat /etc/log-create-vmess.log ; exit ;; 31 | 0) clear ; menu ; exit ;; 32 | x) exit ;; 33 | *) echo "Anda salah tekan " ; sleep 1 ; m-sshovpn ;; 34 | esac 35 | -------------------------------------------------------------------------------- /menu/m-webmin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m" 6 | Info="${Green_font_prefix}[Installed]${Font_color_suffix}" 7 | Error="${Red_font_prefix}[Not Installed]${Font_color_suffix}" 8 | cek=$(netstat -ntlp | grep 10000 | awk '{print $7}' | cut -d'/' -f2) 9 | function install () { 10 | IP=$(wget -qO- ifconfig.me/ip); 11 | clear 12 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 13 | echo -e "\E[0;100;33m • INSTALL WEBMIN • \E[0m" 14 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 15 | sleep 0.5 16 | echo "" 17 | echo -e "\033[32m[Info]\033[0m Adding Repository Webmin" 18 | sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list' 19 | apt install gnupg gnupg1 gnupg2 -y > /dev/null 2>&1 20 | wget http://www.webmin.com/jcameron-key.asc > /dev/null 2>&1 21 | apt-key add jcameron-key.asc > /dev/null 2>&1 22 | sleep 0.5 23 | echo -e "\033[32m[Info]\033[0m Start Install Webmin" 24 | sleep 0.5 25 | apt update > /dev/null 2>&1 26 | apt install webmin -y > /dev/null 2>&1 27 | sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf 28 | echo -e "\033[32m[Info]\033[0m Restart Webmin" 29 | /etc/init.d/webmin restart > /dev/null 2>&1 30 | rm -f /root/jcameron-key.asc > /dev/null 2>&1 31 | sleep 0.5 32 | echo -e "\033[32m[Info]\033[0m Webmin Install Successfully !" 33 | echo "" 34 | echo " $IP:10000" 35 | echo "" 36 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 37 | echo "" 38 | read -n 1 -s -r -p "Press any key to back on menu" 39 | m-webmin 40 | } 41 | function restart () { 42 | clear 43 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 44 | echo -e "\E[0;100;33m • RESTART WEBMIN • \E[0m" 45 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 46 | sleep 0.5 47 | echo "" 48 | echo " Restarting Webmin" 49 | service webmin restart > /dev/null 2>&1 50 | echo "" 51 | sleep 0.5 52 | echo -e "\033[32m[Info]\033[0m Webmin Start Successfully !" 53 | echo "" 54 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 55 | echo "" 56 | read -n 1 -s -r -p "Press any key to back on menu" 57 | m-webmin 58 | } 59 | function uninstall () { 60 | clear 61 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 62 | echo -e "\E[0;100;33m • UNINSTALL WEBMIN • \E[0m" 63 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 64 | sleep 0.5 65 | echo "" 66 | echo -e "\033[32m[Info]\033[0m Removing Repositori Webmin" 67 | rm -f /etc/apt/sources.list.d/webmin.list 68 | apt update > /dev/null 2>&1 69 | sleep 0.5 70 | echo -e "\033[32m[Info]\033[0m Start Uninstall Webmin" 71 | apt autoremove --purge webmin -y > /dev/null 2>&1 72 | sleep 0.5 73 | echo -e "\033[32m[Info]\033[0m Webmin Uninstall Successfully !" 74 | echo "" 75 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 76 | echo "" 77 | read -n 1 -s -r -p "Press any key to back on menu" 78 | m-webmin 79 | } 80 | if [[ "$cek" = "perl" ]]; then 81 | sts="${Info}" 82 | else 83 | sts="${Error}" 84 | fi 85 | clear 86 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 87 | echo -e "\E[0;100;33m • WEBMIN MENU • \E[0m" 88 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 89 | echo -e "" 90 | echo -e " Status $sts" 91 | echo -e " [\e[36m•1\e[0m] Install Webmin" 92 | echo -e " [\e[36m•2\e[0m] Restart Webmin" 93 | echo -e " [\e[36m•3\e[0m] Uninstall Webmin" 94 | echo -e "" 95 | echo -e " [\e[31m•0\e[0m] \e[31mBACK TO MENU\033[0m" 96 | echo -e "" 97 | echo -e "Press x or [ Ctrl+C ] • To-Exit" 98 | echo -e "" 99 | echo -e "\e[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 100 | echo -e "" 101 | read -rp " Please Enter The Correct Number : " -e num 102 | if [[ "$num" = "1" ]]; then 103 | install 104 | elif [[ "$num" = "2" ]]; then 105 | restart 106 | elif [[ "$num" = "3" ]]; then 107 | uninstall 108 | elif [[ "$num" = "0" ]]; then 109 | menu 110 | elif [[ "$num" = "x" ]]; then 111 | exit 112 | else 113 | clear 114 | echo " You Entered The Wrong Number" 115 | sleep 2 116 | m-webmin 117 | fi 118 | -------------------------------------------------------------------------------- /menu/menu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(curl -sS ifconfig.me) 3 | echo "Checking VPS" 4 | clear 5 | # Color Validation 6 | DF='\e[39m' 7 | Bold='\e[1m' 8 | Blink='\e[5m' 9 | yell='\e[33m' 10 | red='\e[31m' 11 | green='\e[32m' 12 | blue='\e[34m' 13 | PURPLE='\e[35m' 14 | cyan='\e[36m' 15 | Lred='\e[91m' 16 | Lgreen='\e[92m' 17 | Lyellow='\e[93m' 18 | BGreen='\e[1;32m' 19 | BYellow='\e[1;33m' 20 | BBlue='\e[1;34m' 21 | BPurple='\e[1;35m' 22 | BCyan='\e[1;36m' 23 | NC='\e[0m' 24 | GREEN='\033[0;32m' 25 | ORANGE='\033[0;33m' 26 | LIGHT='\033[0;37m' 27 | # VPS Information 28 | #Domain 29 | domain=$(cat /etc/xray/domain) 30 | #Status certificate 31 | modifyTime=$(stat $HOME/.acme.sh/${domain}_ecc/${domain}.key | sed -n '7,6p' | awk '{print $2" "$3" "$4" "$5}') 32 | modifyTime1=$(date +%s -d "${modifyTime}") 33 | currentTime=$(date +%s) 34 | stampDiff=$(expr ${currentTime} - ${modifyTime1}) 35 | days=$(expr ${stampDiff} / 86400) 36 | remainingDays=$(expr 90 - ${days}) 37 | tlsStatus=${remainingDays} 38 | if [[ ${remainingDays} -le 0 ]]; then 39 | tlsStatus="expired" 40 | fi 41 | # OS Uptime 42 | uptime="$(uptime -p | cut -d " " -f 2-10)" 43 | # Download 44 | #Download/Upload today 45 | dtoday="$(vnstat -i eth0 | grep "today" | awk '{print $2" "substr ($3, 1, 1)}')" 46 | utoday="$(vnstat -i eth0 | grep "today" | awk '{print $5" "substr ($6, 1, 1)}')" 47 | ttoday="$(vnstat -i eth0 | grep "today" | awk '{print $8" "substr ($9, 1, 1)}')" 48 | #Download/Upload yesterday 49 | dyest="$(vnstat -i eth0 | grep "yesterday" | awk '{print $2" "substr ($3, 1, 1)}')" 50 | uyest="$(vnstat -i eth0 | grep "yesterday" | awk '{print $5" "substr ($6, 1, 1)}')" 51 | tyest="$(vnstat -i eth0 | grep "yesterday" | awk '{print $8" "substr ($9, 1, 1)}')" 52 | #Download/Upload current month 53 | dmon="$(vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3" "substr ($4, 1, 1)}')" 54 | umon="$(vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6" "substr ($7, 1, 1)}')" 55 | tmon="$(vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $9" "substr ($10, 1, 1)}')" 56 | # user 57 | Exp2=$"Lifetime" 58 | Name=$"givpn" 59 | # Getting CPU Information 60 | cpu_usage1="$(ps aux | awk 'BEGIN {sum=0} {sum+=$3}; END {print sum}')" 61 | cpu_usage="$((${cpu_usage1/\.*} / ${corediilik:-1}))" 62 | cpu_usage+=" %" 63 | #ISP=$(curl -s ipinfo.io/org?token=ce3da57536810d | cut -d " " -f 2-10 ) 64 | #CITY=$(curl -s ipinfo.io/city?token=ce3da57536810d ) 65 | #WKT=$(curl -s ipinfo.io/timezone?token=ce3da57536810d ) 66 | DAY=$(date +%A) 67 | DATE=$(date +%m/%d/%Y) 68 | DATE2=$(date -R | cut -d " " -f -5) 69 | IPVPS=$(curl -s ifconfig.me ) 70 | LOC=$(curl -s ifconfig.co/country ) 71 | cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo ) 72 | cores=$( awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo ) 73 | freq=$( awk -F: ' /cpu MHz/ {freq=$2} END {print freq}' /proc/cpuinfo ) 74 | tram=$( free -m | awk 'NR==2 {print $2}' ) 75 | uram=$( free -m | awk 'NR==2 {print $3}' ) 76 | fram=$( free -m | awk 'NR==2 {print $4}' ) 77 | clear 78 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 79 | echo -e "\e[1;34m VPS INFO \e[0m" 80 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 81 | echo -e "\e[1;32m OS \e[0m: "`hostnamectl | grep "Operating System" | cut -d ' ' -f5-` 82 | echo -e "\e[1;32m Uptime \e[0m: $uptime" 83 | echo -e "\e[1;32m Public IP \e[0m: $IPVPS" 84 | echo -e "\e[1;32m Country \e[0m: $LOC" 85 | #echo -e "\e[1;32m ASN \e[0m: $ISP" 86 | #echo -e "\e[1;32m CITY \e[0m: $CITY" 87 | echo -e "\e[1;32m DOMAIN \e[0m: $domain" 88 | echo -e "\e[1;32m DATE & TIME \e[0m: $DATE2" 89 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 90 | echo -e "\e[1;34m RAM INFO \e[0m" 91 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 92 | echo -e "" 93 | echo -e "\e[1;32m RAM USED \e[0m: $uram MB" 94 | echo -e "\e[1;32m RAM TOTAL \e[0m: $tram MB" 95 | echo -e "" 96 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 97 | echo -e "\e[1;34m MENU \e[0m" 98 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 99 | echo -e "" 100 | echo -e "\e[1;36m 1 \e[0m: Menu SSH" 101 | echo -e "\e[1;36m 2 \e[0m: Menu Vmess" 102 | echo -e "\e[1;36m 3 \e[0m: Menu Vless" 103 | echo -e "\e[1;36m 4 \e[0m: Menu Trojan" 104 | echo -e "\e[1;36m 5 \e[0m: Menu Shadowsocks" 105 | echo -e "\e[1;36m 6 \e[0m: Menu Setting" 106 | echo -e "\e[1;36m 7 \e[0m: Status Service" 107 | echo -e "\e[1;36m 8 \e[0m: Clear RAM Cache" 108 | echo -e "\e[1;36m 9 \e[0m: Reboot VPS" 109 | echo -e "\e[1;36m x \e[0m: Exit Script" 110 | echo -e "" 111 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 112 | echo -e "\e[1;32m Client Name \e[0m: $Name" 113 | echo -e "\e[1;32m Expired \e[0m: $Exp2" 114 | echo -e "\e[1;33m -------------------------------------------------\e[0m" 115 | echo -e "" 116 | echo -e "\e[1;36m --------------------t.me/givpn-------------------\e[0m" 117 | echo -e "" 118 | read -p " Select menu : " opt 119 | echo -e "" 120 | case $opt in 121 | 1) clear ; m-sshovpn ;; 122 | 2) clear ; m-vmess ;; 123 | 3) clear ; m-vless ;; 124 | 4) clear ; m-trojan ;; 125 | 5) clear ; m-ssws ;; 126 | 6) clear ; m-system ;; 127 | 7) clear ; running ;; 128 | 8) clear ; clearcache ;; 129 | 9) clear ; reboot ; /sbin/reboot ;; 130 | x) exit ;; 131 | *) echo "Anda salah tekan " ; sleep 1 ; menu ;; 132 | esac 133 | 134 | -------------------------------------------------------------------------------- /menu/versi: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /openvpn/openvpn.modul: -------------------------------------------------------------------------------- 1 | install sendiri.start && chmod +x start && bashell start 2 | rm -rf sendiri 3 | reboot now 4 | hahaha 5 | 6 | -------------------------------------------------------------------------------- /privacy/user.toml: -------------------------------------------------------------------------------- 1 | jangan sentuh situs unyil / slot karena akan merugikanmu sendiri juragan 2 | semoga kamu paham 3 | -------------------------------------------------------------------------------- /rootvps.sh: -------------------------------------------------------------------------------- 1 | # by givpn 2 | # ipinfo 3 | MYIP=$(wget -qO- ifconfig.me); 4 | # pewarna hidup 5 | Bred="\e[1;31m" 6 | BGreen='\e[1;32m' 7 | BYellow='\e[1;33m' 8 | BBlue='\e[1;34m' 9 | BPurple='\e[1;35m' 10 | NC='\e[0m' 11 | wget -qO- -O /etc/ssh/sshd_config https://raw.githubusercontent.com/givpn/AutoScriptXray/master/sshd_config; 12 | systemctl restart sshd; 13 | clear; 14 | read -p "Enter Password : " pass 15 | clear 16 | if [[ ! -z "${pass}" ]]; then 17 | echo "" 18 | echo -e "\e[1;34m------------------------------------------\e[0m" 19 | echo -e "\e[1;31m Please Save This VPS Account Information\e[0m" 20 | echo -e "\e[1;34m------------------------------------------\e[0m" 21 | echo -e "\e[1;32mIp address \e[0m = $MYIP" 22 | echo -e "\e[1;32mPort SSH \e[0m = 22 or 2269" 23 | echo -e "\e[1;32mUsername \e[0m = root" 24 | echo -e "\e[1;34m-------------------------------------------" 25 | echo -e "\e[1;32m Successfully enable root...!!!\e[0m" 26 | echo -e "\e[1;34m-------------------------------------------" 27 | echo "" 28 | read -n 1 -s -r -p "Press any key to reboot..." 29 | rm -rf rootvps.sh 30 | reboot 31 | fi 32 | 33 | -------------------------------------------------------------------------------- /slowdns/README.md: -------------------------------------------------------------------------------- 1 | # cari apa ? 2 | -------------------------------------------------------------------------------- /slowdns/slowdns.go: -------------------------------------------------------------------------------- 1 | # cari apa ? 2 | # sedang malas ngode 3 | # caplok saja 4 | package main 5 | 6 | import ( 7 | "flag" 8 | 9 | _ "github.com/p4gefau1t/trojan-go/component" 10 | "github.com/p4gefau1t/trojan-go/log" 11 | "github.com/p4gefau1t/trojan-go/option" 12 | ) 13 | 14 | func main() { 15 | flag.Parse() 16 | for { 17 | h, err := option.PopOptionHandler() 18 | if err != nil { 19 | log.Fatal("invalid options") 20 | } 21 | err = h.Handle() 22 | if err == nil { 23 | break 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ssh/add-host.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 | clear 7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo "" 9 | read -rp "Add Subdomain/Tambah Subdomain: " -e host 10 | echo "" 11 | if [ -z $host ]; then 12 | echo "????" 13 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 14 | read -n 1 -s -r -p "Press any key to back on menu" 15 | m-domain 16 | else 17 | echo "IP=$host" > /var/lib/ipvps.conf 18 | echo "$host" > /root/domain 19 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 20 | echo "Dont forget to renew cert" 21 | echo "" 22 | read -n 1 -s -r -p "Press any key to back on menu" 23 | m-domain 24 | fi 25 | -------------------------------------------------------------------------------- /ssh/autokill.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m" 6 | Info="${Green_font_prefix}[ON]${Font_color_suffix}" 7 | Error="${Red_font_prefix}[OFF]${Font_color_suffix}" 8 | cek=$(grep -c -E "^# Autokill" /etc/cron.d/tendang) 9 | if [[ "$cek" = "1" ]]; then 10 | sts="${Info}" 11 | else 12 | sts="${Error}" 13 | fi 14 | clear 15 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 16 | echo -e "\E[44;1;39m AUTOKILL SSH \E[0m" 17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 18 | echo -e "Status Autokill : $sts " 19 | echo -e "" 20 | echo -e "[1] AutoKill After 5 Minutes" 21 | echo -e "[2] AutoKill After 10 Minutes" 22 | echo -e "[3] AutoKill After 15 Minutes" 23 | echo -e "[4] Turn Off AutoKill/MultiLogin" 24 | echo "" 25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 26 | echo -e "" 27 | read -p "Select From Options [1-4 or ctrl+c to exit] : " AutoKill 28 | if [ -z $AutoKill ]; then 29 | autokill 30 | fi 31 | read -p "Multilogin Maximum Number Of Allowed: " max 32 | echo -e "" 33 | case $AutoKill in 34 | 1) 35 | echo -e "" 36 | sleep 1 37 | clear 38 | echo > /etc/cron.d/tendang 39 | echo "# Autokill" >/etc/cron.d/tendang 40 | echo "*/5 * * * * root /usr/bin/tendang $max" >>/etc/cron.d/tendang 41 | echo -e "" 42 | echo -e "======================================" 43 | echo -e "" 44 | echo -e " Allowed MultiLogin : $max" 45 | echo -e " AutoKill Every : 5 Minutes" 46 | echo -e "" 47 | echo -e "======================================" 48 | service cron restart >/dev/null 2>&1 49 | service cron reload >/dev/null 2>&1 50 | ;; 51 | 2) 52 | echo -e "" 53 | sleep 1 54 | clear 55 | echo > /etc/cron.d/tendang 56 | echo "# Autokill" >/etc/cron.d/tendang 57 | echo "*/10 * * * * root /usr/bin/tendang $max" >>/etc/cron.d/tendang 58 | echo -e "" 59 | echo -e "======================================" 60 | echo -e "" 61 | echo -e " Allowed MultiLogin : $max" 62 | echo -e " AutoKill Every : 10 Minutes" 63 | echo -e "" 64 | echo -e "======================================" 65 | service cron restart >/dev/null 2>&1 66 | service cron reload >/dev/null 2>&1 67 | ;; 68 | 3) 69 | echo -e "" 70 | sleep 1 71 | clear 72 | echo > /etc/cron.d/tendang 73 | echo "# Autokill" >/etc/cron.d/tendang 74 | echo "*/15 * * * * root /usr/bin/tendang $max" >>/etc/cron.d/tendang 75 | echo -e "" 76 | echo -e "======================================" 77 | echo -e "" 78 | echo -e " Allowed MultiLogin : $max" 79 | echo -e " AutoKill Every : 15 Minutes" 80 | echo -e "" 81 | echo -e "======================================" 82 | service cron restart >/dev/null 2>&1 83 | service cron reload >/dev/null 2>&1 84 | ;; 85 | 4) 86 | clear 87 | rm /etc/cron.d/tendang 88 | echo -e "" 89 | echo -e "======================================" 90 | echo -e "" 91 | echo -e " AutoKill MultiLogin Turned Off " 92 | echo -e "" 93 | echo -e "======================================" 94 | service cron restart >/dev/null 2>&1 95 | service cron reload >/dev/null 2>&1 96 | ;; 97 | x) 98 | clear 99 | exit 100 | ;; 101 | esac 102 | 103 | -------------------------------------------------------------------------------- /ssh/cek.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo " " 6 | echo " " 7 | 8 | if [ -e "/var/log/auth.log" ]; then 9 | LOG="/var/log/auth.log"; 10 | fi 11 | if [ -e "/var/log/secure" ]; then 12 | LOG="/var/log/secure"; 13 | fi 14 | 15 | data=( `ps aux | grep -i dropbear | awk '{print $2}'`); 16 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 17 | echo -e "\E[0;41;36m Dropbear User Login \E[0m" 18 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 19 | echo "ID | Username | IP Address"; 20 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 21 | cat $LOG | grep -i dropbear | grep -i "Password auth succeeded" > /tmp/login-db.txt; 22 | for PID in "${data[@]}" 23 | do 24 | cat /tmp/login-db.txt | grep "dropbear\[$PID\]" > /tmp/login-db-pid.txt; 25 | NUM=`cat /tmp/login-db-pid.txt | wc -l`; 26 | USER=`cat /tmp/login-db-pid.txt | awk '{print $10}'`; 27 | IP=`cat /tmp/login-db-pid.txt | awk '{print $12}'`; 28 | if [ $NUM -eq 1 ]; then 29 | echo "$PID - $USER - $IP"; 30 | fi 31 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 32 | 33 | done 34 | echo " " 35 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 36 | echo -e "\E[0;41;36m OpenSSH User Login \E[0m" 37 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 38 | echo "ID | Username | IP Address"; 39 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 40 | cat $LOG | grep -i sshd | grep -i "Accepted password for" > /tmp/login-db.txt 41 | data=( `ps aux | grep "\[priv\]" | sort -k 72 | awk '{print $2}'`); 42 | 43 | for PID in "${data[@]}" 44 | do 45 | cat /tmp/login-db.txt | grep "sshd\[$PID\]" > /tmp/login-db-pid.txt; 46 | NUM=`cat /tmp/login-db-pid.txt | wc -l`; 47 | USER=`cat /tmp/login-db-pid.txt | awk '{print $9}'`; 48 | IP=`cat /tmp/login-db-pid.txt | awk '{print $11}'`; 49 | if [ $NUM -eq 1 ]; then 50 | echo "$PID - $USER - $IP"; 51 | fi 52 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 53 | 54 | done 55 | if [ -f "/etc/openvpn/server/openvpn-tcp.log" ]; then 56 | echo " " 57 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 58 | echo -e "\E[0;41;36m OpenVPN TCP User Login \E[0m" 59 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 60 | echo "Username | IP Address | Connected Since"; 61 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 62 | cat /etc/openvpn/server/openvpn-tcp.log | grep -w "^CLIENT_LIST" | cut -d ',' -f 2,3,8 | sed -e 's/,/ /g' > /tmp/vpn-login-tcp.txt 63 | cat /tmp/vpn-login-tcp.txt 64 | fi 65 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 66 | 67 | if [ -f "/etc/openvpn/server/openvpn-udp.log" ]; then 68 | echo " " 69 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 70 | echo -e "\E[0;41;36m OpenVPN UDP User Login \E[0m" 71 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 72 | echo "Username | IP Address | Connected Since"; 73 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 74 | cat /etc/openvpn/server/openvpn-udp.log | grep -w "^CLIENT_LIST" | cut -d ',' -f 2,3,8 | sed -e 's/,/ /g' > /tmp/vpn-login-udp.txt 75 | cat /tmp/vpn-login-udp.txt 76 | fi 77 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 78 | echo ""; 79 | 80 | rm -f /tmp/login-db-pid.txt 81 | rm -f /tmp/login-db.txt 82 | rm -f /tmp/vpn-login-tcp.txt 83 | rm -f /tmp/vpn-login-udp.txt 84 | read -n 1 -s -r -p "Press any key to back on menu" 85 | 86 | m-sshovpn 87 | -------------------------------------------------------------------------------- /ssh/ceklim.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;41;36m CEK USER MULTI SSH \E[0m" 7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | if [ -e "/root/log-limit.txt" ]; then 9 | echo "User Who Violate The Maximum Limit"; 10 | echo "Time - Username - Number of Multilogin" 11 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 12 | cat /root/log-limit.txt 13 | else 14 | echo " No user has committed a violation" 15 | echo " " 16 | echo " or" 17 | echo " " 18 | echo " The user-limit script not been executed." 19 | fi 20 | echo " "; 21 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 22 | echo "" 23 | read -n 1 -s -r -p "Press any key to back on menu" 24 | m-sshovpn 25 | -------------------------------------------------------------------------------- /ssh/cf: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #random 3 | apt install jq curl -y 4 | rm -rf /root/xray/scdomain 5 | mkdir -p /root/xray 6 | clear 7 | sub=$( /var/lib/ipvps.conf 40 | echo "$SUB_DOMAIN" > /root/domain 41 | echo "$SUB_DOMAIN" > /etc/xray/domain 42 | echo "$SUB_DOMAIN" > /etc/v2ray/domain 43 | echo "$SUB_DOMAIN" > /root/scdomain 44 | echo "$SUB_DOMAIN" > /root/xray/scdomain 45 | echo -e "Done Record Domain= ${SUB_DOMAIN} For VPS" 46 | rm -rf cf 47 | sleep 1 48 | 49 | -------------------------------------------------------------------------------- /ssh/delete.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | hariini=`date +%d-%m-%Y` 6 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 7 | echo -e "\E[44;1;39m ⇱ AUTO DELETE ⇲ \E[0m" 8 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 9 | echo "Thank you for removing the EXPIRED USERS" 10 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 11 | cat /etc/shadow | cut -d: -f1,8 | sed /:$/d > /tmp/expirelist.txt 12 | totalaccounts=`cat /tmp/expirelist.txt | wc -l` 13 | for((i=1; i<=$totalaccounts; i++ )) 14 | do 15 | tuserval=`head -n $i /tmp/expirelist.txt | tail -n 1` 16 | username=`echo $tuserval | cut -f1 -d:` 17 | userexp=`echo $tuserval | cut -f2 -d:` 18 | userexpireinseconds=$(( $userexp * 86400 )) 19 | tglexp=`date -d @$userexpireinseconds` 20 | tgl=`echo $tglexp |awk -F" " '{print $3}'` 21 | while [ ${#tgl} -lt 2 ] 22 | do 23 | tgl="0"$tgl 24 | done 25 | while [ ${#username} -lt 15 ] 26 | do 27 | username=$username" " 28 | done 29 | bulantahun=`echo $tglexp |awk -F" " '{print $2,$6}'` 30 | echo "echo "Expired- User : $username Expire at : $tgl $bulantahun"" >> /usr/local/bin/alluser 31 | todaystime=`date +%s` 32 | if [ $userexpireinseconds -ge $todaystime ] ; 33 | then 34 | : 35 | else 36 | echo "echo "Expired- Username : $username are expired at: $tgl $bulantahun and removed : $hariini "" >> /usr/local/bin/deleteduser 37 | echo "Username $username that are expired at $tgl $bulantahun removed from the VPS $hariini" 38 | userdel $username 39 | fi 40 | done 41 | echo " " 42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 43 | 44 | read -n 1 -s -r -p "Press any key to back on menu" 45 | m-sshovpn 46 | 47 | -------------------------------------------------------------------------------- /ssh/hapus.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[44;1;39m ⇱ DELETE USER ⇲ \E[0m" 7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo "" 9 | read -p "Username SSH to Delete : " Pengguna 10 | 11 | if getent passwd $Pengguna > /dev/null 2>&1; then 12 | userdel $Pengguna > /dev/null 2>&1 13 | echo -e "User $Pengguna was removed." 14 | else 15 | echo -e "Failure: User $Pengguna Not Exist." 16 | fi 17 | 18 | read -n 1 -s -r -p "Press any key to back on menu" 19 | 20 | m-sshovpn 21 | -------------------------------------------------------------------------------- /ssh/index: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | Auto script VPS givpn 11 | 12 | 13 | 26 | 27 | 28 | 29 |
30 |

givpn

31 |

Auto script VPS

32 |
33 | 34 |
35 | 41 |
42 | 43 |
52 |

53 | 54 | 55 | 56 | 57 |

58 | 59 | 60 |

61 | 62 |

63 | 64 | 65 | -------------------------------------------------------------------------------- /ssh/member.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;41;36m MEMBER SSH \E[0m" 7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo "USERNAME EXP DATE STATUS" 9 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 10 | while read expired 11 | do 12 | AKUN="$(echo $expired | cut -d: -f1)" 13 | ID="$(echo $expired | grep -v nobody | cut -d: -f3)" 14 | exp="$(chage -l $AKUN | grep "Account expires" | awk -F": " '{print $2}')" 15 | status="$(passwd -S $AKUN | awk '{print $2}' )" 16 | if [[ $ID -ge 1000 ]]; then 17 | if [[ "$status" = "L" ]]; then 18 | printf "%-17s %2s %-17s %2s \n" "$AKUN" "$exp " "${RED}LOCKED${NORMAL}" 19 | else 20 | printf "%-17s %2s %-17s %2s \n" "$AKUN" "$exp " "${GREEN}UNLOCKED${NORMAL}" 21 | fi 22 | fi 23 | done < /etc/passwd 24 | JUMLAH="$(awk -F: '$3 >= 1000 && $1 != "nobody" {print $1}' /etc/passwd | wc -l)" 25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 26 | echo "Account number: $JUMLAH user" 27 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 28 | read -n 1 -s -r -p "Press any key to back on menu" 29 | 30 | m-sshovpn 31 | -------------------------------------------------------------------------------- /ssh/newudpgw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/ssh/newudpgw -------------------------------------------------------------------------------- /ssh/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | pid /var/run/nginx.pid; 4 | events { 5 | multi_accept on; 6 | worker_connections 1024; 7 | } 8 | http { 9 | gzip on; 10 | gzip_vary on; 11 | gzip_comp_level 5; 12 | gzip_types text/plain application/x-javascript text/xml text/css; 13 | autoindex on; 14 | sendfile on; 15 | tcp_nopush on; 16 | tcp_nodelay on; 17 | keepalive_timeout 65; 18 | types_hash_max_size 2048; 19 | server_tokens off; 20 | include /etc/nginx/mime.types; 21 | default_type application/octet-stream; 22 | access_log /var/log/nginx/access.log; 23 | error_log /var/log/nginx/error.log; 24 | client_max_body_size 32M; 25 | client_header_buffer_size 8m; 26 | large_client_header_buffers 8 8m; 27 | fastcgi_buffer_size 8m; 28 | fastcgi_buffers 8 8m; 29 | fastcgi_read_timeout 600; 30 | #CloudFlare IPv4 31 | set_real_ip_from 199.27.128.0/21; 32 | set_real_ip_from 173.245.48.0/20; 33 | set_real_ip_from 103.21.244.0/22; 34 | set_real_ip_from 103.22.200.0/22; 35 | set_real_ip_from 103.31.4.0/22; 36 | set_real_ip_from 141.101.64.0/18; 37 | set_real_ip_from 108.162.192.0/18; 38 | set_real_ip_from 190.93.240.0/20; 39 | set_real_ip_from 188.114.96.0/20; 40 | set_real_ip_from 197.234.240.0/22; 41 | set_real_ip_from 198.41.128.0/17; 42 | set_real_ip_from 162.158.0.0/15; 43 | set_real_ip_from 104.16.0.0/12; 44 | #Incapsula 45 | set_real_ip_from 199.83.128.0/21; 46 | set_real_ip_from 198.143.32.0/19; 47 | set_real_ip_from 149.126.72.0/21; 48 | set_real_ip_from 103.28.248.0/22; 49 | set_real_ip_from 45.64.64.0/22; 50 | set_real_ip_from 185.11.124.0/22; 51 | set_real_ip_from 192.230.64.0/18; 52 | real_ip_header CF-Connecting-IP; 53 | include /etc/nginx/conf.d/*.conf; 54 | } -------------------------------------------------------------------------------- /ssh/password: -------------------------------------------------------------------------------- 1 | U2FsdGVkX18IS/a35aZft7mpXJmWYjQF3yihzH5senmP2LY/brc7N8+tYb7AzwL9 2 | Vju9llzaucRw7dHaZdSE7oTvGJbzgEK5NVHer7kcvGLVmbSV9BgjlcJMmztZDLEu 3 | yoVaLzEGR7TGmD8LzQ8VZa8UgpkkGSCJav+i9lDSOsbNatOYuImV2W1wIZ3NqWGL 4 | 6S6l6cSfiXP1QC5SbNGvM6UV6kyB+lUFZNuDbr5pz4VV6PiV57rqlE/WICFiaVPT 5 | 3/U/10H/DPdKU4Xstb8S/LqtMHVaejvildJC7C5qBJt2aOmUQrs7f8cchcgnHN+9 6 | yApESmpqUhUnqS5CJb85keQ2QXS7zIbXLSG+YEmsylv9wh2rY0bg6WSD0remqTlR 7 | w/9XOqt/PaJJeEqcLZnkv7X1566QSfznvVbyT8vWYun9L9ZM/nGZWbDwLPMoytU4 8 | SKCP9WZD4HSvzwiPfdGO0etlxFXPHSYheqEZGP+ewm8UQqZN69tVo1djTgOeyzXc 9 | q1iXT6NMTNt5VD1AJ1PabWi79jSaTxSZsUKxHtkydNyXS0TezoXL9aTEtsddIXTD 10 | NRN5jJs0CznMOlOW1mnbD+DkhXFb0sQcOt5NiIRgIKoGZ0/NfQ73mVkl2H0PLJZ2 11 | GW8InqsG6gieCBqNdcb6Q/p76eYo9UAYzyIzULZeoJIRQFopVgFBpCNeiziW6fdD 12 | wP4lwiu1J9MRdpTXRxb3qLU+7hE+h7htXbq3mxzs8iyDQEJ30sADLbe0p4W1n/Ik 13 | eCUbI/t+cof1qTs+owDLrcHmNU7n4rpJJo+Hr9/iwJXL4aNFeFwI0wXmcbJn02KC 14 | eobfjQo4CwZeq3WeWfxs7DploDtZ9MU7ncXRimkzwVptFZni3dHH7WFq4/9WShuN 15 | dScjBEKTx/zfPLlZ/qmkj9R87nR7yP9BlJ6DZSQASK4mEFT2B0++ZZfmuow3vkHN 16 | lq5CTa9IOUKZEvUEcJYCIOE3yhrQO45Nzp34EcxPgLnCgdIEqXA9LiHH0ws8M2Yt 17 | 7XFP0vXo2Q6plM+suchVfVtWJ86sLdRzw0l9GvMOZUTpB+tp/nJstfbeDJwbHLUb 18 | lde+CAcY/3ftf4WkmateiiGaLh+fP7MzPe7/Y7SuPI1vm5GHB+FoJXQnSIhQdLc0 19 | HNBrft3kBCD8RJqnjx9mB2wamy9xVxuL6hmSkvNdUnIdtcs5O2Tu/TIrAITN6OoQ 20 | si/Z8gtxCgRJ8fNjc8KYM4XY03tl7we3Sq5MvnBFU5iGv86rtxfoyCb1VPUTwbnx 21 | Y036dUlEPyZ6NHjxL82TVgj4cX/q3MiXkAGNEaVCmZURKkFSDpHG6IOJOq4bk9/s 22 | INJSU+E9tFSgXtuknqVH6Cel7AHpvYPtnijhloS5xrnl9idsWlq458xT8td2CQdn 23 | 74YEgJJMg4/brQoTrkSngpO5suIXIimiH3s3U/V04XPY8TKNzJXs0UvVdFdKs3Y1 24 | bNV4+gI3JcPwKJMGhQe9/8AOzkdmx3oLiavBH0eP/FlFQVvN/QXpIAvoG8J/Z7aX 25 | PUdr0JKDdyMM7btwS9+ysiSbJ36In6GXUzqBr7GgTIdfiF4ulnhmID3YR87il6rW 26 | mKqr/2oLzsURuNVIttLFYs0DZHLq7pXNbKutlhxkwVoJ1N+aG8/TIjBInhfKvHyf 27 | Wv1EsjO6xylChXWHEqtrEbY8JBgYy72aM0HoCkKCr2ZOKKdGpmFaxtW4YnrP/1Rw 28 | Uq0w7sAm+aV/AIhq3bZA0HJlLZDSAcnmMswoqKwKCAU2f7lrr0VZ7Gk01aOYPIw3 29 | 9mmqPpwNnH5sQgv9lDhCwJDHbeL6KVcJqoHQREf5xQpamtC5FsC0Pq8oXcVu0Xcb 30 | uqi8M9PZY+LahjlgFmyW51C9dql3OF5yxeFnHdezES2rJYwZrplK/rNNqR3g9Rjf 31 | YtbV/sXbtV1kgEG0vxEJqIArb8BP8D70FU6o3knoKuo= -------------------------------------------------------------------------------- /ssh/proxy3.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Proxy Bridge 3 | * Copyright PANCHO7532 - P7COMUnications LLC (c) 2021 4 | * Dedicated to Emanuel Miranda, for giving me the idea to make this :v 5 | */ 6 | const net = require('net'); 7 | const stream = require('stream'); 8 | const util = require('util'); 9 | var dhost = "127.0.0.1"; 10 | var dport = ""; 11 | var mainPort = ""; 12 | var outputFile = "outputFile.txt"; 13 | var packetsToSkip = 0; 14 | var gcwarn = true; 15 | for(c = 0; c < process.argv.length; c++) { 16 | switch(process.argv[c]) { 17 | case "-skip": 18 | packetsToSkip = process.argv[c + 1]; 19 | break; 20 | case "-dhost": 21 | dhost = process.argv[c + 1]; 22 | break; 23 | case "-dport": 24 | dport = process.argv[c + 1]; 25 | break; 26 | case "-mport": 27 | mainPort = process.argv[c + 1]; 28 | break; 29 | case "-o": 30 | outputFile = process.argv[c + 1]; 31 | break; 32 | } 33 | } 34 | function gcollector() { 35 | if(!global.gc && gcwarn) { 36 | console.log("[WARNING] Garbage Collector isn't enabled! Memory leaks may occur."); 37 | gcwarn = false; 38 | return; 39 | } else if(global.gc) { 40 | global.gc(); 41 | return; 42 | } else { 43 | return; 44 | } 45 | } 46 | function parseRemoteAddr(raddr) { 47 | if(raddr.toString().indexOf("ffff") != -1) { 48 | //is IPV4 address 49 | return raddr.substring(7, raddr.length); 50 | } else { 51 | return raddr; 52 | } 53 | } 54 | setInterval(gcollector, 1000); 55 | const server = net.createServer(); 56 | server.on('connection', function(socket) { 57 | var packetCount = 0; 58 | //var handshakeMade = false; 59 | socket.write("HTTP/1.1 101 AUTOSCRIPT BY ENVY VPN\r\nContent-Length: 1048576000000\r\n\r\n", function(err) { 60 | if(err) { 61 | console.log("[SWRITE] Failed to write response to " + socket.remoteAddress + ":" + socket.remotePort + ", error: " + err); 62 | } 63 | }); 64 | console.log("[INFO] Connection received from " + socket.remoteAddress + ":" + socket.remotePort); 65 | var conn = net.createConnection({host: dhost, port: dport}); 66 | socket.on('data', function(data) { 67 | //pipe sucks 68 | if(packetCount < packetsToSkip) { 69 | //console.log("---c1"); 70 | packetCount++; 71 | } else if(packetCount == packetsToSkip) { 72 | //console.log("---c2"); 73 | conn.write(data, function(err) { 74 | if(err) { 75 | console.log("[EWRITE] Failed to write to external socket! - " + err); 76 | } 77 | }); 78 | } 79 | if(packetCount > packetsToSkip) { 80 | //console.log("---c3"); 81 | packetCount = packetsToSkip; 82 | } 83 | //conn.write(data); 84 | }); 85 | conn.on('data', function(data) { 86 | //pipe sucks x2 87 | socket.write(data, function(err) { 88 | if(err) { 89 | console.log("[SWRITE2] Failed to write response to " + socket.remoteAddress + ":" + socket.remotePort + ", error: " + err); 90 | } 91 | }); 92 | }); 93 | socket.once('data', function(data) { 94 | /* 95 | * Nota para mas tarde, resolver que diferencia hay entre .on y .once 96 | */ 97 | }); 98 | socket.on('error', function(error) { 99 | console.log("[SOCKET] read " + error + " from " + socket.remoteAddress + ":" + socket.remotePort); 100 | conn.destroy(); 101 | }); 102 | conn.on('error', function(error) { 103 | console.log("[REMOTE] read " + error); 104 | socket.destroy(); 105 | }); 106 | socket.on('close', function() { 107 | console.log("[INFO] Connection terminated for " + socket.remoteAddress + ":" + socket.remotePort); 108 | conn.destroy(); 109 | }); 110 | }); 111 | server.on("error", function(error) { 112 | console.log("[SRV] Error " + error + ", this may be unrecoverable"); 113 | }); 114 | server.on("close", function() { 115 | //conection closed idk, maybe i should not capture this 116 | }); 117 | server.listen(mainPort, function(){ 118 | console.log("[INFO] Server started on port: " + mainPort); 119 | console.log("[INFO] Redirecting requests to: " + dhost + " at port " + dport); 120 | }); 121 | -------------------------------------------------------------------------------- /ssh/renew.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 6 | echo -e "\E[0;41;36m RENEW USER \E[0m" 7 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 8 | echo 9 | read -p "Username : " User 10 | egrep "^$User" /etc/passwd >/dev/null 11 | if [ $? -eq 0 ]; then 12 | read -p "Day Extend : " Days 13 | Today=`date +%s` 14 | Days_Detailed=$(( $Days * 86400 )) 15 | Expire_On=$(($Today + $Days_Detailed)) 16 | Expiration=$(date -u --date="1970-01-01 $Expire_On sec GMT" +%Y/%m/%d) 17 | Expiration_Display=$(date -u --date="1970-01-01 $Expire_On sec GMT" '+%d %b %Y') 18 | passwd -u $User 19 | usermod -e $Expiration $User 20 | egrep "^$User" /etc/passwd >/dev/null 21 | echo -e "$Pass\n$Pass\n"|passwd $User &> /dev/null 22 | clear 23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 24 | echo -e "\E[0;41;36m RENEW USER \E[0m" 25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 26 | echo -e "" 27 | echo -e " Username : $User" 28 | echo -e " Days Added : $Days Days" 29 | echo -e " Expires on : $Expiration_Display" 30 | echo -e "" 31 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 32 | else 33 | clear 34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 35 | echo -e "\E[0;41;36m RENEW USER \E[0m" 36 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 37 | echo -e "" 38 | echo -e " Username Doesnt Exist " 39 | echo -e "" 40 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 41 | fi 42 | read -n 1 -s -r -p "Press any key to back on menu" 43 | m-sshovpn 44 | -------------------------------------------------------------------------------- /ssh/speedtest_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/givpn/AutoScriptXray/710ae45d546a97c409dc1f9a634449426c60af86/ssh/speedtest_cli.py -------------------------------------------------------------------------------- /ssh/tendang.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | MAX=1 6 | if [ -e "/var/log/auth.log" ]; then 7 | OS=1; 8 | LOG="/var/log/auth.log"; 9 | fi 10 | if [ -e "/var/log/secure" ]; then 11 | OS=2; 12 | LOG="/var/log/secure"; 13 | fi 14 | 15 | if [ $OS -eq 1 ]; then 16 | service ssh restart > /dev/null 2>&1; 17 | fi 18 | if [ $OS -eq 2 ]; then 19 | service sshd restart > /dev/null 2>&1; 20 | fi 21 | service dropbear restart > /dev/null 2>&1; 22 | 23 | if [[ ${1+x} ]]; then 24 | MAX=$1; 25 | fi 26 | 27 | cat /etc/passwd | grep "/home/" | cut -d":" -f1 > /root/user.txt 28 | username1=( `cat "/root/user.txt" `); 29 | i="0"; 30 | for user in "${username1[@]}" 31 | do 32 | username[$i]=`echo $user | sed 's/'\''//g'`; 33 | jumlah[$i]=0; 34 | i=$i+1; 35 | done 36 | cat $LOG | grep -i dropbear | grep -i "Password auth succeeded" > /tmp/log-db.txt 37 | proc=( `ps aux | grep -i dropbear | awk '{print $2}'`); 38 | for PID in "${proc[@]}" 39 | do 40 | cat /tmp/log-db.txt | grep "dropbear\[$PID\]" > /tmp/log-db-pid.txt 41 | NUM=`cat /tmp/log-db-pid.txt | wc -l`; 42 | USER=`cat /tmp/log-db-pid.txt | awk '{print $10}' | sed 's/'\''//g'`; 43 | IP=`cat /tmp/log-db-pid.txt | awk '{print $12}'`; 44 | if [ $NUM -eq 1 ]; then 45 | i=0; 46 | for user1 in "${username[@]}" 47 | do 48 | if [ "$USER" == "$user1" ]; then 49 | jumlah[$i]=`expr ${jumlah[$i]} + 1`; 50 | pid[$i]="${pid[$i]} $PID" 51 | fi 52 | i=$i+1; 53 | done 54 | fi 55 | done 56 | cat $LOG | grep -i sshd | grep -i "Accepted password for" > /tmp/log-db.txt 57 | data=( `ps aux | grep "\[priv\]" | sort -k 72 | awk '{print $2}'`); 58 | for PID in "${data[@]}" 59 | do 60 | cat /tmp/log-db.txt | grep "sshd\[$PID\]" > /tmp/log-db-pid.txt; 61 | NUM=`cat /tmp/log-db-pid.txt | wc -l`; 62 | USER=`cat /tmp/log-db-pid.txt | awk '{print $9}'`; 63 | IP=`cat /tmp/log-db-pid.txt | awk '{print $11}'`; 64 | if [ $NUM -eq 1 ]; then 65 | i=0; 66 | for user1 in "${username[@]}" 67 | do 68 | if [ "$USER" == "$user1" ]; then 69 | jumlah[$i]=`expr ${jumlah[$i]} + 1`; 70 | pid[$i]="${pid[$i]} $PID" 71 | fi 72 | i=$i+1; 73 | done 74 | fi 75 | done 76 | j="0"; 77 | for i in ${!username[*]} 78 | do 79 | if [ ${jumlah[$i]} -gt $MAX ]; then 80 | date=`date +"%Y-%m-%d %X"`; 81 | echo "$date - ${username[$i]} - ${jumlah[$i]}"; 82 | echo "$date - ${username[$i]} - ${jumlah[$i]}" >> /root/log-limit.txt; 83 | kill ${pid[$i]}; 84 | pid[$i]=""; 85 | j=`expr $j + 1`; 86 | fi 87 | done 88 | if [ $j -gt 0 ]; then 89 | if [ $OS -eq 1 ]; then 90 | service ssh restart > /dev/null 2>&1; 91 | fi 92 | if [ $OS -eq 2 ]; then 93 | service sshd restart > /dev/null 2>&1; 94 | fi 95 | service dropbear restart > /dev/null 2>&1; 96 | j=0; 97 | fi 98 | -------------------------------------------------------------------------------- /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 | ossl=`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" | cut -d: -f2)" 21 | ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 22 | ovpn2="$(netstat -nlpu | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 23 | 24 | OhpSSH=`cat /root/log-install.txt | grep -w "OHP SSH" | cut -d: -f2 | awk '{print $1}'` 25 | OhpDB=`cat /root/log-install.txt | grep -w "OHP DBear" | cut -d: -f2 | awk '{print $1}'` 26 | OhpOVPN=`cat /root/log-install.txt | grep -w "OHP OpenVPN" | cut -d: -f2 | awk '{print $1}'` 27 | 28 | Login=trial` /dev/null 40 | PID=`ps -ef |grep -v grep | grep sshws |awk '{print $2}'` 41 | 42 | if [[ ! -z "${PID}" ]]; then 43 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 44 | echo -e "\E[0;41;36m TRIAL SSH \E[0m" 45 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 46 | echo -e "Username : $Login" 47 | echo -e "Password : $Pass" 48 | echo -e "Expired On : $exp" 49 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 50 | echo -e "IP : $IP" 51 | echo -e "Host : $domen" 52 | echo -e "OpenSSH : $opensh" 53 | echo -e "Dropbear : $db" 54 | echo -e "SSH WS : $portsshws" 55 | echo -e "SSH SSL WS : $wsssl" 56 | echo -e "SSL/TLS :$ssl" 57 | echo -e "UDPGW : 7100-7900" 58 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 59 | echo -e "Payload WSS" 60 | echo -e "GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]" 61 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 62 | echo -e "Payload WS" 63 | echo -e "GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]" 64 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 65 | 66 | else 67 | 68 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 69 | echo -e "\E[0;41;36m TRIAL SSH \E[0m" 70 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 71 | echo -e "Username : $Login" 72 | echo -e "Password : $Pass" 73 | echo -e "Expired On : $exp" 74 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 75 | echo -e "IP : $IP" 76 | echo -e "Host : $domen" 77 | echo -e "OpenSSH : $opensh" 78 | echo -e "Dropbear : $db" 79 | echo -e "SSH WS : $portsshws" 80 | echo -e "SSH SSL WS : $wsssl" 81 | echo -e "SSL/TLS :$ssl" 82 | echo -e "UDPGW : 7100-7900" 83 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 84 | echo -e "Payload WSS" 85 | echo -e "GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf]" 86 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 87 | echo -e "Payload WS" 88 | echo -e "GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf]" 89 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 90 | fi 91 | echo "" 92 | read -n 1 -s -r -p "Press any key to back on menu" 93 | m-sshovpn 94 | -------------------------------------------------------------------------------- /ssh/user-lock.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pewarna hidup 3 | red='\e[1;31m' 4 | green='\e[1;32m' 5 | NC='\e[0m' 6 | clear 7 | echo " " 8 | echo " " 9 | echo " " 10 | read -p "Input Username you want to lock: " username 11 | egrep "^$username" /etc/passwd >/dev/null 12 | if [ $? -eq 0 ]; then 13 | # proses mengganti passwordnya 14 | passwd -l $username 15 | clear 16 | echo " " 17 | echo " " 18 | echo " " 19 | echo "-----------------------------------------------" 20 | echo -e "Username ${blue}$username${NC} successfully ${red}LOCKED!${NC}." 21 | echo -e "Access Login to username ${blue}$username${NC} has been locked." 22 | echo "-----------------------------------------------" 23 | else 24 | echo "Username not found on your server." 25 | exit 1 26 | fi 27 | -------------------------------------------------------------------------------- /ssh/user-unlock.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pewarna hidup 3 | red='\e[1;31m' 4 | green='\e[1;32m' 5 | NC='\e[0m' 6 | clear 7 | echo " " 8 | echo " " 9 | echo " " 10 | read -p "Input USERNAME to unlock: " username 11 | egrep "^$username" /etc/passwd >/dev/null 12 | if [ $? -eq 0 ]; then 13 | # proses mengganti passwordnya 14 | passwd -u $username 15 | clear 16 | echo " " 17 | echo " " 18 | echo " " 19 | echo "-------------------------------------------" 20 | echo -e "Username ${blue}$username${NC} successfully ${green}UNLOCKED${NC}." 21 | echo -e "Access for Username ${blue}$username${NC} has been restored" 22 | echo "-------------------------------------------" 23 | else 24 | echo " " 25 | echo -e "Username ${red}$username${NC} not found in your server." 26 | echo " " 27 | exit 1 28 | fi 29 | -------------------------------------------------------------------------------- /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 | ossl=`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" | cut -d: -f2)" 27 | 28 | OhpSSH=`cat /root/log-install.txt | grep -w "OHP SSH" | cut -d: -f2 | awk '{print $1}'` 29 | OhpDB=`cat /root/log-install.txt | grep -w "OHP DBear" | cut -d: -f2 | awk '{print $1}'` 30 | OhpOVPN=`cat /root/log-install.txt | grep -w "OHP OpenVPN" | cut -d: -f2 | awk '{print $1}'` 31 | 32 | sleep 1 33 | clear 34 | useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login 35 | exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')" 36 | echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null 37 | PID=`ps -ef |grep -v grep | grep sshws |awk '{print $2}'` 38 | 39 | if [[ ! -z "${PID}" ]]; then 40 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 41 | echo -e "\E[0;41;36m SSH Account \E[0m" | tee -a /etc/log-create-ssh.log 42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 43 | echo -e "Username : $Login" | tee -a /etc/log-create-ssh.log 44 | echo -e "Password : $Pass" | tee -a /etc/log-create-ssh.log 45 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log 46 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 47 | echo -e "IP : $IP" | tee -a /etc/log-create-ssh.log 48 | echo -e "Host : $domen" | tee -a /etc/log-create-ssh.log 49 | echo -e "OpenSSH : $opensh" | tee -a /etc/log-create-ssh.log 50 | echo -e "SSH WS : $portsshws" | tee -a /etc/log-create-ssh.log 51 | echo -e "SSH SSL WS : $wsssl" | tee -a /etc/log-create-ssh.log 52 | echo -e "SSL/TLS :$ssl" | tee -a /etc/log-create-ssh.log 53 | echo -e "UDPGW : 7100-7900" | tee -a /etc/log-create-ssh.log 54 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 55 | echo -e "Payload WSS" | tee -a /etc/log-create-ssh.log 56 | echo -e " 57 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf] 58 | " | tee -a /etc/log-create-ssh.log 59 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 60 | echo -e "Payload WS" | tee -a /etc/log-create-ssh.log 61 | echo -e " 62 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf] 63 | " | tee -a /etc/log-create-ssh.log 64 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 65 | else 66 | 67 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 68 | echo -e "\E[0;41;36m SSH Account \E[0m" | tee -a /etc/log-create-ssh.log 69 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 70 | echo -e "Username : $Login" | tee -a /etc/log-create-ssh.log 71 | echo -e "Password : $Pass" | tee -a /etc/log-create-ssh.log 72 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log 73 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 74 | echo -e "IP : $IP" | tee -a /etc/log-create-ssh.log 75 | echo -e "Host : $domen" | tee -a /etc/log-create-ssh.log 76 | echo -e "OpenSSH : $opensh" | tee -a /etc/log-create-ssh.log 77 | echo -e "SSH WS : $portsshws" | tee -a /etc/log-create-ssh.log 78 | echo -e "SSH SSL WS : $wsssl" | tee -a /etc/log-create-ssh.log 79 | echo -e "SSL/TLS :$ssl" | tee -a /etc/log-create-ssh.log 80 | echo -e "UDPGW : 7100-7900" | tee -a /etc/log-create-ssh.log 81 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 82 | echo -e "Expired On : $exp" | tee -a /etc/log-create-ssh.log 83 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 84 | echo -e "Payload WSS" | tee -a /etc/log-create-ssh.log 85 | echo -e " 86 | GET wss://isi_bug_disini HTTP/1.1[crlf]Host: ${domen}[crlf]Upgrade: websocket[crlf][crlf] 87 | " | tee -a /etc/log-create-ssh.log 88 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 89 | echo -e "Payload WS" | tee -a /etc/log-create-ssh.log 90 | echo -e " 91 | GET / HTTP/1.1[crlf]Host: $domen[crlf]Upgrade: websocket[crlf][crlf] 92 | " | tee -a /etc/log-create-ssh.log 93 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" | tee -a /etc/log-create-ssh.log 94 | fi 95 | echo "" | tee -a /etc/log-create-ssh.log 96 | read -n 1 -s -r -p "Press any key to back on menu" 97 | m-sshovpn 98 | -------------------------------------------------------------------------------- /ssh/vps.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 81; 3 | server_name 127.0.0.1 localhost; 4 | access_log /var/log/nginx/vps-access.log; 5 | error_log /var/log/nginx/vps-error.log error; 6 | root /home/vps/public_html; 7 | 8 | location / { 9 | index index.html index.htm index.php; 10 | try_files $uri $uri/ /index.php?$args; 11 | } 12 | 13 | location ~ \.php$ { 14 | include /etc/nginx/fastcgi_params; 15 | fastcgi_pass 127.0.0.1:9000; 16 | fastcgi_index index.php; 17 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ssh/xp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MYIP=$(wget -qO- ipv4.icanhazip.com); 3 | echo "Checking VPS" 4 | clear 5 | ##----- Auto Remove Vmess 6 | data=( `cat /etc/xray/config.json | grep '^###' | cut -d ' ' -f 2 | sort | uniq`); 7 | now=`date +"%Y-%m-%d"` 8 | for user in "${data[@]}" 9 | do 10 | exp=$(grep -w "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq) 11 | d1=$(date -d "$exp" +%s) 12 | d2=$(date -d "$now" +%s) 13 | exp2=$(( (d1 - d2) / 86400 )) 14 | if [[ "$exp2" -le "0" ]]; then 15 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/config.json 16 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/config.json 17 | rm -f /etc/xray/$user-tls.json /etc/xray/$user-none.json 18 | fi 19 | done 20 | 21 | #----- Auto Remove Vless 22 | data=( `cat /etc/xray/config.json | grep '^#&' | cut -d ' ' -f 2 | sort | uniq`); 23 | now=`date +"%Y-%m-%d"` 24 | for user in "${data[@]}" 25 | do 26 | exp=$(grep -w "^#& $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq) 27 | d1=$(date -d "$exp" +%s) 28 | d2=$(date -d "$now" +%s) 29 | exp2=$(( (d1 - d2) / 86400 )) 30 | if [[ "$exp2" -le "0" ]]; then 31 | sed -i "/^#& $user $exp/,/^},{/d" /etc/xray/config.json 32 | sed -i "/^#& $user $exp/,/^},{/d" /etc/xray/config.json 33 | fi 34 | done 35 | 36 | #----- Auto Remove Trojan 37 | data=( `cat /etc/xray/config.json | grep '^#!' | cut -d ' ' -f 2 | sort | uniq`); 38 | now=`date +"%Y-%m-%d"` 39 | for user in "${data[@]}" 40 | do 41 | exp=$(grep -w "^#! $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq) 42 | d1=$(date -d "$exp" +%s) 43 | d2=$(date -d "$now" +%s) 44 | exp2=$(( (d1 - d2) / 86400 )) 45 | if [[ "$exp2" -le "0" ]]; then 46 | sed -i "/^#! $user $exp/,/^},{/d" /etc/xray/config.json 47 | sed -i "/^#! $user $exp/,/^},{/d" /etc/xray/config.json 48 | fi 49 | done 50 | systemctl restart xray 51 | 52 | 53 | ##------ Auto Remove SSH 54 | hariini=`date +%d-%m-%Y` 55 | cat /etc/shadow | cut -d: -f1,8 | sed /:$/d > /tmp/expirelist.txt 56 | totalaccounts=`cat /tmp/expirelist.txt | wc -l` 57 | for((i=1; i<=$totalaccounts; i++ )) 58 | do 59 | tuserval=`head -n $i /tmp/expirelist.txt | tail -n 1` 60 | username=`echo $tuserval | cut -f1 -d:` 61 | userexp=`echo $tuserval | cut -f2 -d:` 62 | userexpireinseconds=$(( $userexp * 86400 )) 63 | tglexp=`date -d @$userexpireinseconds` 64 | tgl=`echo $tglexp |awk -F" " '{print $3}'` 65 | while [ ${#tgl} -lt 2 ] 66 | do 67 | tgl="0"$tgl 68 | done 69 | while [ ${#username} -lt 15 ] 70 | do 71 | username=$username" " 72 | done 73 | bulantahun=`echo $tglexp |awk -F" " '{print $2,$6}'` 74 | todaystime=`date +%s` 75 | if [ $userexpireinseconds -ge $todaystime ] ; 76 | then 77 | : 78 | else 79 | userdel --force $username 80 | fi 81 | done 82 | -------------------------------------------------------------------------------- /sshd_config: -------------------------------------------------------------------------------- 1 | # $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ 2 | 3 | # This is the sshd server system-wide configuration file. See 4 | # sshd_config(5) for more information. 5 | 6 | # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin 7 | 8 | # The strategy used for options in the default sshd_config shipped with 9 | # OpenSSH is to specify options with their default value where 10 | # possible, but leave them commented. Uncommented options override the 11 | # default value. 12 | 13 | Include /etc/ssh/sshd_config.d/*.conf 14 | 15 | Port 22 16 | Port 2222 17 | Port 2269 18 | 19 | #AddressFamily any 20 | #ListenAddress 0.0.0.0 21 | #ListenAddress :: 22 | 23 | #HostKey /etc/ssh/ssh_host_rsa_key 24 | #HostKey /etc/ssh/ssh_host_ecdsa_key 25 | #HostKey /etc/ssh/ssh_host_ed25519_key 26 | 27 | # Ciphers and keying 28 | #RekeyLimit default none 29 | 30 | # Logging 31 | #SyslogFacility AUTH 32 | #LogLevel INFO 33 | 34 | # Authentication: 35 | 36 | #LoginGraceTime 2m 37 | PermitRootLogin yes 38 | #StrictModes yes 39 | #MaxAuthTries 6 40 | #MaxSessions 10 41 | 42 | #PubkeyAuthentication yes 43 | 44 | # Expect .ssh/authorized_keys2 to be disregarded by default in future. 45 | #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 46 | 47 | #AuthorizedPrincipalsFile none 48 | 49 | #AuthorizedKeysCommand none 50 | #AuthorizedKeysCommandUser nobody 51 | 52 | # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts 53 | #HostbasedAuthentication no 54 | # Change to yes if you don't trust ~/.ssh/known_hosts for 55 | # HostbasedAuthentication 56 | #IgnoreUserKnownHosts no 57 | # Don't read the user's ~/.rhosts and ~/.shosts files 58 | #IgnoreRhosts yes 59 | 60 | # To disable tunneled clear text passwords, change to no here! 61 | PasswordAuthentication yes 62 | #PermitEmptyPasswords no 63 | 64 | # Change to yes to enable challenge-response passwords (beware issues with 65 | # some PAM modules and threads) 66 | ChallengeResponseAuthentication no 67 | 68 | # Kerberos options 69 | #KerberosAuthentication no 70 | #KerberosOrLocalPasswd yes 71 | #KerberosTicketCleanup yes 72 | #KerberosGetAFSToken no 73 | 74 | # GSSAPI options 75 | #GSSAPIAuthentication no 76 | #GSSAPICleanupCredentials yes 77 | #GSSAPIStrictAcceptorCheck yes 78 | #GSSAPIKeyExchange no 79 | 80 | # Set this to 'yes' to enable PAM authentication, account processing, 81 | # and session processing. If this is enabled, PAM authentication will 82 | # be allowed through the ChallengeResponseAuthentication and 83 | # PasswordAuthentication. Depending on your PAM configuration, 84 | # PAM authentication via ChallengeResponseAuthentication may bypass 85 | # the setting of "PermitRootLogin without-password". 86 | # If you just want the PAM account and session checks to run without 87 | # PAM authentication, then enable this but set PasswordAuthentication 88 | # and ChallengeResponseAuthentication to 'no'. 89 | UsePAM yes 90 | 91 | #AllowAgentForwarding yes 92 | AllowTcpForwarding yes 93 | #GatewayPorts no 94 | X11Forwarding yes 95 | #X11DisplayOffset 10 96 | #X11UseLocalhost yes 97 | #PermitTTY yes 98 | PrintMotd no 99 | #PrintLastLog yes 100 | #TCPKeepAlive yes 101 | #PermitUserEnvironment no 102 | #Compression delayed 103 | #ClientAliveInterval 0 104 | #ClientAliveCountMax 3 105 | #UseDNS no 106 | #PidFile /var/run/sshd.pid 107 | #MaxStartups 10:30:100 108 | #PermitTunnel no 109 | #ChrootDirectory none 110 | #VersionAddendum none 111 | 112 | # no default banner path 113 | #Banner none 114 | 115 | # Allow client to pass locale environment variables 116 | #AcceptEnv LANG LC_* 117 | 118 | # override default of no subsystems 119 | Subsystem sftp /usr/lib/openssh/sftp-server 120 | 121 | # Example of overriding settings on a per-user basis 122 | #Match User anoncvs 123 | # X11Forwarding no 124 | # AllowTcpForwarding no 125 | # PermitTTY no 126 | # ForceCommand cvs server 127 | Banner /etc/issue.net 128 | 129 | -------------------------------------------------------------------------------- /sshws/insshws.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | clear 3 | cd 4 | 5 | #Install Script Websocket-SSH Python 6 | wget -O /usr/local/bin/ws-dropbear https://raw.githubusercontent.com/givpn/AutoScriptXray/master/sshws/ws-dropbear 7 | wget -O /usr/local/bin/ws-stunnel https://raw.githubusercontent.com/givpn/AutoScriptXray/master/sshws/ws-stunnel 8 | 9 | #izin permision 10 | chmod +x /usr/local/bin/ws-dropbear 11 | chmod +x /usr/local/bin/ws-stunnel 12 | 13 | #System Dropbear Websocket-SSH Python 14 | wget -O /etc/systemd/system/ws-dropbear.service https://raw.githubusercontent.com/givpn/AutoScriptXray/master/sshws/service-wsdropbear && chmod +x /etc/systemd/system/ws-dropbear.service 15 | 16 | #System SSL/TLS Websocket-SSH Python 17 | wget -O /etc/systemd/system/ws-stunnel.service https://raw.githubusercontent.com/givpn/AutoScriptXray/master/sshws/ws-stunnel.service && chmod +x /etc/systemd/system/ws-stunnel.service 18 | 19 | 20 | #restart service 21 | systemctl daemon-reload 22 | 23 | #Enable & Start & Restart ws-dropbear service 24 | systemctl enable ws-dropbear.service 25 | systemctl start ws-dropbear.service 26 | systemctl restart ws-dropbear.service 27 | 28 | #Enable & Start & Restart ws-openssh service 29 | systemctl enable ws-stunnel.service 30 | systemctl start ws-stunnel.service 31 | systemctl restart ws-stunnel.service 32 | -------------------------------------------------------------------------------- /sshws/ws-dropbear.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Websocket-Dropbear 3 | Documentation=https://google.com 4 | After=network.target nss-lookup.target 5 | 6 | [Service] 7 | Type=simple 8 | User=root 9 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 10 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 11 | NoNewPrivileges=true 12 | ExecStart=/usr/bin/python -O /usr/local/bin/ws-dropbear 2095 13 | Restart=on-failure 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /sshws/ws-stunnel.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=SSH Over Websocket 3 | Documentation=https://google.com 4 | After=network.target nss-lookup.target 5 | 6 | [Service] 7 | Type=simple 8 | User=root 9 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 10 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 11 | NoNewPrivileges=true 12 | Restart=on-failure 13 | ExecStart=/usr/bin/python -O /usr/local/bin/ws-stunnel 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /stempel/stempel.m: -------------------------------------------------------------------------------- 1 | stempel saja 2 | -------------------------------------------------------------------------------- /ubuntu/use.toml: -------------------------------------------------------------------------------- 1 | ubuntu 18 / 20 LTS 2 | -------------------------------------------------------------------------------- /udp-custom/README.md: -------------------------------------------------------------------------------- 1 | # install udp-custom + slowdns + OpenVPN 2 | - (NOTE) Slowdns limit speed 3 | - Upload : 3 Mbps 4 | - Download : 3 Mbps 5 | ``` 6 | apt update && apt install wget -y && wget -qO- -O udp.sh "https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/udp.sh" && chmod +x udp.sh && ./udp.sh 7 | ``` 8 | - NS Pointing 9 | ![Service Status](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/udp-custom/slowdns/nspointing.png) 10 | 11 | 12 | -------------------------------------------------------------------------------- /udp-custom/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "listen": ":36712", 3 | "stream_buffer": 33554432, 4 | "receive_buffer": 83886080, 5 | "auth": { 6 | "mode": "passwords" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /udp-custom/openvpn/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Gilang Tok'yo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /udp-custom/openvpn/README.md: -------------------------------------------------------------------------------- 1 | # Cari apa ? 2 | ## Telegram 3 | [![Telegram-chat](https://img.shields.io/badge/Chat-Telegram-blue)](https://t.me/givpn/) 4 | [![Telegram-grup](https://img.shields.io/badge/Grup-Telegram-blue)](https://t.me/givpn_grup) 5 | 6 | # Buy me a coffee 7 | [![PayPal donate button](https://img.shields.io/badge/Donate-PayPal-blue)](https://paypal.me/givpn11) 8 | [![QRIS donate button](https://img.shields.io/badge/Donate-QRIS-red)](https://raw.githubusercontent.com/givpn/AutoScriptXray/master/image/qris-givpn.jpg) 9 | DigitalOcean Referral Badge 10 | 11 |

12 | 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 | --------------------------------------------------------------------------------