1RADIFF2(1)                BSD General Commands Manual               RADIFF2(1)
2

NAME

4     radiff2 — unified binary diffing utility
5

SYNOPSIS

7     radiff2 [-1AabcCdDhOrspxXvzZ] [-B baddr] [-G cmd] [-S algo] [-g sym]
8             [-i i,s] [-m graphmode] [-t 0-100] file1 file2
9

DESCRIPTION

11     radiff2 implements many binary diffing algorithms for data and code.
12
13     -1          Binary output (GDIFF format)
14
15     -A          Analyze binary after loading it with RCore (see -C) and use
16                 -AA to run aaaa instead of aaa.
17
18     -a          Specify architecture (x86, arm, ..)
19
20     -b          Select register size bits for given arch
21
22     -B baddr    Specify the base address to add to the offsets in the diff
23                 listings
24
25     -c          Count number of differences.
26
27     -e -[k=v]   Specify eval config vars for all RCore instances created.
28
29     -C          Code diffing using graphdiff algorithm. Output columns are:
30                 file-a-address, percentage of most similar function in B file
31                 | file-b-address. (Use with -A to analyze the binaries to
32                 find more functions)
33
34     -d          Use delta diffing (slower).
35
36     -D          Show disasm instead of hexpairs (honors -a arch and -b bits)
37
38     -g sym | off1,off2
39                 Graph diff output of given symbol, or between two functions,
40                 at given offsets: one for each binary.
41
42     -G [cmd]    Run given command after creating each core instance
43
44     -h          Show usage help message.
45
46     -i i, s, c, m, f
47                 Compare (i)mports, (s)ymbols, (c)lassnames, (m)ethods,
48                 (f)ields from given files (radiff2 -ii /bin/ls /bin/cat)
49
50     -j          Use JSON for output
51
52     -n          Suppress address names (show only addresses) when code diff‐
53                 ing.
54
55     -O          Do code diffing with opcode bytes only.
56
57     -m [graphmode]
58                 Specify the graph mode (i)nteractive, (k)ey-value, (j)son,
59                 (J)son2, (t)iny, (d)ot, (s)tar, (g)ml, (m)ermaid
60
61     -p          Use physical addressing (io.va=0)
62
63     -q          Quiet mode: disable colors and reduce output
64
65     -r          Output in radare commands as a binary patch.
66
67     -x          Show two column hexdump diffing.
68
69     -X          Show two column hexII diffing.
70
71     -s          Compute edit distance (no substitution, Eugene W. Myers'
72                 O(ND) diff algorithm) between two files.
73
74     -ss         Compute Levenshtein edit distance (substitution is allowed,
75                 O(N^2)) between two files.
76
77     -S [name, namelen, dist, size, ...]
78                 Specify which column of the code diffing algo use for diffing
79
80     -t 0-100    Choose matching threshold for binary code diffing
81
82     -u          Unified diff output
83
84     -U          Unified diff output using system´s diff program
85
86     -v          Show version information.
87
88     -V          Be verbose sometimes
89
90     -z          Perform diff on extracted strings
91
92     -Z          Perform diff using zignatures instead of function list (NEW)
93

SEE ALSO

95     radare2(1)
96

AUTHORS

98     pancake <pancake@nopcode.org>
99
100                                 Feb 10, 2018
Impressum