Hexdump to c array: xxd -i filename http://www.technovelty.org/linux/tips/hexdump.html
xxd -i filename
Send binary packet echo 'A7CC00004A3A0000010001335438000148E9F57B6399' | xxd -r -p | nc localhost 1920 echo -n $'\xa5\x10\x00\x01\x00\x00\x2e\xfc\x00\x00\x57\xbe\x01\x33\x54\x2f\x00\x03\x82\xd4\x41\x09\x02\xe3\xda\x37\x00\xf2\x76\xc3\x00\x01\x01\x0b\x00\x00\x00\x9b\x00\x5b\x00\x7d\x12\x00\xec\x0b\x9c\x0d' >/dev/udp/localhost/1818
echo 'A7CC00004A3A0000010001335438000148E9F57B6399' | xxd -r -p | nc localhost 1920
echo -n $'\xa5\x10\x00\x01\x00\x00\x2e\xfc\x00\x00\x57\xbe\x01\x33\x54\x2f\x00\x03\x82\xd4\x41\x09\x02\xe3\xda\x37\x00\xf2\x76\xc3\x00\x01\x01\x0b\x00\x00\x00\x9b\x00\x5b\x00\x7d\x12\x00\xec\x0b\x9c\x0d' >/dev/udp/localhost/1818
There was an error while loading. Please reload this page.