usernew.sh 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!/bin/bash
  2. read -p "Username : " Login
  3. read -p "Password : " Pass
  4. read -p "Expired (hari): " masaaktif
  5. IP=$(wget -qO- icanhazip.com);
  6. domain=$(cat /etc/v2ray/domain);
  7. IP=$(wget -qO- ipinfo.io/ip);
  8. ssl="$(cat ~/log-install.txt | grep -w "Stunnel4" | cut -d: -f2)"
  9. sqd="$(cat ~/log-install.txt | grep -w "Squid" | cut -d: -f2)"
  10. ovpn="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
  11. ovpn2="$(netstat -nlpu | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)"
  12. sleep 1
  13. echo Ping Host
  14. echo Cek Hak Akses...
  15. sleep 0.5
  16. echo Permission Accepted
  17. clear
  18. sleep 0.5
  19. echo Membuat Akun: $Login
  20. sleep 0.5
  21. echo Setting Password: $Pass
  22. sleep 0.5
  23. clear
  24. useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
  25. dibuat=$(date +"%b %C, %Y")
  26. exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')"
  27. echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
  28. echo -e ""
  29. echo -e "=================================="
  30. echo -e "Information SSH & OpenVPN Account " | lolcat
  31. echo -e "=================================="
  32. echo -e "Domain : $domain"
  33. echo -e "Host : $IP"
  34. echo -e "Username : $Login "
  35. echo -e "Password : $Pass"
  36. echo -e "=================================="
  37. echo -e "OpenSSH : 22"
  38. echo -e "Dropbear : 143,777"
  39. echo -e "SSL/TL : $ssl"
  40. echo -e "WS Dropbear : 8880"
  41. echo -e "WS OpenSSH : 2095"
  42. echo -e "WS OpenVPN : 2082"
  43. echo -e "WS TLS : 2088"
  44. echo -e "OHP OpenVPN : 8282"
  45. echo -e "OHP DropBear : 8181"
  46. echo -e "OHP OpenSSH : 8383"
  47. echo -e "Port Squid : $sqd"
  48. echo -e "OpenVPN TCP : http://$IP:81/client-tcp-$ovpn.ovpn"
  49. echo -e "OpenVPN UDP : http://$IP:81/client-udp-$ovpn2.ovpn"
  50. echo -e "OpenVPN SSL : http://$IP:81/client-tcp-ssl.ovpn"
  51. echo -e "OpenVPN OHP : http://$IP:81/tcp-ohp.ovpn"
  52. echo -e "Badvpn UDPGW : 7100, 7200, 7300"
  53. echo -e "================================"
  54. echo -e "Payload WebSocket"
  55. echo -e "GET / HTTP/1.1[crlf]Host: bug.com.$domain[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Upgrade: websocket[crlf][crlf]"
  56. echo -e "================================"
  57. echo -e "Payload WebSocket"
  58. echo -e "GET / HTTP/1.1[crlf]Host: bug.com.$domain[crlf]Upgrade: websocket[crlf][crlf]"
  59. echo -e "================================"
  60. echo -e "Payload WebSocket"
  61. echo -e "GET wss://bug.com/ HTTP/1.1[crlf]Host: bug.com.$domain[crlf]Upgrade: websocket[crlf]Connection: Keep-Alive[crlf][crlf]"
  62. echo -e "================================"
  63. echo -e "Http:Custom"
  64. echo -e "bug.com:8880@$Login:$Pass"
  65. echo -e "================================"
  66. echo -e "Active Days : $masaaktif Days"
  67. echo -e "Created On : $dibuat"
  68. echo -e "Expired On : $exp"
  69. echo -e "===================================="
  70. echo -e "Script Created By ONEPIECECREW" | lolcat
  71. echo -e ""