Git Product home page Git Product logo

shell2udp's Introduction

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

shell2udp's People

Contributors

github30 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.