2
I have three binary files (memory dumps). Call them file1
, file2
, file3
.
I'm trying to debug some software, and I'm toggling a switch.
file1
= switch offfile2
= switch onfile3
= switch off
I need to know which bytes changed between file1
and file2
, which then also changed back to the same values (as file1
) in file3
.
There are a lot of unrelated changes between file1
, file2
so that diff
alone is not enough for me to determine what is changing when I toggle this switch, I'm trying to identify the unique bytes of entropy that change from file1
,2
,3
,…
I know there are tools such as xxd
, diff
, vimdiff
, colordiff
. I'm just not sure how best to use them for this problem.
1"
diff
alone is not enough" – General note: tools that work with text (lines) cannot handle binary (i.e. non-text) input nicely. Even if they can in some cases, their output may not be what you expect. – Kamil Maciorowski – 2019-06-25T00:33:32.777Possible duplicate of How do I compare binary files in Linux?
– Scott – 2019-06-25T00:33:52.0001
Possible duplicate of Three way binary comparison for savegame hacking. Unfortunately, the only answer is a program that’s not free ($30 through $60, depending).
– Scott – 2019-06-25T00:33:54.737Possible duplicate of diff for multiple files.
– Scott – 2019-06-25T00:33:57.213I don’t fully understand what you want. Can you give an example? It should be long enough to illustrate all the aspects that are important, but short enough to be comprehensible. See this for some guidance.
– Scott – 2019-06-25T00:34:23.163I can't think of a tool for this; the quickest way would be to write a real small program that does it (couple of dozen lines at most). – dirkt – 2019-06-25T07:28:19.800