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. with shell2udp it runs with minimal latency.

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.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shell2http-2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8ff62d59da25b979622bc1599159bfff40567eac8fd402109c962f06c5bdd965
MD5 581c6691243db041f85e63cbc917de5d
BLAKE2b-256 84b38aedc085dc5c5cbdfdbd16da194d6e78ea1e891cd4847c1f68ef6bc7e6bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shell2http-2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3619b000d70cea6afa0f2dcdfcb9a3b488b6ec20ffa3c27716c480d4b9cae87
MD5 7f9de3881e9b8e1329b5e77bebde6d9c
BLAKE2b-256 e8b158a587da710d3710b89347aa34fca274cacc40e698564897d68dcdea1c27

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