I have an encoded binary given as a long string of ascii, hex escape sequences, and null escape sequences. How can I convert it back into a binary?
sample:
Res\x01\x0c\0\0\0\x12\xff\x88\x01\x01\xfccave\x02>\0\x01\x03EOF\0");
The solutions i've tried are: Convert hex to binary https://unix.stackexchange.com/questions/352569/converting-from-binary-to-hex-and-back
They either can't account for ascii, or escaped null chars.