mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-22 16:26:28 -05:00
439 B
439 B
title | date | draft | tags | |
---|---|---|---|---|
TCP/UDP with Bash | 2020-05-25T23:10:15-04:00 | false |
|
The bash shell contains pseudo-devices to send packets with TCP/UDP. The pseudo files are formatted like the following:
dev/tcp/HOST/PORT
/dev/udp/HOST/PORT
To send a UDP packet to localhost:6300
containing the payload "Hello, World.", we would run the following command:
echo "Hello, World." > /dev/udp/127.0.0.1/6300