1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #!/bin/bash
- red='\e[1;31m'
- green='\e[0;32m'
- NC='\e[0m'
- MYIP=$(wget -qO- icanhazip.com);
- echo "Script By Geo"
- clear
- if [[ "$IP2" = "" ]]; then
- domain=$(cat /etc/v2ray/domain)
- else
- domain=$IP2
- fi
- read -p "Username : " Login
- read -p "Password : " Pass
- read -p "Expired (hari): " masaaktif
- IP=$(wget -qO- icanhazip.com);
- ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
- sqd="$(cat ~/log-install.txt | grep -w "Squid" | cut -d: -f2)"
- ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
- ovpn2="$(netstat -nlpu | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
- sleep 1
- echo Ping Host
- echo Cek Hak Akses...
- sleep 0.5
- echo Permission Accepted
- clear
- sleep 0.5
- echo Membuat Akun: $Login
- sleep 0.5
- echo Setting Password: $Pass
- sleep 0.5
- clear
- useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
- exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
- created=`date -d "0 days" +"%d-%m-%Y"`
- echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
- echo -e ""
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "SSH & OpenVPN Account Details"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "Host/IP : $IP"
- echo -e "Domain : ${domain}"
- echo -e "Username : $Login "
- echo -e "Password : $Pass"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "OpenSSH : 22"
- echo -e "Dropbear : 109, 143"
- echo -e "WS TLS : 2096"
- echo -e "WS non TLS : 2095"
- echo -e "WS OVPN : 2082"
- echo -e "SSL/TLS : 8443, 777"
- echo -e "Port Squid : 8080, 3128"
- echo -e "badvpn : 7100-7300"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "PAYLOAD WS-CDN :"
- echo -e "GET / HTTP/1.1[crlf]Host: ${domain}[crlf]Upgrade: websocket[crlf][crlf]"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "Link Download Ovpn"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "http://${domain}:81/client-tcp-$ovpn.ovpn"
- echo -e "http://${domain}:81/client-udp-$ovpn2.ovpn"
- echo -e "http://${domain}:81/client-tcp-ssl.ovpn"
- echo -e ""
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e "Created : $created"
- echo -e "Expired : $exp"
- echo -e "━━━━━━━━━━━━━━━━━━"
- echo -e ""
- echo -e "Script By @sampiiiiu"
- echo -e ""
|