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

NAME

4     RADIFF2 — unified binary diffing utility
5

SYNOPSIS

7     radiff2 [-AabcCdDhOrspxXvzZ] [-t 0-100] [-i i,s] [-g sym] [-S algo] file1
8             file2
9

DESCRIPTION

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

SEE ALSO

83     radare2(1)
84

AUTHORS

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