2019-07-02 00:19:54 +02:00
|
|
|
.Dd Jul 2, 2019
|
2014-09-30 11:01:45 +02:00
|
|
|
.Dt RADARE2 1
|
2014-09-30 11:37:26 +02:00
|
|
|
.Sh NAME
|
|
|
|
.Nm radare2
|
|
|
|
.Nd Advanced commandline hexadecimal editor, disassembler and debugger
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh SYNOPSIS
|
2010-03-12 18:46:11 +01:00
|
|
|
.Nm radare2
|
2011-11-15 23:40:28 +01:00
|
|
|
.Op Fl a Ar arch
|
|
|
|
.Op Fl b Ar bits
|
2013-11-06 01:32:24 +01:00
|
|
|
.Op Fl B Ar baddr
|
2011-10-07 03:10:44 +02:00
|
|
|
.Op Fl c Ar cmd
|
2011-10-12 03:24:19 +02:00
|
|
|
.Op Fl e Ar k=v
|
2011-12-02 03:43:08 +01:00
|
|
|
.Op Fl i Ar file
|
2016-06-20 10:04:50 +02:00
|
|
|
.Op Fl I Ar prefile
|
2016-10-04 14:47:09 +02:00
|
|
|
.Op Fl k Ar kernel
|
2016-04-05 01:54:53 +05:30
|
|
|
.Op Fl m Ar addr
|
2011-10-12 03:24:19 +02:00
|
|
|
.Op Fl p Ar project
|
|
|
|
.Op Fl P Ar patch
|
2017-07-31 14:08:06 +02:00
|
|
|
.Op Fl r Ar rarun2
|
|
|
|
.Op Fl R Ar rr2rule
|
2011-10-12 03:24:19 +02:00
|
|
|
.Op Fl s Ar addr
|
2018-01-08 00:29:14 +01:00
|
|
|
.Op Fl 0AdDwntLquvVxX
|
2014-11-18 11:44:16 +01:00
|
|
|
.Ar -|--|=|file
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh DESCRIPTION
|
2010-03-12 18:46:11 +01:00
|
|
|
radare2 is a commandline hexadecimal editor.
|
2009-04-15 11:09:36 +00:00
|
|
|
.Pp
|
2010-03-12 18:46:11 +01:00
|
|
|
"r2" is the alias program name for radare2.
|
2009-04-15 11:09:36 +00:00
|
|
|
.Pp
|
2010-03-12 18:46:11 +01:00
|
|
|
This manpage is not updated yet. Feel free to contribute.
|
2009-04-15 11:09:36 +00:00
|
|
|
.Pp
|
2010-03-12 18:46:11 +01:00
|
|
|
The options are:
|
2009-04-15 11:09:36 +00:00
|
|
|
.Bl -tag -width Fl
|
2014-11-03 16:52:10 +01:00
|
|
|
.It Fl Fl
|
|
|
|
Open radare2 on an empty file
|
|
|
|
.It Fl
|
|
|
|
Equivalent of 'r2 malloc://512'
|
2014-08-17 02:55:47 +02:00
|
|
|
.It Fl 0
|
|
|
|
Print \\x00 after initialization and after every command executed
|
2017-02-23 12:13:17 +01:00
|
|
|
.It Fl 2
|
|
|
|
Close stderr before starting RCore
|
2011-11-15 23:40:28 +01:00
|
|
|
.It Fl a Ar arch
|
|
|
|
force asm.arch (x86, ppc, arm, mips, bf, java, ...)
|
2013-04-23 03:38:39 +02:00
|
|
|
.It Fl A
|
2016-03-12 17:34:18 +01:00
|
|
|
run 'aaa' command before prompt or patch to analyze all referenced code. Use -AA to run aaaa
|
2011-11-15 23:40:28 +01:00
|
|
|
.It Fl b Ar bits
|
|
|
|
force asm.bits (16, 32, 64)
|
2013-11-06 01:32:24 +01:00
|
|
|
.It Fl B Ar baddr
|
|
|
|
Specify the base address to be used when loading a new binary. See 'e?bin.baddr'
|
2011-10-07 03:10:44 +02:00
|
|
|
.It Fl c Ar cmd
|
|
|
|
Execute the given command before giving prompt
|
2010-03-12 18:46:11 +01:00
|
|
|
.It Fl d
|
2011-10-12 03:24:19 +02:00
|
|
|
Start in debugger mode
|
|
|
|
.It Fl D Ar dbg.backend
|
2011-10-07 03:10:44 +02:00
|
|
|
Enable debug mode. Set cfg.debug=true
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl e Ar k=v
|
|
|
|
Set configuration eval variable key=value. For example \-e scr.color=false
|
|
|
|
.It Fl f
|
|
|
|
Blocksize = file size
|
|
|
|
.It Fl i Ar file
|
2016-06-20 10:04:50 +02:00
|
|
|
Run script file. After the file is loaded
|
2016-07-06 00:09:55 +02:00
|
|
|
.It Fl I Ar file
|
2016-06-20 10:04:50 +02:00
|
|
|
Run script file. Before the file is loaded
|
2016-10-04 14:47:09 +02:00
|
|
|
.It Fl k Ar kernel
|
2013-04-23 03:38:39 +02:00
|
|
|
Select kernel (asm.os) for syscall resolution
|
2011-10-12 03:24:19 +02:00
|
|
|
.It Fl l Ar plugfile
|
|
|
|
Load given plugin file
|
2010-03-12 18:46:11 +01:00
|
|
|
.It Fl L
|
2011-10-12 03:24:19 +02:00
|
|
|
List supported IO plugins.
|
2016-04-05 01:54:53 +05:30
|
|
|
.It Fl m Ar addr
|
|
|
|
map file at given address
|
2016-03-12 18:01:12 +01:00
|
|
|
.It Fl M
|
|
|
|
Disable demangling
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl n
|
2016-09-05 14:19:40 +02:00
|
|
|
Do not perform any analysis (r_bin). Just load the raw file
|
2014-09-12 02:37:49 +02:00
|
|
|
.It Fl nn
|
|
|
|
Only load the rbin structures (elf, mach0, ...)
|
2012-02-03 20:52:20 +01:00
|
|
|
.It Fl N
|
2016-09-05 14:19:40 +02:00
|
|
|
Do not load user settings/projects from ~/.radare2rc, ~/.config/radare2/radare2rc and the scripts inside .../radare2rc.d/ directory.
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl q
|
2017-03-20 10:12:59 +01:00
|
|
|
Quiet mode (no prompt) and quit after running the commands specified with -i or -c
|
2019-07-02 00:19:54 +02:00
|
|
|
.It Fl qq
|
|
|
|
Quit before showing the prompt. Right after all the -e -c and -i arguments are evaluated.
|
2017-03-20 10:12:59 +01:00
|
|
|
.It Fl Q
|
|
|
|
Same as q, but exiting without freeing RCore, this produces leaks at exit time, but saves some precious ms to run the testsuite in fast mode.
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl p Ar prj
|
|
|
|
Set project file
|
|
|
|
.It Fl P Ar file
|
2016-05-25 23:37:41 +02:00
|
|
|
Apply rapatch file and quit (see doc/rapatch.md for more details)
|
2017-07-31 14:08:06 +02:00
|
|
|
.It Fl r Ar rarun2
|
2016-05-15 23:19:06 +02:00
|
|
|
Specify dbg.profile rarun2 profile to use when spawning a program for debugging
|
2017-07-31 14:08:06 +02:00
|
|
|
.It Fl R Ar rarun2-directive
|
|
|
|
Specify custom rarun2 directives without having to create a rarun2 profile
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl s Ar addr
|
|
|
|
Start seeking at this address
|
2014-02-21 00:49:47 +01:00
|
|
|
.It Fl S
|
|
|
|
Enable sandboxed mode (same as \-e cfg.sandbox=true)
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl t
|
|
|
|
Get binary information using a thread
|
2019-02-10 01:11:25 +00:00
|
|
|
.It Fl T
|
2019-02-10 02:30:07 +01:00
|
|
|
Avoid computing the file hashes
|
2015-07-06 00:57:55 +02:00
|
|
|
.It Fl u
|
2016-05-15 23:19:06 +02:00
|
|
|
Set bin.filter=false to load rbin info without filtering names
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl v
|
2016-05-15 23:19:06 +02:00
|
|
|
Show version information and exit (Use -qv to get just the version number)
|
2015-07-06 00:57:55 +02:00
|
|
|
.It Fl V
|
|
|
|
Show radare2 library versions
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl w
|
|
|
|
Open in write mode
|
2009-04-15 11:09:36 +00:00
|
|
|
.It Fl h
|
|
|
|
Show help message
|
2011-12-02 03:43:08 +01:00
|
|
|
.It Fl H
|
|
|
|
Show files and environment help
|
2017-08-24 01:24:52 +02:00
|
|
|
.It Fl x
|
2017-08-26 02:04:45 +02:00
|
|
|
Open the file map without executable permissions
|
2018-01-08 00:29:14 +01:00
|
|
|
.It Fl X
|
|
|
|
Same as -e bin.usextr=false, do not use extract plugins, useful for dyldcache
|
2009-04-15 11:09:36 +00:00
|
|
|
.El
|
|
|
|
.Sh SHELL
|
2016-05-15 23:19:06 +02:00
|
|
|
Type '?' for help
|
2009-04-15 11:09:36 +00:00
|
|
|
.Pp
|
|
|
|
.Sh VISUAL
|
2016-05-15 23:19:06 +02:00
|
|
|
To enter visual mode use the 'V' command. Then press '?' for help
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh DEBUGGER
|
2016-05-15 23:19:06 +02:00
|
|
|
In r2 the debugger commands are implemented under the 'd' command. Type 'd?' for help
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh ENVIRONMENT
|
2015-10-06 20:52:50 -04:00
|
|
|
RHOMEDIR ~/.config/radare2
|
|
|
|
RCFILE ~/.radare2rc (user preferences, batch script)
|
2018-08-07 22:01:59 +02:00
|
|
|
R2_MAGICPATH /usr/lib/radare2/0.10.0-git/magic
|
2015-10-06 20:52:50 -04:00
|
|
|
R_DEBUG if defined, show error messages and crash signal
|
|
|
|
VAPIDIR path to extra vapi directory
|
2009-04-15 11:09:36 +00:00
|
|
|
.Ar FILE
|
2013-12-31 23:52:46 -08:00
|
|
|
path to the current working file.
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Pp
|
2020-03-31 03:17:30 +02:00
|
|
|
.Xr r2r(1) ,
|
2009-04-15 11:09:36 +00:00
|
|
|
.Xr rahash2(1) ,
|
2010-06-18 17:52:30 +02:00
|
|
|
.Xr rafind2(1) ,
|
2009-04-15 11:09:36 +00:00
|
|
|
.Xr rabin2(1) ,
|
|
|
|
.Xr radiff2(1) ,
|
|
|
|
.Xr rasm2(1) ,
|
|
|
|
.Xr rax2(1) ,
|
2011-10-12 03:24:19 +02:00
|
|
|
.Xr ragg2(1) ,
|
|
|
|
.Xr rarun2(1) ,
|
2009-04-15 11:09:36 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.Pp
|
2013-11-11 12:00:39 +01:00
|
|
|
pancake <pancake@nopcode.org>
|