radare2/man/radiff2.1

90 lines
2.3 KiB
Groff
Raw Normal View History

2018-01-10 09:18:31 +00:00
.Dd Feb 10, 2018
2014-09-30 09:01:45 +00:00
.Dt RADIFF2 1
2014-09-30 09:37:26 +00:00
.Sh NAME
.Nm RADIFF2
.Nd unified binary diffing utility
.Sh SYNOPSIS
.Nm radiff2
.Op Fl AabcCdDhOrspxXvzZ
2011-12-02 02:43:08 +00:00
.Op Fl t Ar 0-100
.Op Fl g Ar sym
.Op Fl S Ar algo
2011-12-02 02:43:08 +00:00
.Ar file1
.Ar file2
.Sh DESCRIPTION
radiff2 implements many binary diffing algorithms for data and code.
.Pp
.Bl -tag -width Fl
2016-03-19 01:57:53 +00:00
.It Fl A
Analyze binary after loading it with RCore (see -C) and use -AA to run aaaa instead of aaa.
2014-03-19 09:33:00 +00:00
.It Fl a
Specify architecture (x86, arm, ..)
.It Fl b
Select register size bits for given arch
2018-01-10 09:18:31 +00:00
.It Fl B
Binary output (GDIFF format)
.It Fl c
Count number of differences.
2017-04-10 11:01:42 +00:00
.It Fl e [k=v]
Specify eval config vars for all RCore instances created.
.It Fl C
2017-09-30 09:56:38 +00:00
Code diffing using graphdiff algorithm. Output columns are: file-a-address, percentage of most similar function in B file | file-b-address. (Use with -A to analyze the binaries to find more functions)
2011-12-02 02:43:08 +00:00
.It Fl d
Use delta diffing (slower).
2016-02-15 22:52:12 +00:00
.It Fl D
Show disasm instead of hexpairs (honors -a arch and -b bits)
2014-08-19 00:47:41 +00:00
.It Fl g Ar sym | off1,off2
Graph diff output of given symbol, or between two functions, at given offsets: one for each binary.
.It Fl h
Show usage help message.
.It Fl i
Compare the list of imports
.It Fl n
Suppress address names (show only addresses) when code diffing.
.It Fl O
Do code diffing with opcode bytes only.
.It Fl p
Use physical addressing (io.va=0)
2017-01-09 02:26:07 +00:00
.It Fl q
Quiet mode: disable colors and reduce output
.It Fl r
Output in radare commands as a binary patch.
2016-04-20 23:29:57 +00:00
.It Fl x
Show two column hexdump diffing.
.It Fl X
Show two column hexII diffing.
2011-12-02 02:43:08 +00:00
.It Fl s
Compute edit distance (no substitution, Eugene W. Myers' O(ND) diff algorithm) between two files.
.It Fl ss
Compute Levenshtein edit distance (substitution is allowed, O(N^2)) between two files.
.It Fl S Ar [name, namelen, dist, size, ...]
Specify which column of the code diffing algo use for diffing
.It Fl t Ar 0\-100
Choose matching threshold for binary code diffing
.It Fl u
Unified diff output
.It Fl U
Unified diff output using system\'s diff program
2011-12-02 02:43:08 +00:00
.It Fl v
Show version information.
.It Fl V
Be verbose sometimes
.It Fl z
Perform diff on extracted strings
.It Fl Z
Perform diff using zignatures instead of function list (NEW)
.El
.Sh SEE ALSO
.Pp
.Xr radare2(1) ,
.Xr rafind2(1) ,
.Xr rahash2(1) ,
.Xr rabin2(1) ,
.Xr rasm2(1) ,
.Xr ragg2(1) ,
.Xr rarun2(1) ,
.Xr rax2(1) ,
.Sh AUTHORS
.Pp
pancake <pancake@nopcode.org>