Skip to main content

Python PyPI

shell2udp

UDP-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

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

Install

pip install shell2udp

Examples

Windows

shell2udp 'shutdown -s -t 0'
shell2udp 'shutdown -s -t 0' /beep "powershell -c echo `a"
shell2udp --port 3306 /beep 'powershell -command [Console]::Beep(440,2000)'

Dispatch

[System.Net.Sockets.UdpClient]::New().Send("", 0, "localhost", 8080)
[System.Net.Sockets.UdpClient]::New().Send([System.Text.Encoding]::UTF8.GetBytes("/beep"), 5, "localhost", 8080)
# [System.Text.Encoding]::UTF8.GetBytes("/beep").Length

Linux

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

Dispatch

echo > /dev/udp/localhost/8080
echo /path > /dev/udp/localhost/8080

Acknowledgements

https://github.com/msoap/shell2http

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

Metadata

Release files for shell2udp 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shell2udp 1.5
File Size Uploaded Provenance Actions
shell2udp-1.5.tar.gz 3.3 kB Without provenance Details for shell2udp-1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shell2udp 1.5
File Interpreter ABI Platform Actions
shell2udp-1.5-py3-none-any.whl Python 3 none any Details for shell2udp-1.5-py3-none-any.whl

Total release size: 7.0 kB

Release files / shell2udp-1.5.tar.gz

Download URL shell2udp-1.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9fe3815d47139116a0a55519018b5c40e4dd8c346bcd3fcca765f7b43c3249a6
BLAKE2b-256 checksum
How to use checksums
d615b952dbb9b17558ce0e89396e478cbb73dc853e513689a806db815b354f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / shell2udp-1.5-py3-none-any.whl

Download URL shell2udp-1.5-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b30cad3b506b1fc7f249f972133d8ce73d65ca263c92e87ab41a83150c9f2507
BLAKE2b-256 checksum
How to use checksums
b5a84a44f6ac671a7573889de039fcb639bb412c149f0097de0d8bf3b3fa4eea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for shell2udp 1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page