websock.sh 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #!/bin/bash
  2. cd
  3. figlet -f slant Install WS | lolcat
  4. # Install Template
  5. wget -q -O /usr/local/bin/ws-drop "https://raw.githubusercontent.com/Dork96/Final/main/ws-dropbear.py"
  6. wget -q -O /usr/local/bin/ws-openssh "https://raw.githubusercontent.com/Dork96/Final/main/ws-openssh.py"
  7. wget -q -O /usr/local/bin/ws-ovpn "https://raw.githubusercontent.com/Dork96/Final/main/ws-ovpn.py"
  8. wget -q -O /usr/local/bin/ws-tls "https://raw.githubusercontent.com/Dork96/Final/main/ws-tls.py"
  9. chmod +x /usr/local/bin/ws-dropbear
  10. chmod +x /usr/local/bin/ws-openssh
  11. chmod +x /usr/local/bin/ws-ovpn
  12. chmod +x /usr/local/bin/ws-tls
  13. echo -e "Configurating CDN" | lolcat
  14. # Dropbear
  15. cat > /etc/systemd/system/ws-dropbear.service << END
  16. [Unit]
  17. Description=SSH Over CDN WS Dropbear
  18. Documentation=https://wuzzzssh.xyz
  19. After=network.target nss-lookup.target
  20. [Service]
  21. Type=simple
  22. User=root
  23. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  24. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  25. NoNewPrivileges=true
  26. ExecStart=/usr/bin/python -O /usr/local/bin/ws-dropbear
  27. Restart=on-failure
  28. [Install]
  29. WantedBy=multi-user.target
  30. END
  31. # OpenSSH
  32. cat > /etc/systemd/system/ws-openssh.service << END
  33. [Unit]
  34. Description=SSH Over CDN WS Dropbear
  35. Documentation=https://wuzzzssh.xyz
  36. After=network.target nss-lookup.target
  37. [Service]
  38. Type=simple
  39. User=root
  40. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  41. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  42. NoNewPrivileges=true
  43. ExecStart=/usr/bin/python -O /usr/local/bin/ws-openssh
  44. Restart=on-failure
  45. [Install]
  46. WantedBy=multi-user.target
  47. END
  48. # OpenVPN
  49. cat > /etc/systemd/system/ws-openvpn.service << END
  50. [Unit]
  51. Description=SSH Over CDN WS OpenVPN
  52. Documentation=https://wuzzssh.xyz
  53. After=network.target nss-lookup.target
  54. [Service]
  55. Type=simple
  56. User=root
  57. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  58. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  59. NoNewPrivileges=true
  60. ExecStart=/usr/bin/python -O /usr/local/bin/ws-ovpn
  61. Restart=on-failure
  62. [Install]
  63. WantedBy=multi-user.target
  64. END
  65. # Stunnel
  66. cat > /etc/systemd/system/ws-stunnel.service << END
  67. [Unit]
  68. Description=SSH Over CDN WS Stunnel
  69. Documentation=https://wuzzzssh.xyz
  70. After=network.target nss-lookup.target
  71. [Service]
  72. Type=simple
  73. User=root
  74. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  75. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  76. NoNewPrivileges=true
  77. ExecStart=/usr/bin/python -O /usr/local/bin/ws-tls
  78. Restart=on-failure
  79. [Install]
  80. WantedBy=multi-user.target
  81. END
  82. # Exec Start
  83. systemctl daemon-reload
  84. # Activated
  85. systemctl enable ws-dropbear.service
  86. systemctl enable ws-openssh.service
  87. systemctl enable ws-openvpn.service
  88. systemctl enable ws-stunnel.service
  89. # Restart
  90. systemctl restart ws-dropbear.service
  91. systemctl restart ws-openssh.service
  92. systemctl restart ws-openvpn.service
  93. systemctl restart ws-stunnel.service
  94. #BadVPN WS
  95. wget https://github.com/ambrop72/badvpn/archive/master.zip
  96. unzip master.zip
  97. cd badvpn-master
  98. mkdir build
  99. cmake .. -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_UDPGW=1
  100. sudo make install
  101. # Install Module
  102. apt install dnsutils jq -y
  103. apt-get install net-tools -y
  104. apt-get install tcpdump -y
  105. apt-get install dsniff -y
  106. apt install grepcidr -y
  107. echo -e "Instaled Websocket Succes..."
  108. rm -f websock.sh