trial.sh 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/bash
  2. red='\e[1;31m'
  3. green='\e[0;32m'
  4. NC='\e[0m'
  5. MYIP=$(wget -qO- icanhazip.com);
  6. echo "Script By geo"
  7. clear
  8. if [[ "$IP2" = "" ]]; then
  9. domain=$(cat /etc/v2ray/domain)
  10. else
  11. domain=$IP2
  12. fi
  13. IP=$(wget -qO- icanhazip.com);
  14. ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
  15. sqd="$(cat ~/log-install.txt | grep -w "Squid" | cut -d: -f2)"
  16. ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
  17. ovpn2="$(netstat -nlpu | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
  18. Login=trial`</dev/urandom tr -dc X-Z0-9 | head -c4`
  19. hari="1"
  20. Pass=1
  21. echo Ping Host
  22. echo Cek Hak Akses...
  23. sleep 0.5
  24. echo Permission Accepted
  25. clear
  26. sleep 0.5
  27. echo Membuat Akun: $Login
  28. sleep 0.5
  29. echo Setting Password: $Pass
  30. sleep 0.5
  31. clear
  32. useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
  33. exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
  34. created=`date -d "0 days" +"%d-%m-%Y"`
  35. echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
  36. echo -e ""
  37. echo -e "==============================="
  38. echo -e "Informasi SSH & OpenVPN"
  39. echo -e "==============================="
  40. echo -e "IP/Host : $IP"
  41. echo -e "Domain : ${domain}"
  42. echo -e "Username : $Login "
  43. echo -e "Password : $Pass"
  44. echo -e "==============================="
  45. echo -e "OpenSSH : 22"
  46. echo -e "Dropbear : 109, 143"
  47. echo -e "Ws None TLS : 2095"
  48. echo -e "Ws OVPN : 2082"
  49. echo -e "Ws TLS : 443"
  50. echo -e "SSL/TLS : 222, 777"
  51. echo -e "Port Squid : 3128, 8080"
  52. echo -e "Port TCP : 1194"
  53. echo -e "Port UDP : 2200"
  54. echo -e "Port SSL : 442"
  55. echo -e "BadVpn : 7100-7300"
  56. echo -e "==============================="
  57. echo -e "PAYLOAD WS :"
  58. echo -e "GET / HTTP/1.1[crlf]Host: ${domain}[crlf]Upgrade: websocket[crlf][crlf]"
  59. echo -e "==============================="
  60. echo -e "Link Download Ovpn"
  61. echo -e "==============================="
  62. echo -e "http://$IP:81/client-tcp-$ovpn.ovpn"
  63. echo -e "http://$IP:81/client-udp-$ovpn2.ovpn"
  64. echo -e "http://$IP:81/client-tcp-ssl.ovpn"
  65. echo -e ""
  66. echo -e "==============================="
  67. echo -e "Created : $created"
  68. echo -e "Expired : $exp"
  69. echo -e "==============================="
  70. echo -e ""
  71. echo -e ""