ws.sh 899 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Proxy For Edukasi & Imclass
  3. # ==============================
  4. #Getting Proxy Template
  5. wget https://raw.githubusercontent.com/Alamyazid/WS/main/usernew.sh
  6. chmod +x usernew.sh
  7. sudo rm -r /usr/bin/usernew
  8. sudo mv usernew.sh /usr/bin/usernew
  9. wget -q -O /usr/local/bin/edu-proxy https://raw.githubusercontent.com/Alamyazid/WS/main/ws.py
  10. chmod +x /usr/local/bin/edu-proxy
  11. # Installing Service
  12. cat > /etc/systemd/system/edu-proxy.service << END
  13. [Unit]
  14. Description=
  15. Documentation=
  16. After=network.target nss-lookup.target
  17. [Service]
  18. Type=simple
  19. User=root
  20. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  21. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  22. NoNewPrivileges=true
  23. ExecStart=/usr/bin/python -O /usr/local/bin/edu-proxy 8880
  24. Restart=on-failure
  25. [Install]
  26. WantedBy=multi-user.target
  27. END
  28. systemctl daemon-reload
  29. systemctl enable edu-proxy
  30. systemctl restart edu-proxy
  31. clear