🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

shell2udp

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shell2udp

Executing shell commands via UDP server

1.5
94

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Shell access

Supply chain risk

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Found 1 instance in 1 package

Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts