2016-09-21 12:07:44 +02:00
.Dd Sep 21 , 2016
2014-09-30 11:01:45 +02:00
.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
2017-01-09 01:03:42 +02:00
.Op Fl AabcCdDhOrspxvz
2011-12-02 03:43:08 +01:00
.Op Fl t Ar 0 -100
.Op Fl g Ar sym
2016-09-22 20:31:40 +02:00
.Op Fl S Ar algo
2011-12-02 03:43:08 +01:00
.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
2016-03-19 02:57:53 +01: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 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.
2017-04-10 13:01:42 +02:00
.It Fl e [k=v]
Specify eval config vars for all RCore instances created.
2011-10-20 15:05:30 +02:00
.It Fl C
2016-05-17 21:48:36 +02:00
Code diffing using graphdiff algorithm. Output columns are: file-a-address, percentatge of most similar function in B file | file-b-address. (Use with -A to analyze the binaries to find more functions)
2011-12-02 03:43:08 +01:00
.It Fl d
Use delta diffing (slower).
2016-02-15 23:52:12 +01:00
.It Fl D
Show disasm instead of hexpairs (honors -a arch and -b bits)
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.
2017-01-09 03:18:14 +01:00
.It Fl i
Compare the list of imports
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)
2017-01-09 03:26:07 +01:00
.It Fl q
Quiet mode: disable colors and reduce output
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.
2016-04-21 01:29:57 +02:00
.It Fl x
Show two column hexdump diffing.
2011-12-02 03:43:08 +01:00
.It Fl s
Calculate text distance from two files.
2016-09-21 12:07:44 +02:00
.It Fl ss
Same as before but using the Levenstein algorithm (faster but sometimes buggy)
2016-09-22 20:31:40 +02:00
.It Fl S Ar [name, namelen, dist, size, ...]
Specify which column of the code diffing algo use for diffing
2014-05-11 13:22:36 +02:00
.It Fl t Ar 0 \- 100
Choose matching threshold for binary code diffing
2017-01-09 03:18:14 +01:00
.It Fl u
Unified diff output
.It Fl U
Unified diff output using system\' s diff program
2011-12-02 03:43:08 +01:00
.It Fl v
2010-03-12 18:46:11 +01:00
Show version information.
2016-05-25 17:07:23 +10:00
.It Fl V
Be verbose sometimes
2017-01-09 01:03:42 +02:00
.It Fl z
Perform diff on extracted strings
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>