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

NAME

4     RADIFF2 — unified binary diffing utility
5

SYNOPSIS

7     radiff2 [-1AabcCdDhOrspxXvzZ] [-t 0-100] [-B baddr] [-i i,s] [-g sym]
8             [-S algo] 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     -h          Show usage help message.
43
44     -i i, s     Compare imports or symbols from given files (radiff2 -ii
45                 /bin/ls /bin/cat)
46
47     -n          Suppress address names (show only addresses) when code diff‐
48                 ing.
49
50     -O          Do code diffing with opcode bytes only.
51
52     -p          Use physical addressing (io.va=0)
53
54     -q          Quiet mode: disable colors and reduce output
55
56     -r          Output in radare commands as a binary patch.
57
58     -x          Show two column hexdump diffing.
59
60     -X          Show two column hexII diffing.
61
62     -s          Compute edit distance (no substitution, Eugene W. Myers'
63                 O(ND) diff algorithm) between two files.
64
65     -ss         Compute Levenshtein edit distance (substitution is allowed,
66                 O(N^2)) between two files.
67
68     -S [name, namelen, dist, size, ...]
69                 Specify which column of the code diffing algo use for diffing
70
71     -t 0-100    Choose matching threshold for binary code diffing
72
73     -u          Unified diff output
74
75     -U          Unified diff output using system´s diff program
76
77     -v          Show version information.
78
79     -V          Be verbose sometimes
80
81     -z          Perform diff on extracted strings
82
83     -Z          Perform diff using zignatures instead of function list (NEW)
84

SEE ALSO

86     radare2(1)
87

AUTHORS

89     pancake <pancake@nopcode.org>
90
91                                 Feb 10, 2018
Impressum