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

NAME

4     RZDIFF — unified binary diffing utility
5

SYNOPSIS

7     rz-diff [-AabcCdDhOrspxXvzZ] [-t 0-100] [-g sym] [-S algo] file1 file2
8

DESCRIPTION

10     rz-diff implements many binary diffing algorithms for data and code.
11
12     -A          Analyze binary after loading it with RzCore (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     -C          Code diffing using graphdiff algorithm. Output columns are:
24                 file-a-address, percentage of most similar function in B file
25                 | file-b-address. (Use with -A to analyze the binaries to
26                 find more functions)
27
28     -d          Use delta diffing (slower).
29
30     -D          Show disasm instead of hexpairs (honors -a arch and -b bits)
31
32     -e -[k=v]   Specify eval config vars for all RzCore instances created.
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     -G -[cmd]   Run an rz command on every RzCore instance created
39
40     -h          Show usage help message.
41
42     -i          Compare the list of imports
43
44     -m -[mode]  Specify the graph output mode
45
46     -n          Suppress address names (show only addresses) when code diff‐
47                 ing.
48
49     -O          Do code diffing with opcode bytes only.
50
51     -p          Use physical addressing (io.va=0)
52
53     -q          Quiet mode: disable colors and reduce output
54
55     -r          Output in rizin commands as a binary patch.
56
57     -x          Show two column hexdump diffing.
58
59     -X          Show two column hexII diffing.
60
61     -s          Calculate text distance from two files.
62
63     -ss         Same as before but using the Levenstein algorithm (faster but
64                 sometimes buggy)
65
66     -S [name, namelen, dist, size, ...]
67                 Specify which column of the code diffing algo use for diffing
68
69     -t 0-100    Choose matching threshold for binary code diffing
70
71     -u          Unified diff output
72
73     -U          Unified diff output using system´s diff program
74
75     -v          Show version information.
76
77     -V          Be verbose sometimes
78
79     -z          Perform diff on extracted strings
80
81     -Z          Perform diff using zignatures instead of function list (NEW)
82

SEE ALSO

84     rizin(1), rz-find(1), rz-hash(1), rz-bin(1), rz-asm(1), rz-gg(1),
85     rz-run(1), rz-ax(1),
86

AUTHORS

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