-
Notifications
You must be signed in to change notification settings - Fork 0
bash_tips
peterzos edited this page Mar 2, 2016
·
2 revisions
Hexdump to c array:
xxd -i filename
http://www.technovelty.org/linux/tips/hexdump.html
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