Skip to content

Instantly share code, notes, and snippets.

@sucotronic
Created September 18, 2013 14:28
Show Gist options
  • Save sucotronic/6609999 to your computer and use it in GitHub Desktop.
Save sucotronic/6609999 to your computer and use it in GitHub Desktop.
send raw bytes (have to bin hex) by UDP to an ip and port
#!/bin/bash
echo -n 022364018095 | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' | nc -4u -q1 -p5001 192.168.0.100 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment