menu 8.6 KB

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