1RADIFF2(1) BSD General Commands Manual RADIFF2(1)
2
4 RADIFF2 — unified binary diffing utility
5
7 radiff2 [-AabcCdDhOrspxXvzZ] [-t 0-100] [-g sym] [-S algo] file1 file2
8
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 opcode bytes only.
46
47 -p Use physical addressing (io.va=0)
48
49 -q Quiet mode: disable colors and reduce output
50
51 -r Output in radare commands as a binary patch.
52
53 -x Show two column hexdump diffing.
54
55 -X Show two column hexII diffing.
56
57 -s Compute edit distance (no substitution, Eugene W. Myers'
58 O(ND) diff algorithm) between two files.
59
60 -ss Compute Levenshtein edit distance (substitution is allowed,
61 O(N^2)) between two files.
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
81 radare2(1), rafind2(1), rahash2(1), rabin2(1), rasm2(1), ragg2(1),
82 rarun2(1), rax2(1),
83
85 pancake <pancake@nopcode.org>
86
87 Feb 10, 2018