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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shell2http-1.8.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-1.8.tar.gz
Algorithm Hash digest
SHA256 dcadd683614c0dbd436479275109c5000f756829a3098bc1d81f639560388a20
MD5 42d2b22d497846dd8528c2d3cf022a9a
BLAKE2b-256 170e2f96a7c3de118d4fed81ac0476384234c5c0d7fe725dd108a61c67569b04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shell2http-1.8-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-1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e875a3fde1f742569e6b43c99e3663a30993e4439017eb80e4ce4218c67d6d72
MD5 9ab50f44957e60701a71d45b768337f6
BLAKE2b-256 1dbb69a49e2f0dc29deb975ae09667f071054c7a5ac4d8ee589d0f69279bc4cc

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