DEV Community

AMZYEI
AMZYEI

Posted on • Edited on

2 1 1 1 1

Charlex WebShell

Charlex-Webshell

Welcome to Charlex-Webshell — the ultimate hacker tool for secret control!

What’s inside?

  • Flask webshell with a secret, random URL (UUID) to stay hidden from prying eyes.
  • Powerful C2 server inside the Flask app, listening on port 5555, talking to clients with sneaky XOR encryption.
  • Smart client agent that connects back, runs your commands, and sends back the results.
  • Cool green-on-black terminal UI for that real hacker feel.

How to use

  1. Run the client agent on the target machine:
python client_agent.py
Enter fullscreen mode Exit fullscreen mode

(Change the IP in client_agent.py if needed)

  1. Start the webshell (with the C2 server):
python app.py
Enter fullscreen mode Exit fullscreen mode
  1. Open your browser and go to:
http://127.0.0.1:5555/<secret-uuid>
Enter fullscreen mode Exit fullscreen mode

(The secret UUID shows up in the console when you start the webshell)

  1. Pick your target client from the list, type commands, hit Enter, and watch the magic happen!

Important stuff

  • For authorized use only — don’t be a jerk.
  • Communication uses simple XOR encryption — not perfect, but sneaky.
  • The secret URL keeps you hidden.
  • Stay safe, stay smart.

Files

  • app.py — Flask webshell backend with built-in C2 server
  • client_agent.py — The little agent that does your bidding
  • templates/shell.html — The hacker-themed terminal UI
  • .gitignore — Stuff to ignore in git

License

Use it wisely.

How to compile the client agent

Want a standalone executable? Here’s how:

  1. Create and activate a Python virtual environment:
python3 -m venv venv
source venv/bin/activate
Enter fullscreen mode Exit fullscreen mode
  1. Upgrade pip and install PyInstaller:
pip install --upgrade pip
pip install pyinstaller
Enter fullscreen mode Exit fullscreen mode
  1. Compile the client agent script:
pyinstaller --onefile client_agent.py
Enter fullscreen mode Exit fullscreen mode
  1. Find your executable in the dist/ folder.

  2. When done, deactivate the virtual environment:

deactivate
Enter fullscreen mode Exit fullscreen mode

This replaces the old compile_client_agent.sh script.

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (0)

DevCycle image

Ship Faster, Stay Flexible.

DevCycle is the first feature flag platform with OpenFeature built-in to every open source SDK, designed to help developers ship faster while avoiding vendor-lock in.

Start shipping