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

Leave a Reply Cancel reply