by Someone · 2y ago · 0 comments
> When we try and decrypt the on and off packets we get:
> 05 54 55 52 4E 01 00 00 00 00 00 00 00 00 00 00
> 05 54 55 52 4E 00 00 00 00 00 00 00 00 00 00 00
> 05 54 55 52 4E 01 00 00 00 00 00 00 00 00 00 00
> 05 54 55 52 4E 00 00 00 00 00 00 00 00 00 00 00
> 05 54 55 52 4E 01 00 00 00 00 00 00 00 00 00 00
> 05 54 55 52 4E 00 00 00 00 00 00 00 00 00 00 00
> Success! This is a lot more sensible. A fixed header, byte 5 switching between a 1 and a 0 for on and off, and a bunch of zeros.
I would guess that’s not a ‘fixed header’, but a length byte (“command is 5 bytes long”), a command (“TURN”) and an argument (zero or one), padded with zeroes to 16 bytes.
That knowledge is good for short strings, but the canonical hexdump format is a the best way to look at packet and memory dumps.
And the reason for the 0x20 difference is that the Shift key on old teletypes turned the 0x20 bit on and off.
In the same way the Control key turned the 0x40 bit off. So Ctrl-A = 0x01 = 'A'/0x41 - 0x40.
Anecdotally, earlier today I was trying to decipher Encarta data and came across the “Mind Maze” data and it’s mostly that - fixed 32-but header, question size, (answer size, answer, correct flag, something I haven’t figure out yet){4}. Then a separate file with an index value and an offset into the first file as well as a header I haven’t figured out yet.