#!/bin/bash
if [ "${EUID}" -ne 0 ]; then
		echo "You need to run this script as root"
		exit 1
fi
if [ "$(systemd-detect-virt)" == "openvz" ]; then
		echo "OpenVZ is not supported"
		exit 1
fi
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
MYIP=$(wget -qO- ifconfig.me/ip);
clear
echo "Starting Update ..." | lolcat
# update
cd /usr/bin

wget -O menu "https://notabug.org/irwanmohi/premium/raw/main/3/menu.sh"
wget -O l2tp "https://notabug.org/irwanmohi/premium/raw/main/3/l2tp.sh"
wget -O ssh "https://notabug.org/irwanmohi/premium/raw/main/3/ssh.sh"
wget -O ssssr "https://notabug.org/irwanmohi/premium/raw/main/3/ssssr.sh"
wget -O sstpp "https://notabug.org/irwanmohi/premium/raw/main/3/sstpp.sh"
wget -O trojaan "https://notabug.org/irwanmohi/premium/raw/main/3/trojaan.sh"
wget -O trojanGO "https://notabug.org/irwanmohi/premium/raw/main/3/trojanGO.sh"
wget -O v2raay "https://notabug.org/irwanmohi/premium/raw/main/3/v2raay.sh"
wget -O wgr "https://notabug.org/irwanmohi/premium/raw/main/3/wgr.sh"
wget -O vleess "https://notabug.org/irwanmohi/premium/raw/main/3/vleess.sh"
wget -O bbr "https://notabug.org/irwanmohi/premium/raw/main/3/bbr.sh"
wget -O bannerku "https://notabug.org/irwanmohi/premium/raw/main/3/bannerku"
wget -O add-host "https://notabug.org/irwanmohi/premium/raw/main/1/add-host.sh"
wget -O about "https://notabug.org/irwanmohi/premium/raw/main/1/about.sh"
wget -O usernew "https://notabug.org/irwanmohi/premium/raw/main/1/usernew.sh"
wget -O trial "https://notabug.org/irwanmohi/premium/raw/main/1/trial.sh"
wget -O hapus "https://notabug.org/irwanmohi/premium/raw/main/1/hapus.sh"
wget -O member "https://notabug.org/irwanmohi/premium/raw/main/1/member.sh"
wget -O delete "https://notabug.org/irwanmohi/premium/raw/main/1/delete.sh"
wget -O cek "https://notabug.org/irwanmohi/premium/raw/main/1/cek.sh"
wget -O restart "https://notabug.org/irwanmohi/premium/raw/main/1/restart.sh"
wget -O speedtest "https://notabug.org/irwanmohi/premium/raw/main/1/speedtest_cli.py"
wget -O info "https://notabug.org/irwanmohi/premium/raw/main/1/info.sh"
wget -O ram "https://notabug.org/irwanmohi/premium/raw/main/1/ram.sh"
wget -O renew "https://notabug.org/irwanmohi/premium/raw/main/1/renew.sh"
wget -O autokill "https://notabug.org/irwanmohi/premium/raw/main/1/autokill.sh"
wget -O ceklim "https://notabug.org/irwanmohi/premium/raw/main/1/ceklim.sh"
wget -O tendang "https://notabug.org/irwanmohi/premium/raw/main/1/tendang.sh"
wget -O clear-log "https://notabug.org/irwanmohi/premium/raw/main/1/clear-log.sh"
wget -O change-port "https://notabug.org/irwanmohi/premium/raw/main/1/change.sh"
wget -O port-ovpn "https://notabug.org/irwanmohi/premium/raw/main/1/port-ovpn.sh"
wget -O port-ssl "https://notabug.org/irwanmohi/premium/raw/main/1/port-ssl.sh"
wget -O port-wg "https://notabug.org/irwanmohi/premium/raw/main/2/ipvps"
wget -O port-tr "https://notabug.org/irwanmohi/premium/raw/main/1/port-tr.sh"
wget -O port-sstp "https://notabug.org/irwanmohi/premium/raw/main/1/port-sstp.sh"
wget -O port-squid "https://notabug.org/irwanmohi/premium/raw/main/1/port-squid.sh"
wget -O port-ws "https://notabug.org/irwanmohi/premium/raw/main/1/port-ws.sh"
wget -O port-vless "https://notabug.org/irwanmohi/premium/raw/main/1/port-vless.sh"
wget -O wbmn "https://notabug.org/irwanmohi/premium/raw/main/1/webmin.sh"
wget -O xp "https://notabug.org/irwanmohi/premium/raw/main/1/xp.sh"
wget -O swap "https://notabug.org/irwanmohi/premium/raw/main/1/swapkvm.sh"
wget -O user-limit "https://notabug.org/irwanmohi/premium/raw/main/1/user-limit.sh"
wget -O auto-reboot "https://notabug.org/irwanmohi/premium/raw/main/1/auto-reboot.sh"
wget -O running "https://notabug.org/irwanmohi/premium/raw/main/3/running.sh"
wget -O update "https://notabug.org/irwanmohi/premium/raw/main/2/update.sh"
wget -O cfd "https://notabug.org/irwanmohi/premium/raw/main/1/cfd.sh"
wget -O cff "https://notabug.org/irwanmohi/premium/raw/main/1/cff.sh"
wget -O cfh "https://notabug.org/irwanmohi/premium/raw/main/1/cfh.sh"
wget -O add-trgo "https://notabug.org/irwanmohi/premium/raw/main/3/add-trgo.sh"
wget -O xp-trgo "https://notabug.org/irwanmohi/premium/raw/main/3/xp-trgo.sh"
wget -O cek-trgo "https://notabug.org/irwanmohi/premium/raw/main/3/cek-trgo.sh"
wget -O renew-trgo "https://notabug.org/irwanmohi/premium/raw/main/3/renew-trgo.sh"
wget -O port-trgo "https://raw.githubusercontent.com/halluboys/xzvnct/main/update/port-trgo.sh"
wget -O del-trgo "https://raw.githubusercontent.com/halluboys/xzvnct/main/update/del-trgo"
wget -O add-ws "https://notabug.org/irwanmohi/premium/raw/main/1/add-ws.sh"
wget -O add-vless "https://notabug.org/irwanmohi/premium/raw/main/1/add-vless.sh"
wget -O add-tr "https://notabug.org/irwanmohi/premium/raw/main/1/add-tr.sh"
wget -O del-ws "https://notabug.org/irwanmohi/premium/raw/main/1/del-ws.sh"
wget -O del-vless "https://notabug.org/irwanmohi/premium/raw/main/1/del-vless.sh"
wget -O del-tr "https://notabug.org/irwanmohi/premium/raw/main/1/del-tr.sh"
wget -O cek-ws "https://notabug.org/irwanmohi/premium/raw/main/1/cek-ws.sh"
wget -O cek-vless "https://notabug.org/irwanmohi/premium/raw/main/1/cek-vless.sh"
wget -O cek-tr "https://notabug.org/irwanmohi/premium/raw/main/1/cek-tr.sh"
wget -O renew-ws "https://notabug.org/irwanmohi/premium/raw/main/1/renew-ws.sh"
wget -O renew-vless "https://notabug.org/irwanmohi/premium/raw/main/1/renew-vless.sh"
wget -O renew-tr "https://notabug.org/irwanmohi/premium/raw/main/1/renew-tr.sh"
wget -O add-l2tp "https://notabug.org/irwanmohi/premium/raw/main/1/add-l2tp.sh"
wget -O del-l2tp "https://notabug.org/irwanmohi/premium/raw/main/1/del-l2tp.sh"
wget -O add-pptp "https://notabug.org/irwanmohi/premium/raw/main/1/add-pptp.sh"
wget -O del-pptp "https://notabug.org/irwanmohi/premium/raw/main/1/del-pptp.sh"
wget -O cek-pptp "https://notabug.org/irwanmohi/premium/raw/main/1/cek-pptp.sh"
wget -O renew-pptp "https://notabug.org/irwanmohi/premium/raw/main/1/renew-pptp.sh"
wget -O renew-l2tp "https://notabug.org/irwanmohi/premium/raw/main/1/renew-l2tp.sh"
wget -O add-ss "https://notabug.org/irwanmohi/premium/raw/main/1/add-ss.sh"
wget -O del-ss "https://notabug.org/irwanmohi/premium/raw/main/1/del-ss.sh"
wget -O cek-ss "https://notabug.org/irwanmohi/premium/raw/main/1/cek-ss.sh"
wget -O renew-ss "https://notabug.org/irwanmohi/premium/raw/main/1/renew-ss.sh"
wget -O add-ssr "https://notabug.org/irwanmohi/premium/raw/main/1/add-ssr.sh"
wget -O del-ssr "https://notabug.org/irwanmohi/premium/raw/main/1/del-ssr.sh"
wget -O renew-ssr "https://notabug.org/irwanmohi/premium/raw/main/1/renew-ssr.sh"
wget -O add-wg "https://notabug.org/irwanmohi/premium/raw/main/1/add-wg.sh"
wget -O del-wg "https://notabug.org/irwanmohi/premium/raw/main/1/del-wg.sh"
wget -O cek-wg "https://notabug.org/irwanmohi/premium/raw/main/1/cek-wg.sh"
wget -O renew-wg "https://notabug.org/irwanmohi/premium/raw/main/1/renew-wg.sh"
wget -O bw "https://notabug.org/irwanmohi/premium/raw/main/2/bw.sh"
wget -O panel-domain "https://notabug.org/irwanmohi/premium/raw/main/2/panel-domain.sh"
wget -O resett "https://notabug.org/irwanmohi/premium/raw/main/2/resett.sh"

