menu 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. #!/bin/bash
  2. clear
  3. TEXT='\033[30;107;2m'
  4. INFO='\033[97;44m'
  5. WARNING='\033[97;43m'
  6. ERROR='\033[97;41m'
  7. SUCCESS='\033[97;42m'
  8. GREEN='\033[92m'
  9. YELLOW='\033[93m'
  10. RESET='\033[0m'
  11. if [ "${EUID}" -ne 0 ]; then
  12. echo -e "${ERROR} RALAT ${RESET}${TEXT} Anda perlu menjalankan skrip ini sebagai root! ${RESET}"; exit 1
  13. fi
  14. echo
  15. echo -e "${TEXT} DROPBEAR & OPENVPN ${RESET}"
  16. echo
  17. echo -e "[01] ${GREEN}trial${RESET} - ${YELLOW}Buat akaun percubaan${RESET}"
  18. echo -e "[02] ${GREEN}create${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  19. echo -e "[03] ${GREEN}renew${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  20. echo -e "[04] ${GREEN}login${RESET} - ${YELLOW}Senarai pengguna log masuk${RESET}"
  21. echo -e "[05] ${GREEN}lists${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  22. echo -e "[06] ${GREEN}lock${RESET} - ${YELLOW}Kunci/Lumpuhkan akaun pengguna${RESET}"
  23. echo -e "[07] ${GREEN}unlock${RESET} - ${YELLOW}Buka kunci/Dayakan akaun pengguna${RESET}"
  24. echo -e "[08] ${GREEN}delete${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  25. echo
  26. echo -e "${TEXT} SHADOWSOCKS-LIBEV ${RESET}"
  27. echo
  28. echo -e "[09] ${GREEN}add-ss${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  29. echo -e "[10] ${GREEN}renew-ss${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  30. echo -e "[11] ${GREEN}list-ss${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  31. echo -e "[12] ${GREEN}enable-ss${RESET} - ${YELLOW}Buka kunci/Dayakan akaun pengguna${RESET}"
  32. echo -e "[13] ${GREEN}disable-ss${RESET} - ${YELLOW}Kunci/Lumpuhkan akaun pengguna${RESET}"
  33. echo -e "[14] ${GREEN}delete-ss${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  34. echo
  35. echo -e "${TEXT} V2RAY ${RESET}"
  36. echo
  37. echo -e "[15] ${GREEN}add-trojan${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  38. echo -e "[16] ${GREEN}renew-trojan${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  39. echo -e "[17] ${GREEN}list-trojan${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  40. echo -e "[18] ${GREEN}delete-trojan${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  41. echo
  42. echo -e "[19] ${GREEN}add-vless${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  43. echo -e "[20] ${GREEN}renew-vless${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  44. echo -e "[21] ${GREEN}list-vless${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  45. echo -e "[22] ${GREEN}delete-vless${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  46. echo
  47. echo -e "[23] ${GREEN}add-vmess${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  48. echo -e "[24] ${GREEN}renew-vmess${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  49. echo -e "[25] ${GREEN}list-vmess${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  50. echo -e "[26] ${GREEN}delete-vmess${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  51. echo
  52. echo -e "${TEXT} XRAY ${RESET}"
  53. echo
  54. echo -e "[27] ${GREEN}add-xray${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  55. echo -e "[28] ${GREEN}renew-xray${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  56. echo -e "[29] ${GREEN}list-xray${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  57. echo -e "[30] ${GREEN}delete-xray${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  58. echo
  59. echo -e "${TEXT} WIREGUARD ${RESET}"
  60. echo
  61. echo -e "[31] ${GREEN}add-wg${RESET} - ${YELLOW}Tambah akaun pengguna${RESET}"
  62. echo -e "[32] ${GREEN}renew-wg${RESET} - ${YELLOW}Perbaharui akaun pengguna${RESET}"
  63. echo -e "[33] ${GREEN}list-wg${RESET} - ${YELLOW}Senaraikan akaun pengguna${RESET}"
  64. echo -e "[34] ${GREEN}delete-wg${RESET} - ${YELLOW}Padam akaun pengguna${RESET}"
  65. echo
  66. echo -e "${TEXT} SERVICES ${RESET}"
  67. echo
  68. echo -e "[35] ${GREEN}dropbear${RESET} - ${YELLOW}Menu perkhidmatan Dropbear${RESET}"
  69. echo -e "[36] ${GREEN}openvpn${RESET} - ${YELLOW}Menu perkhidmatan OpenVPN${RESET}"
  70. echo -e "[37] ${GREEN}libev${RESET} - ${YELLOW}Menu perkhidmatan Shadowsocks${RESET}"
  71. echo -e "[38] ${GREEN}v2ray${RESET} - ${YELLOW}Menu perkhidmatan v2ray${RESET}"
  72. echo -e "[39] ${GREEN}xray${RESET} - ${YELLOW}Menu perkhidmatan xray${RESET}"
  73. echo -e "[40] ${GREEN}wireguard${RESET} - ${YELLOW}Menu perkhidmatan wireguard${RESET}"
  74. echo -e "[41] ${GREEN}websocket${RESET} - ${YELLOW}Menu perkhidmatan websocket${RESET}"
  75. echo -e "[42] ${GREEN}squid${RESET} - ${YELLOW}Menu perkhidmatan Squid3${RESET}"
  76. echo -e "[43] ${GREEN}stunnel${RESET} - ${YELLOW}Menu perkhidmatan Stunnel4${RESET}"
  77. echo
  78. echo -e "${TEXT} SERVER ${RESET}"
  79. echo
  80. echo -e "[44] ${GREEN}detail${RESET} - ${YELLOW}Tunjukkan perincian server${RESET}" # WARNING
  81. echo -e "[45] ${GREEN}tcpbbr${RESET} - ${YELLOW}Tweak Protocol TCP BBR${RESET}"
  82. echo -e "[46] ${GREEN}shaper${RESET} - ${YELLOW}Hadkan muat turun/muat naik${RESET}"
  83. echo -e "[47] ${GREEN}speedtest${RESET} - ${YELLOW}Uji kelajuan pelayan${RESET}"
  84. echo
  85. echo -e "${TEXT} ---------------------------------------------------------- ${RESET}"
  86. echo -e "${TEXT} Dicipta oleh Doctype, Dikuasakan oleh Cybertize. ${RESET}"
  87. echo -e "${TEXT} ========================================================== ${RESET}"
  88. echo
  89. read -p "Masukkan pilihan anda atau 'quit' untuk keluar: " _choice
  90. case $_choice in
  91. # sshd & openvpn
  92. 01 | trial)
  93. bash /usr/local/plugins/trial.sh
  94. ;;
  95. 02 | create)
  96. bash /usr/local/plugins/create.sh
  97. ;;
  98. 03 | renew)
  99. bash /usr/local/plugins/renew.sh
  100. ;;
  101. 04 | login)
  102. bash /usr/local/plugins/login.sh
  103. ;;
  104. 05 | lists)
  105. bash /usr/local/plugins/lists.sh
  106. ;;
  107. 06 | lock)
  108. bash /usr/local/plugins/lock.sh
  109. ;;
  110. 07 | unlock)
  111. bash /usr/local/plugins/unlock.sh
  112. ;;
  113. 08 | delete)
  114. bash /usr/local/plugins/delete.sh
  115. ;;
  116. # shadowsocks
  117. 09 | add-ss)
  118. bash /usr/local/plugins/add-ss.sh
  119. ;;
  120. 10 | renew-ss)
  121. bash /usr/local/plugins/renew-ss.sh
  122. ;;
  123. 11 | list-ss)
  124. bash /usr/local/plugins/lists-ss.sh
  125. ;;
  126. 12 | enable-ss)
  127. bash /usr/local/plugins/enable-ss.sh
  128. ;;
  129. 13 | disable-ss)
  130. bash /usr/local/plugins/disable-ss.sh
  131. ;;
  132. 14 | delete-ss)
  133. bash /usr/local/plugins/delete-ss.sh
  134. ;;
  135. # v2ray
  136. 15 | add-trojan)
  137. bash /usr/local/plugins/add-trojan.sh
  138. ;;
  139. 16 | renew-trojan)
  140. bash /usr/local/plugins/renew-trojan.sh
  141. ;;
  142. 17 | list-trojan)
  143. bash /usr/local/plugins/lists-trojan.sh
  144. ;;
  145. 18 | delete-trojan)
  146. bash /usr/local/plugins/delete-trojan.sh
  147. ;;
  148. 19 | add-vless)
  149. bash /usr/local/plugins/add-vless.sh
  150. ;;
  151. 20 | renew-vless)
  152. bash /usr/local/plugins/renew-vless.sh
  153. ;;
  154. 21 | list-vless)
  155. bash /usr/local/plugins/lists-vless.sh
  156. ;;
  157. 22 | delete-vless)
  158. bash /usr/local/plugins/delete-vless.sh
  159. ;;
  160. 23 | add-vmess)
  161. bash /usr/local/plugins/add-vmess.sh
  162. ;;
  163. 24 | renew-vmess)
  164. bash /usr/local/plugins/renew-vmess.sh
  165. ;;
  166. 25 | list-vmess)
  167. bash /usr/local/plugins/lists-vmess.sh
  168. ;;
  169. 26 | delete-vmess)
  170. bash /usr/local/plugins/delete-vmess.sh
  171. ;;
  172. # xray
  173. 27 | add-xray)
  174. bash /usr/local/plugins/add-xray.sh
  175. ;;
  176. 28 | renew-xray)
  177. bash /usr/local/plugins/renew-xray.sh
  178. ;;
  179. 29 | list-xray)
  180. bash /usr/local/plugins/lists-xray.sh
  181. ;;
  182. 30 | delete-xray)
  183. bash /usr/local/plugins/delete-xray.sh
  184. ;;
  185. # wireguard
  186. 31 | add-wg)
  187. bash /usr/local/plugins/add-wg.sh
  188. ;;
  189. 32 | renew-wg)
  190. bash /usr/local/plugins/renew-wg.sh
  191. ;;
  192. 33 | list-wg)
  193. bash /usr/local/plugins/lists-wg.sh
  194. ;;
  195. 34 | delete-wg)
  196. bash /usr/local/plugins/delete-wg.sh
  197. ;;
  198. # service
  199. 35 | dropbear)
  200. bash /usr/local/plugins/dropbear.sh
  201. ;;
  202. 36 | openvpn)
  203. bash /usr/local/plugins/openvpn.sh
  204. ;;
  205. 37 | libev)
  206. bash /usr/local/plugins/shadowsocks.sh
  207. ;;
  208. 38 | v2ray)
  209. bash /usr/local/plugins/v2ray.sh
  210. ;;
  211. 39 | x2ray)
  212. bash /usr/local/plugins/x2ray.sh
  213. ;;
  214. 40 | wireguard)
  215. bash /usr/local/plugins/wireguard.sh
  216. ;;
  217. 41 | websocket)
  218. bash /usr/local/plugins/websocket.sh
  219. ;;
  220. 42 | squid)
  221. bash /usr/local/plugins/squid.sh
  222. ;;
  223. 43 | stunnel)
  224. bash /usr/local/plugins/stunnel.sh # WARNING
  225. ;;
  226. # server
  227. 44 | detail)
  228. bash /usr/local/plugins/detail.sh # WARNING
  229. ;;
  230. 45 | tcpbbr)
  231. bash /usr/local/plugins/tcpbbr.sh
  232. ;;
  233. 46 | shaper)
  234. bash /usr/local/plugins/wondershaper.sh
  235. ;;
  236. 47 | speedtest)
  237. speedtest
  238. ;;
  239. 00|quit )
  240. clear; exit 0
  241. ;;
  242. * )
  243. echo
  244. echo -e "${ERROR} RALAT ${RESET}${TEXT} Pilihan tidak sah! ${RESET}"
  245. echo
  246. menu
  247. ;;
  248. esac