Linux: Send Networkpackets from a shell

Hi,

the linux kernel has the ability to send simple network packets from a shell.

This sends a test message over udp port 515 to 10.254.10.10

michael@debdev ~ # echo "TEST MESSAGE" > /dev/udp/10.254.10.10/515

This also works for tcp.

michael@debdev ~ # echo "TEST MESSAGE" > /dev/tcp/10.254.10.10/80

Michael

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.