websocket.sh 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. red='\e[1;31m'
  3. green='\e[0;32m'
  4. NC='\e[0m'
  5. MYIP=$(wget -qO- ipinfo.io/ip);
  6. IZIN=$( curl https://raw.githubusercontent.com/SSHSEDANG4/kunci_script/main/iptext.sh | grep $MYIP )
  7. if [ $MYIP = $IZIN ]; then
  8. clear
  9. echo -e "${green} Please Wait, Proses...${NC}"
  10. sleep 5
  11. else
  12. echo "User premium Only ,Sila Contact Admin Bot😘"
  13. exit 0
  14. fi
  15. clear
  16. echo Installing Websocket-SSH AUTOSCRIPT BY BOTVPN
  17. sleep 1
  18. echo Cek Hak Akses...
  19. sleep 0.5
  20. cd
  21. cd /etc/systemd/system/
  22. #Install system auto run
  23. wget -O /etc/systemd/system/ws-ssh.service https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-ssh.service && chmod +x /etc/systemd/system/ws-ssh.service
  24. wget -O /etc/systemd/system/ws-dropbear.service https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-dropbear.service && chmod +x /etc/systemd/system/ws-dropbear.service
  25. wget -O /etc/systemd/system/ws-ovpn.service https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-ovpn.service && chmod +x /etc/systemd/system/ws-ovpn.service
  26. wget -O /etc/systemd/system/ws-stunnel.service https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-stunnel.service && chmod +x /etc/systemd/system/ws-stunnel.service
  27. #Install Websocket-SSH
  28. wget -O /usr/local/bin/ws-ssh https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-openssh.py && chmod +x /usr/local/bin/ws-ssh
  29. wget -O /usr/local/bin/ws-dropbear https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-dropbear.py && chmod +x /usr/local/bin/ws-dropbear
  30. wget -O /usr/local/bin/ws-ovpn https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-ovpn.py && chmod +x /usr/local/bin/ws-ovpn
  31. wget -O /usr/local/bin/ws-stunnel https://raw.githubusercontent.com/alifnurmareta/new_script/main/websocket/ws-tls.py && chmod +x /usr/local/bin/ws-stunnel
  32. #Enable, Start & Restart ws-ssh service
  33. systemctl enable ws-ssh.service
  34. systemctl start ws-ssh.service
  35. systemctl restart ws-ssh.service
  36. #Enable, Start & Restart ws-dropbear service
  37. systemctl enable ws-dropbear.service
  38. systemctl start ws-dropbear.service
  39. systemctl restart ws-dropbear.service
  40. #Enable, Start & Restart ws-ovpn service
  41. systemctl enable ws-ovpn.service
  42. systemctl start ws-ovpn.service
  43. systemctl restart ws-ovpn.service
  44. #Enable, Start & Restart ws-stunnel service
  45. systemctl enable ws-stunnel.service
  46. systemctl start ws-stunnel.service
  47. systemctl restart ws-stunnel.service