VibeHunt
Back to browse

shell2http

Shell script based HTTP server.

Source

shell2http is a lightweight HTTP server that maps URL paths to shell commands. When a request matches a configured path, the server executes the associated command and returns its standard output as the HTTP response. The tool can be started with a minimal invocation—specifying one or more path‑command pairs—while additional options control host binding, port selection, SSL certificates, basic authentication, and logging.

The server supports form handling, allowing query parameters and uploaded files to be exposed as environment variables for the executed scripts. It can operate in CGI mode, export selected or all environment variables, enforce input validation with regular expressions, and configure caching, timeouts, and error handling such as returning a 500 status on non‑zero exit codes. Optional flags let users include stderr in the response, run commands in a single thread, or add a built‑in `/exit` endpoint.

Designed for development, prototyping, and remote control scenarios, shell2http runs on macOS, Linux, Windows, and Raspberry Pi, and is available packaged Homebrew, binary releases, Docker, and Snap. It provides a simple, script‑driven way to expose shell functionality over HTTP without requiring a full web framework.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps