radiff2 - binary diffing utility
radiff2 [-1abcCdeGhijnropqsSxuUvVzZ] [-A[A]] [-B #] [-g
sym] [-m graph_mode][-t %] file file
radiff2 is a tool from the radare2 suite designed for binary
diffing code and data.
It supports a wide range of formats and features, including
architecture and bits specification, delta diffing, graph diffing, and
more.
- -1
- Output in Generic binary DIFF (0xd1ffd1ff magic header).
- -a [arch]
- Specify architecture plugin to use (x86, arm, etc.).
- -A [-A]
- Run aaa or aaaa after loading each binary (see -C).
- -b [bits]
- Specify register size for architecture (16 (thumb), 32, 64, etc.).
- -B [baddr]
- Define the base address to add the offsets when listing.
- -c
- Count of changes.
- -C
- Graphdiff code (columns: off-A, match-ratio, off-B) (see -A).
- -d
- Use delta diffing.
- -D
- Show disasm instead of hexpairs.
- -e [k=v]
- Set eval config var value for all RCore instances.
- -g [arg]
- Graph diff of [sym] or functions in [off1,off2].
- -G [cmd]
- Run an r2 command on every RCore instance created.
- -i [ifscm]
- Diff imports | fields | symbols | classes | methods.
- -j
- Output in JSON format.
- -m [mode]
- Choose the graph output mode (aditsjJ).
- -n
- Print bare addresses only (diff.bare=1).
- -O
- Code diffing with opcode bytes only.
- -p
- Use physical addressing (io.va=false) (only for radiff2 -AC).
- -q
- Quiet mode (disable colors, reduce output).
- -r
- Output in radare commands.
- -s
- Compute edit distance (no substitution, Eugene W. Myers O(ND) diff
algorithm).
- -ss
- Compute Levenshtein edit distance (substitution is allowed, O(N^2)).
- -S [name]
- Sort code diff (name, namelen, addr, size, type, dist) (only for -C or
-g).
- -t [0-100]
- Set threshold for code diff (default is 70%).
- -T
- Analyze files in threads (EXPERIMENTAL, 30% faster and crashy).
- -u
- Unified output (---+++).
- -U
- Unified output using system 'diff'.
- -v
- Show version information.
- -V
- Be verbose (current only for -s).
- -x
- Show two-column hexdump diffing.
- -X
- Show two-column hexII diffing.
- -z
- Diff on extracted strings.
- -Z
- Diff code comparing zignatures.
- .
- default is ASCII art.
- s
- r2 commands.
- d
- Graphviz dot.
- g
- Graph Modelling Language (gml).
- j
- JSON.
- J
- JSON with disarm.
- k
- sdb key-value.
- t
- Tiny ascii art.
- i
- Interactive ascii art.
radare2(1)
https://www.radare.org/
pancake <pancake@nopcode.org>