ARY_Webshell: Build Your Own Browser-Based Linux Terminal

📅 Published April 3, 2026 ·red-teamtoolingpost-exploitationlinux

ARY_Webshell 🐚

Author: Made By Aryan Giri

A high-performance, secure, and mobile-responsive browser-based remote terminal system.

ARY_Webshell is a production-ready C program that allows you to access your Linux terminal via any web browser. It features a dual-server architecture (HTTP + WebSockets), session-based authentication, and a specialized UI designed for both Desktop and Mobile (Termux-style) usage.


✨ Features


🛠 Dependencies

Before compiling, install required development libraries:

Ubuntu / Debian / Kali / Parrot

sudo apt update
sudo apt install build-essential libwebsockets-dev libssl-dev

Alternative (Some Distros like Kali / Minimal setups)

sudo apt install build-essential libwebsocket libssl

Fedora

sudo dnf install libwebsockets-devel openssl-devel

Termux (Android)

apt update
apt install build-essential libwebsocket libssl

If gcc is missing, install it manually:

apt install gcc

🚀 Compilation & Usage

1. Configuration

Edit webshell_linux.c and modify the security configuration block:

const char *CONFIG_USERNAME = "admin";
const char *CONFIG_PASSWORD = "yourpassword";

const int CONFIG_HTTP_PORT = 5000;
const int CONFIG_WS_PORT = 7681;

const char *ALLOWED_IPS[] = { "*", NULL }; // Use specific IPs for better security

2. Compile

gcc webshell_linux.c -o ary_webshell -lwebsockets -lutil -lpthread

3. Run

./ary_webshell

4. Access

Open your browser:

http://your-ip-address:5000

Login using your configured credentials to access the terminal interface.


🖥️ Usage Tips

📱 Android Keyboard Recommendation

For a better mobile terminal experience, it is highly recommended to use Hacker's Keyboard:

https://f-droid.org/packages/org.pocketworkstation.pckeyboard/


🌐 Secure Remote Access (Recommended)

For safe remote access without exposing ports publicly, use Tailscale (Zero-Trust VPN):

This drastically reduces attack surface and aligns with modern zero-trust security models.


📂 File Structure

webshell_linux.c   # Core C source code
commands.log       # Auto-generated command logs (timestamps + PID)
README.md          # Documentation

⚠️ Security Warning


⚖️ Ethical & Legal Use

This tool is intended strictly for:

Not Allowed:

Using this tool outside legal and ethical boundaries is strictly discouraged.


👤 Credits


🔗 Source Code

GitHub Repository:

https://github.com/giriaryan694-a11y/Ary_WebShell/blob/main/webshell_linux.c