Timeline for Split binary data of fixed byte offset by byte position?
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Dec 30, 2016 at 14:23 | vote | accept | Léo Léopold Hertz 준영 | ||
| Jun 30, 2015 at 19:53 | comment | added | Léo Léopold Hertz 준영 | @mikeserv Situation is not ADC but CDA as you successfully described in your other comment. | |
| Jun 30, 2015 at 9:43 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
added 39 characters in body
|
| Jun 30, 2015 at 9:42 | comment | added | mikeserv |
Well, by my (brief) reading of it, I guess the ADC mode should be safe. Have you run strings -1 on the binary? You should get like increment\nletter\nincrement\nletter... most of the time...
|
|
| Jun 30, 2015 at 9:39 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
deleted 24 characters in body
|
| Jun 30, 2015 at 9:33 | comment | added | Léo Léopold Hertz 준영 | @mikeserv No. Data blocks are not here arbitrary. They are fixed. This is a much easier problem. Do you think for fixed sized data blocks you need to have buffers adjusted on the fly? | |
| Jun 30, 2015 at 9:31 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
correct!
|
| Jun 30, 2015 at 9:29 | comment | added | mikeserv |
Ok, you're doing the wrong thing entirely. You need to write a program - C or something - that can handle arbitrarily sized data blocks in a stream byte for byte and which can adjust its buffers on the fly. You're wasting your time w/ grep and similar here. The fafafa doesn't always mean fafafa - sometimes its a contextual delimiter and sometimes its data.
|
|
| Jun 30, 2015 at 9:21 | comment | added | Léo Léopold Hertz 준영 |
@mikeserv I added the link to specs in the body of the question and also a picture about a general format. Note I simplified the challenge for this question by only considering splitting by event trailers called fafafafa.
|
|
| Jun 30, 2015 at 9:14 | comment | added | mikeserv | There's no spec for the format or anything? If you're just reverse engineering then you're gonna keep encountering the unexpected until youn don't - back engineering is rarely easy. Else, if it's documented, then instead of handling outside data samples, try instead to create your own that some program which already understands to also understand yours. | |
| Jun 30, 2015 at 9:05 | comment | added | mikeserv | what is this data anyway? | |
| Jun 30, 2015 at 9:00 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
typos
|
| Jun 27, 2015 at 20:25 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
examples of data
|
| Jun 27, 2015 at 20:18 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
examples of data
|
| Jun 27, 2015 at 20:08 | history | edited | Léo Léopold Hertz 준영 | CC BY-SA 3.0 |
output to #3
|
| S Jun 27, 2015 at 16:06 | history | answered | Léo Léopold Hertz 준영 | CC BY-SA 3.0 | |
| S Jun 27, 2015 at 16:06 | history | made wiki | Post Made Community Wiki by Léo Léopold Hertz 준영 |