2014-09-30 11:01:45 +02:00
|
|
|
.Dd May 11, 2014
|
|
|
|
.Dt RADIFF2 1
|
2014-09-30 11:37:26 +02:00
|
|
|
.Sh NAME
|
|
|
|
.Nm RADIFF2
|
|
|
|
.Nd unified binary diffing utility
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh SYNOPSIS
|
2011-10-20 15:05:30 +02:00
|
|
|
.Nm radiff2
|
2014-03-19 10:33:00 +01:00
|
|
|
.Op Fl abcCOdrspvh
|
2011-12-02 03:43:08 +01:00
|
|
|
.Op Fl t Ar 0-100
|
|
|
|
.Op Fl g Ar sym
|
|
|
|
.Ar file1
|
|
|
|
.Ar file2
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh DESCRIPTION
|
2011-10-20 15:05:30 +02:00
|
|
|
radiff2 implements many binary diffing algorithms for data and code.
|
2009-04-15 11:09:36 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Fl
|
2014-03-19 10:33:00 +01:00
|
|
|
.It Fl a
|
|
|
|
Specify architecture (x86, arm, ..)
|
|
|
|
.It Fl b
|
|
|
|
Select register size bits for given arch
|
2010-03-12 18:46:11 +01:00
|
|
|
.It Fl c
|
|
|
|
Count number of differences.
|
2011-10-20 15:05:30 +02:00
|
|
|
.It Fl C
|
2014-02-18 15:39:06 +01:00
|
|
|
Code diffing using graphdiff algorithm. Output columns are: file-a-address, percentatge of most similar function in B file | file-b-address.
|
2015-04-07 04:12:18 +02:00
|
|
|
.It Fl CC
|
|
|
|
Perform a code diffing of all the functions. Run aac instead of just diffing the symbols.
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl d
|
|
|
|
Use delta diffing (slower).
|
2014-08-19 02:47:41 +02: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.
|
2014-05-11 13:22:36 +02:00
|
|
|
.It Fl h
|
|
|
|
Show usage help message.
|
2014-12-26 19:28:55 +01:00
|
|
|
.It Fl n
|
|
|
|
Suppress address names (show only addresses) when code diffing.
|
2014-05-11 13:22:36 +02:00
|
|
|
.It Fl O
|
|
|
|
Do code diffing with all bytes instead of just the fixed opcode bytes
|
|
|
|
.It Fl p
|
|
|
|
Use physical addressing (io.va=0)
|
2009-04-15 11:09:36 +00:00
|
|
|
.It Fl r
|
2010-03-12 18:46:11 +01:00
|
|
|
Output in radare commands as a binary patch.
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl s
|
|
|
|
Calculate text distance from two files.
|
2014-05-11 13:22:36 +02:00
|
|
|
.It Fl t Ar 0\-100
|
|
|
|
Choose matching threshold for binary code diffing
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl v
|
2010-03-12 18:46:11 +01:00
|
|
|
Show version information.
|
2010-03-15 17:15:48 +01:00
|
|
|
.El
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Pp
|
2010-03-12 18:46:11 +01:00
|
|
|
.Xr radare2(1) ,
|
2010-06-18 17:52:30 +02:00
|
|
|
.Xr rafind2(1) ,
|
2010-03-12 18:46:11 +01:00
|
|
|
.Xr rahash2(1) ,
|
|
|
|
.Xr rabin2(1) ,
|
|
|
|
.Xr rasm2(1) ,
|
2011-10-12 03:24:19 +02:00
|
|
|
.Xr ragg2(1) ,
|
|
|
|
.Xr rarun2(1) ,
|
2010-03-12 18:46:11 +01:00
|
|
|
.Xr rax2(1) ,
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.Pp
|
2013-11-11 12:00:39 +01:00
|
|
|
pancake <pancake@nopcode.org>
|