commit 01966418a4a13a9e4c70e6e69a802c5ae19b157e Author: penguinehis Date: Sat Oct 4 18:09:09 2025 -0300 Launch diff --git a/README.md b/README.md new file mode 100644 index 0000000..b71603f --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ + +## 🐉 DragonX - Fast Mult-Client Proxy + +### 📦 How to Install + +**Step-by-step:** + +```bash +git clone https://git.dr2.site/penguinehis/DragonX-SSH-Proxy.git +cd DragonX-SSH-Proxy +chmod +x * +./proxy.sh +``` + +After launching: + +1. Enter the **port** you want (e.g., `80`) and press **Enter**. +2. Type `start` and press **Enter** to run the proxy. + +Your proxy will now be active and accepting connections. + +--- + +## 🐉 DragonX - Proxy Rápido com Suporte Multi-Cliente + +### 📦 Como Instalar + +**Passo a passo:** + +```bash +git clone https://git.dr2.site/penguinehis/DragonX-SSH-Proxy.git +cd DragonX-SSH-Proxy +chmod +x * +./proxy.sh +``` + +Após iniciar: + +1. Digite a **porta** desejada (por exemplo: `80`) e pressione **Enter**. +2. Digite `start` e pressione **Enter** para iniciar o proxy. + +Seu proxy estará rodando e aceitando conexões. + +--- diff --git a/dragon_go-ARM b/dragon_go-ARM new file mode 100644 index 0000000..4e21e4d Binary files /dev/null and b/dragon_go-ARM differ diff --git a/dragon_go-x86 b/dragon_go-x86 new file mode 100644 index 0000000..6331112 Binary files /dev/null and b/dragon_go-x86 differ diff --git a/proxy.sh b/proxy.sh new file mode 100644 index 0000000..fd10f1a --- /dev/null +++ b/proxy.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +ARCH=$(uname -m) +case "$ARCH" in + x86_64|i386|i686) + PROXY_BIN="./dragon_go-x86" + ;; + aarch64|armv7l|armv6l|arm*) + PROXY_BIN="./dragon_go-ARM" + ;; + *) + echo "Unsupported architecture: $ARCH" + exit 1 + ;; +esac + +read -p "Enter proxy port (e.g. 80 or 443): " PORT +SESSION="proxy_${PORT}" + +read -p "Action (start/stop): " ACTION + +case "$ACTION" in + start) + screen -dmS "$SESSION" "$PROXY_BIN" -port ":${PORT}" + echo "→ Started proxy on port ${PORT} in screen session '${SESSION}'." + ;; + + stop) + screen -S "$SESSION" -X quit + echo "→ Stopped proxy on port ${PORT} (session '${SESSION}' closed)." + ;; + + *) + echo "Invalid action. Please run the script and enter 'start' or 'stop'." + exit 1 + ;; +esac