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

NAME

4     RADIFF2 — unified binary diffing utility
5

SYNOPSIS

7     radiff2 [-AabcCdDhOrspxXvzZ] [-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     -X          Show two column hexII diffing.
57
58     -s          Calculate text distance from two files.
59
60     -ss         Same as before but using the Levenstein algorithm (faster but
61                 sometimes buggy)
62
63     -S [name, namelen, dist, size, ...]
64                 Specify which column of the code diffing algo use for diffing
65
66     -t 0-100    Choose matching threshold for binary code diffing
67
68     -u          Unified diff output
69
70     -U          Unified diff output using system´s diff program
71
72     -v          Show version information.
73
74     -V          Be verbose sometimes
75
76     -z          Perform diff on extracted strings
77
78     -Z          Perform diff using zignatures instead of function list (NEW)
79

SEE ALSO

81     radare2(1), rafind2(1), rahash2(1), rabin2(1), rasm2(1), ragg2(1),
82     rarun2(1), rax2(1),
83

AUTHORS

85     pancake <pancake@nopcode.org>
86
87                                 Feb 10, 2018
Impressum