metadata
title: Kali Remote Shell
emoji: π
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
π Kali Remote Shell (HF Spaces Edition)
A high-performance, secure Remote Shell server based on Kali Linux, specifically optimized for Hugging Face Spaces. It provides a full interactive terminal, file management, and process monitoring with a built-in web UI.
π Features
- Full Interactive Terminal: WebSocket-based PTY with
xterm.jssupport. - Kali Linux Headless: Pre-installed with core pentesting tools (nmap, masscan, sqlmap, ffuf, etc.).
- Session Isolation: Each agent/user gets a dedicated isolated workspace in
/tmp/remote-shell/<session_id>. - File Manager: Upload, download, read, write, and even extract ZIP files directly via API/UI.
- Process Monitor: Real-time process tree visualization and management.
- Security: Bearer token authentication and path-traversal protection.
π οΈ Deployment on HF Spaces
- Create a new Docker Space.
- Upload the following files:
server.py,Dockerfile, and thestatic/directory. - Configure Secrets in Space Settings:
API_TOKEN: Your custom access token.
- Open the Space URL and start hacking!
π‘ API Overview
| Endpoint | Method | Description |
|---|---|---|
/ws/terminal |
WS |
Full interactive terminal |
/exec |
GET |
Execute command and stream output |
/files |
GET |
List files (session-aware) |
/files/upload-zip |
POST |
Upload and extract ZIP to workspace |
/processes |
GET |
Get hierarchical process tree |
π‘οΈ Security Note
This tool is designed for security research and authorized testing only. When running on Hugging Face Spaces, it operates within a secure sandbox environment. Always set a strong API_TOKEN to prevent unauthorized access.
Built with β€οΈ for the security community.