Skip to main content

Executing shell commands via HTTP server

Project description

Python PyPI

shell2http

HTTP-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.

Usage

shell2http [options] ["shell command" for /] /path "shell command" /path2 "shell command2" ...
options:
    -p, --port NNNN : port for http server ( default 8080 )

Install

pip install shell2http

Examples

Windows

shell2http 'shutdown -s -t 0'
shell2http 'shutdown -s -t 0' /beep 'echo ^G'
shell2http --port 3306 /beep 'powershell -command [Console]::Beep(440,2000)'

Linux

shell2http 'notify-send Hello root'
shell2http -p3000 'notify-send Hello root' /path 'canberra-gtk-play -i desktop-login'
shell2http -p3000 /path 'canberra-gtk-play -i desktop-login'

Acknowledgements

https://github.com/msoap/shell2http

https://github.com/eshaan7/Flask-Shell2HTTP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shell2http-2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

shell2http-2.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file shell2http-2.0.tar.gz.

File metadata

  • Download URL: shell2http-2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for shell2http-2.0.tar.gz
Algorithm Hash digest
SHA256 4c6c23054d180294cfd9c22b268248bd3c9da817c3782262a86a990d06656e01
MD5 04623123891a25525dbe1d75c4d9a6ea
BLAKE2b-256 388485227f2ab46c4b82798be93960aa0a8a7b38bc932e9c03c031ac01da62a9

See more details on using hashes here.

File details

Details for the file shell2http-2.0-py3-none-any.whl.

File metadata

  • Download URL: shell2http-2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for shell2http-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a5fa623d680da977624181d4867c2e0974603965385087b220f162d53a9a94a
MD5 4d2dfcd67ad3ae552249462e6e5c09c0
BLAKE2b-256 6692a44a4cad637a86e4679f3404aecca98fb081f7fd9241db1848169460c171

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page