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          Compute edit distance (no substitution, Eugene W. Myers'
62                 O(ND) diff algorithm) between two files.
63
64     -ss         Compute Levenshtein edit distance (substitution is allowed,
65                 O(N^2)) between two files.
66
67     -S [name, namelen, dist, size, ...]
68                 Specify which column of the code diffing algo use for diffing
69
70     -t 0-100    Choose matching threshold for binary code diffing
71
72     -u          Unified diff output
73
74     -U          Unified diff output using system´s diff program
75
76     -v          Show version information.
77
78     -V          Be verbose sometimes
79
80     -z          Perform diff on extracted strings
81
82     -Z          Perform diff using zignatures instead of function list (NEW)
83

SEE ALSO

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

AUTHORS

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