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

NAME

4     RADIFF2 — unified binary diffing utility
5

SYNOPSIS

7     radiff2 [-AabcCdDhOrspxvz] [-t 0-100] [-g sym] [-S algo] file1 file2
8

DESCRIPTION

10     radiff2 implements many binary diffing algorithms for data and code.
11
12     -A          Analyze binary after loading it with RCore (see -C) and use
13                 -AA to run aaaa instead of aaa.
14
15     -a          Specify architecture (x86, arm, ..)
16
17     -b          Select register size bits for given arch
18
19     -B          Binary output (GDIFF format)
20
21     -c          Count number of differences.
22
23     -e -[k=v]   Specify eval config vars for all RCore instances created.
24
25     -C          Code diffing using graphdiff algorithm. Output columns are:
26                 file-a-address, percentage of most similar function in B file
27                 | file-b-address. (Use with -A to analyze the binaries to
28                 find more functions)
29
30     -d          Use delta diffing (slower).
31
32     -D          Show disasm instead of hexpairs (honors -a arch and -b bits)
33
34     -g sym | off1,off2
35                 Graph diff output of given symbol, or between two functions,
36                 at given offsets: one for each binary.
37
38     -h          Show usage help message.
39
40     -i          Compare the list of imports
41
42     -n          Suppress address names (show only addresses) when code diff‐
43                 ing.
44
45     -O          Do code diffing with all bytes instead of just the fixed
46                 opcode bytes
47
48     -p          Use physical addressing (io.va=0)
49
50     -q          Quiet mode: disable colors and reduce output
51
52     -r          Output in radare commands as a binary patch.
53
54     -x          Show two column hexdump diffing.
55
56     -s          Calculate text distance from two files.
57
58     -ss         Same as before but using the Levenstein algorithm (faster but
59                 sometimes buggy)
60
61     -S [name, namelen, dist, size, ...]
62                 Specify which column of the code diffing algo use for diffing
63
64     -t 0-100    Choose matching threshold for binary code diffing
65
66     -u          Unified diff output
67
68     -U          Unified diff output using system´s diff program
69
70     -v          Show version information.
71
72     -V          Be verbose sometimes
73
74     -z          Perform diff on extracted strings
75

SEE ALSO

77     radare2(1), rafind2(1), rahash2(1), rabin2(1), rasm2(1), ragg2(1),
78     rarun2(1), rax2(1),
79

AUTHORS

81     pancake <pancake@nopcode.org>
82
83                                 Feb 10, 2018
Impressum