{"id":17442464,"url":"https://github.com/github30/shell2http","last_synced_at":"2025-04-19T09:51:12.156Z","repository":{"id":57748706,"uuid":"523872071","full_name":"GitHub30/shell2http","owner":"GitHub30","description":"Executing shell commands via HTTP server","archived":false,"fork":false,"pushed_at":"2023-01-03T09:03:34.000Z","size":52,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T03:55:55.310Z","etag":null,"topics":["executor","os-command-injection","popen","python","shell","shell2http","subprocess","webhook"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/shell2http/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitHub30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-11T21:20:59.000Z","updated_at":"2024-12-30T22:27:13.000Z","dependencies_parsed_at":"2023-02-01T05:46:08.474Z","dependency_job_id":null,"html_url":"https://github.com/GitHub30/shell2http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fshell2http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fshell2http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fshell2http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fshell2http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitHub30","download_url":"https://codeload.github.com/GitHub30/shell2http/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249667516,"owners_count":21308253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["executor","os-command-injection","popen","python","shell","shell2http","subprocess","webhook"],"created_at":"2024-10-17T16:06:19.250Z","updated_at":"2025-04-19T09:51:12.134Z","avatar_url":"https://github.com/GitHub30.png","language":"Python","readme":"[![Python](https://img.shields.io/pypi/pyversions/shell2http.svg)](https://badge.fury.io/py/shell2http)\n[![PyPI](https://badge.fury.io/py/shell2http.svg)](https://badge.fury.io/py/shell2http)\n\n# shell2http\nHTTP-server to execute shell commands. Designed for development, prototyping or remote control. Settings through two command line arguments, path and shell command. By default bind to :8080. with [shell2udp](https://github.com/GitHub30/shell2udp) it runs with minimal latency.\n\n# Usage\n\n```bash\nshell2http [-h] [-form] [-no-index] [-add-exit] [-output] [-sse] [-p PORT] [\"shell command\" for /] /path \"shell command\" /path2 \"shell command2\" ...\n\npositional arguments:\n  command\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -form                 parse query into environment vars\n  -no-index             do not generate index page\n  -add-exit             add /exit command\n  -output               send back output\n  -sse                  use Server Sent Events\n  -p PORT, --port PORT\n```\n\n# Install\n\n```bash\npip install shell2http\n```\n\n# Examples\n\n## Windows\n\nstop http server with `Ctrl` + `Pause/Break`\n\n```powershell\nshell2http \"shutdown -s -t 0\"\n```\n\n```powershell\nshell2http \"shutdown -s -t 0\" /beep \"powershell -c echo `a\"\n```\n\n```powershell\nshell2http --port 3306 /beep \"powershell -command [Console]::Beep(440,2000)\"\n```\n\nhttp://localhost:8080/form?from=10\u0026to=100\n\n```bash\nshell2http -output -form /form 'echo %v_from%, %v_to%'\n```\n\n## Linux\n\n```bash\nshell2http 'notify-send Hello root'\n```\n\n\n```bash\nshell2http -p3000 'notify-send Hello root' /path 'canberra-gtk-play -i desktop-login'\n```\n\n```bash\nshell2http -p3000 /path 'canberra-gtk-play -i desktop-login'\n```\n\n```bash\nshell2http -output /info 'uname -a'\n```\n\n```bash\nshell2http -output -sse /ping 'ping -c4 8.8.8.8'\n```\n\n```bash\nshell2http -add-exit pwd\n```\n\nhttp://localhost:8080/form?from=10\u0026to=100\n\n```bash\nshell2http -output -form /form 'echo $v_from, $v_to'\n```\n\nhtml sufix to endpoint will change header to \"text/html\":\n```bash\n# Ability to have server events and server simple html pages as clients\nshell2http -output -sse /serve_files_as.html \"cat LICENSE|sed 's/.*/\u003cpre\u003e\u0026\u003c\\/pre\u003e/'\"\n```\n\n# Acknowledgements\n\nhttps://github.com/msoap/shell2http\n\nhttps://github.com/eshaan7/Flask-Shell2HTTP\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub30%2Fshell2http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub30%2Fshell2http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub30%2Fshell2http/lists"}