Skip to content

HYDRA-TERMUX/Tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Version Shell Platform Cloudflare

Stars Forks License YouTube


 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     
 β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘     
    β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘     
    β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘     
    β–ˆβ–ˆβ•‘   β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
    β•šβ•β•    β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β•šβ•β•  β•šβ•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•
         CODED BY HYDRA TERMUX  β€’  v1.0.0

Instantly expose your localhost to the internet using Cloudflare Tunnels β€” no account, no config, no port forwarding required.

πŸš€ Quick Start β€’ πŸ“Ί Video Demo β€’ ✨ Features β€’ πŸ“Έ Screenshots β€’ πŸ›  Installation β€’ πŸ“‹ Usage


πŸ“Ί Video Demo

HYDRA TERMUX Tunnel Demo

🎬 Click the thumbnail above to watch the full demo on YouTube
πŸ”” Subscribe to HYDRA TERMUX for more Termux & hacking tools


πŸ“Έ Screenshots

🎬 Animated Demo

HYDRA TERMUX Tunnel Demo

Full boot sequence β†’ menu β†’ live tunnel URL β€” generated automatically

πŸ“Œ Pro tip: Replace tunnel_demo.gif with a real recording using the included record_demo.sh script for a 1:1 authentic demo.


✨ Features

Feature Description
🌐 Zero Config Tunneling Expose localhost to a public HTTPS URL instantly via Cloudflare
🎭 URL Masking @-Trick masking to disguise your tunnel URL with a custom domain preview
πŸ€– Auto Dependency Install Detects and installs curl & unzip via pkg, apt, pacman, or dnf
πŸ“¦ Smart Cloudflared Installer Auto-detects CPU architecture (arm64, armv7, x86_64, i386) and downloads the right binary
⚑ Animated Boot Sequence Stylish ASCII art intro with progress bar and spinner animation
πŸŽ›οΈ Interactive Menu Clean terminal UI to start tunnel or change host/port on the fly
πŸ”„ Multi-Platform Support Works on Termux, Ubuntu, Debian, Arch, Fedora, and most Linux distros
πŸ›‘οΈ Safe Signal Handling Gracefully handles Ctrl+C and cleans up background processes

πŸš€ Quick Start

# 1. Clone the repository
git clone https://github.com/HYDRA-TERMUX/Tunnel.git

# 2. Navigate to the folder
cd tunnel

# 3. Give execute permission
chmod +x tunnel.sh

# 4. Run the tool
bash tunnel.sh

βœ… That's it! The script handles everything else automatically.


πŸ›  Installation

πŸ“± Termux (Android)

# Update packages
pkg update -y && pkg upgrade -y

# Install git
pkg install git -y

# Clone and run
git clone https://github.com/HYDRA-TERMUX/Tunnel.git
cd tunnel
bash tunnel.sh

🐧 Debian / Ubuntu / Kali Linux

sudo apt update && sudo apt install git curl unzip -y
git clone https://github.com/HYDRA-TERMUX/Tunnel.git
cd tunnel
bash tunnel.sh

🏴 Arch Linux / BlackArch

sudo pacman -S git curl unzip --noconfirm
git clone https://github.com/HYDRA-TERMUX/Tunnel.git
cd tunnel
bash tunnel.sh

🎩 Fedora / RedHat

sudo dnf install git curl unzip -y
git clone https://github.com/HYDRA-TERMUX/Tunnel.git
cd tunnel
bash tunnel.sh

πŸ“‹ Usage

Starting a Tunnel

 ════════════════════════════════════════
   TUNNEL  β€’  HYDRA TERMUX  β€’  v1.0.0
 ════════════════════════════════════════

 Host : 127.0.0.1   Port : 8080

 [1] Start Cloudflared Tunnel
 [2] Change Host / Port
 [0] Exit

 [-] Select: _
  1. Run bash tunnel.sh
  2. Select [1] to start the tunnel
  3. Wait for the public URL to appear
  4. (Optional) Add a custom mask domain when prompted

Changing Host & Port

Select [2] from the main menu to set a custom host/port:

# Default values
HOST = 127.0.0.1
PORT = 8080

# Example: expose a Flask app on port 5000
HOST = 127.0.0.1
PORT = 5000

URL Masking (@-Trick)

When your tunnel is live, the script will ask:

[?] Add @-Trick URL masking? [y/N]:

If you answer y, enter a domain like https://google.com.
Your masked link will look like:

https://google.com@abc123.trycloudflare.com

⚠️ The preview shows google.com but the real URL still appears in the browser address bar.


πŸ—‚ File Structure

tunnel/
β”œβ”€β”€ tunnel.sh           # Main script
β”œβ”€β”€ .server/
β”‚   β”œβ”€β”€ cloudflared     # Auto-downloaded Cloudflare binary
β”‚   └── .cld.log        # Tunnel process log (auto-created)
└── README.md

βš™οΈ How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    HOW TUNNEL WORKS                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Your App   β”‚  tunnel.sh runs  β”‚  Cloudflare Network   β”‚
β”‚              β”‚  cloudflared     β”‚                       β”‚
β”‚  localhost   β”‚ ──────────────►  β”‚  trycloudflare.com    β”‚
β”‚  :8080       β”‚   Secure Tunnel  β”‚  Public HTTPS URL     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Script downloads cloudflared binary for your CPU architecture
  2. Cloudflared creates an outbound-only encrypted tunnel to Cloudflare's edge
  3. Cloudflare assigns a random public *.trycloudflare.com subdomain
  4. Traffic flows: Internet β†’ Cloudflare Edge β†’ Tunnel β†’ Your localhost

πŸ”’ No inbound ports opened. No router config. Works behind NAT, CGNAT, and firewalls.


πŸ“¦ Requirements

Requirement Details
OS Linux, Android (Termux), WSL2
Shell Bash 4.0+
Network Internet connection
Packages curl, unzip (auto-installed if missing)
Binary cloudflared (auto-downloaded)

πŸ› Troubleshooting

❌ Tunnel URL not found after 60s
# Delete the cached binary and retry
rm -f .server/cloudflared
bash tunnel.sh

Check your internet connection and ensure port outbound 443 is not blocked.

❌ Permission denied
chmod +x tunnel.sh
bash tunnel.sh
❌ cloudflared binary fails on Termux

The script will automatically try installing via pkg install cloudflared. If that also fails, install manually:

pkg install cloudflared -y
❌ Script exits immediately

Make sure you're running with bash, not sh:

bash tunnel.sh   βœ…
sh tunnel.sh     ❌

πŸ“Ί Subscribe to HYDRA TERMUX

Subscribe

This tool is 100% free β€” but it runs on your support! πŸ™
If this saved you time, please Subscribe and hit the πŸ”” bell for more tools.


πŸ“œ License

MIT License β€” Free to use, modify, and distribute.
Credits to HYDRA TERMUX must be maintained.

⭐ Support the Project

If you found this useful, give it a ⭐ Star β€” it keeps the project alive!

Star History Chart


Made with πŸ’š by HYDRA TERMUX