chmod +x menu
chmod +x l2tp
chmod +x ssh
chmod +x ssssr
chmod +x sstpp
chmod +x trojaan
chmod +x trojanGO
chmod +x v2raay
chmod +x wgr
chmod +x vleess
chmod +x bbr
chmod +x bannerku
chmod +x add-host
chmod +x usernew
chmod +x trial
chmod +x hapus
chmod +x member
chmod +x delete
chmod +x cek
chmod +x restart
chmod +x speedtest
chmod +x info
chmod +x about
chmod +x autokill
chmod +x tendang
chmod +x ceklim
chmod +x ram
chmod +x renew
chmod +x clear-log
chmod +x change-port
chmod +x port-ovpn
chmod +x port-ssl
chmod +x port-wg
chmod +x port-sstp
chmod +x port-tr
chmod +x port-squid
chmod +x port-ws
chmod +x port-vless
chmod +x wbmn
chmod +x xp
chmod +x swap
chmod +x auto-reboot
chmod +x running
chmod +x update
chmod +x cfd
chmod +x cff
chmod +x cfh
chmod +x add-trgo
chmod +x xp-trgo
chmod +x cek-trgo
chmod +x renew-trgo
chmod +x port-trgo
chmod +x del-trgo
chmod +x add-ws
chmod +x add-vless
chmod +x add-tr
chmod +x del-ws
chmod +x del-vless
chmod +x del-tr
chmod +x cek-ws
chmod +x cek-vless
chmod +x cek-tr
chmod +x renew-ws
chmod +x renew-vless
chmod +x renew-tr
chmod +x add-l2tp
chmod +x del-l2tp
chmod +x add-pptp
chmod +x del-pptp
chmod +x cek-pptp
chmod +x renew-pptp
chmod +x renew-l2tp
chmod +x add-ss
chmod +x del-ss
chmod +x cek-ss
chmod +x renew-ss
chmod +x add-ssr
chmod +x del-ssr
chmod +x renew-ssr
chmod +x add-wg
chmod +x del-wg
chmod +x cek-wg
chmod +x renew-wg
chmod +x bw
chmod +x panel-domain
chmod +x resett
sed -i -e 's/\r$//' add-l2tp
sed -i -e 's/\r$//' panel-domain
echo " Successfully Update :"
echo " - Fix minor Bugs"
echo " Reboot 5 Sec"
sleep 5
rm -f update.sh
reboot
