Radare2

From aldeid
Jump to: navigation, search

Description

  • radare2 is an advanced commandline hexadecimal editor, disassembler and debugger
  • r2 is the alias program name for radare2.

Installation

$ git clone git://github.com/radare/radare2
$ cd radare2
$ sudo sys/install.sh

Usage

Syntax

radare2 [-a arch] [-b bits] [-B baddr] [-c cmd] [-e k=v] [-i file] [-k kernel] [-p project] [-P patch]
[-s addr] [-AdDwntLqv] file

Options

-a arch
force asm.arch (x86, ppc, arm, mips, bf, java, ...)
-A
run 'aa' command before prompt or patch to analyze all referenced code
-b bits
force asm.bits (16, 32, 64)
-B baddr
Specify the base address to be used when loading a new binary. See 'e?bin.baddr'
-c cmd
Execute the given command before giving prompt
-d
Start in debugger mode
-D dbg.backend
Enable debug mode. Set cfg.debug=true
-e k=v
Set configuration eval variable key=value. For example -e scr.color=false
-f
Blocksize = file size
-i file
Run script file
-k kernel
Select kernel (asm.os) for syscall resolution
-l plugfile
Load given plugin file
-L
List supported IO plugins.
-n
Do not load user settings/projects from ~/.radare2rc and ~/.config/radare2/.
-N
Do not perform any analysis (r_bin). Just load the raw file.
-q
Quiet mode (no prompt)
-p prj
Set project file
-P file
Apply rapatch file and quit
-s addr
Start seeking at this address
-t
Get binary information using a thread
-v
Show version information and exits.
-w
Open in write mode
-h
Show help message
-H
Show files and environment help