Skip to content

Commit c47ee7d

Browse files
authored
Added TCP Brutal
1 parent 417ebe4 commit c47ee7d

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

menu.sh

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ update_core() {
1818
echo "Hysteria2 has been successfully updated."
1919
echo ""
2020
}
21+
# Function to install TCP Brutal
22+
install_tcp_brutal() {
23+
echo "Installing TCP Brutal..."
24+
bash <(curl -fsSL https://tcp.hy2.sh/)
25+
sleep 3
26+
clear
27+
echo "TCP Brutal installation complete."
28+
}
2129
# Function to change port
2230
change_port() {
2331
read -p "Enter the new port number you want to use: " port
@@ -143,25 +151,27 @@ uninstall_hysteria() {
143151
# Main menu
144152
main_menu() {
145153
clear
146-
echo "===== Hysteria2 Setup Menu ====="
154+
echo "===== Hysteria2 & TCP Brutal Setup Menu ====="
147155
echo "1. Install and Configure Hysteria2"
148156
echo "2. Update Hysteria2"
149-
echo "3. Change Port"
150-
echo "4. Show URI"
151-
echo "5. Check Traffic Status"
152-
echo "6. Uninstall Hysteria2"
153-
echo "7. Exit"
154-
echo "================================"
157+
echo "3. Install TCP Brutal"
158+
echo "4. Change Port (Hysteria2)"
159+
echo "5. Show URI (Hysteria2)"
160+
echo "6. Check Traffic Status (Hysteria2)"
161+
echo "7. Uninstall Hysteria2"
162+
echo "8. Exit"
163+
echo "============================================="
155164

156165
read -p "Enter your choice: " choice
157166
case $choice in
158167
1) install_and_configure ;;
159168
2) update_core ;;
160-
3) change_port ;;
161-
4) show_uri ;;
162-
5) traffic_status ;;
163-
6) uninstall_hysteria ;;
164-
7) exit 0 ;;
169+
3) install_tcp_brutal ;;
170+
4) change_port ;;
171+
5) show_uri ;;
172+
6) traffic_status ;;
173+
7) uninstall_hysteria ;;
174+
8) exit 0 ;;
165175
*) echo "Invalid option. Please try again." ;;
166176
esac
167177
read -p "Press any key to return to the menu..."

0 commit comments

Comments
 (0)