My iPhone is jail broken with full terminal support. I need something (that isn't cmp
or diff
) to compare app binaries. Both those commands give me weird results, they basically say that both binaries are completely different, when I can see and know that only one byte has been changed.
Asked
Active
Viewed 392 times
0

unwind
- 391,730
- 64
- 469
- 606

Lewis Denny
- 659
- 3
- 8
- 19
-
did you try this? http://stackoverflow.com/a/8387711/612920 – Mansuro Dec 07 '11 at 09:57
-
yes ^^ "(that isn't cmp or diff) to compare app binaries. Both those commands give me weird results"^^ – Lewis Denny Dec 07 '11 at 22:56
1 Answers
0
If it's possible to build it for the iPhone, you could try bsdiff, it's a diff-like utility that is specifically designed to handle binary data. The tools you mention are meant for textual input when it comes to finding differences.
Failing that, you could try generating a brutally bloated textual representation, with a single byte per line (and no line number or offset!), and then text-diff
ing that. It should pick up the single changed byte, but depending on the sizes of the files it might be very slow and/or unwieldy.

unwind
- 391,730
- 64
- 469
- 606
-
ok awesome thank you, you gave me some great ideas and i wasn't aware of bsdiff. – Lewis Denny Dec 07 '11 at 22:47