mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-09 01:21:05 +00:00

- Moved into binr/rarc2 - Integrated with symstall - rarc2-tool now support -xc and -cx combo - Add rarc2.1 manpage * Add some bugs to review in TODO --HG-- rename : r2rc/Makefile => binr/rarc2/Makefile rename : r2rc/README => binr/rarc2/README rename : r2rc/TODO => binr/rarc2/TODO rename : r2rc/emit_arm.c => binr/rarc2/emit_arm.c rename : r2rc/emit_x64.c => binr/rarc2/emit_x64.c rename : r2rc/emit_x86.c => binr/rarc2/emit_x86.c rename : r2rc/i/libc.r => binr/rarc2/i/libc.r rename : r2rc/i/socket.r => binr/rarc2/i/socket.r rename : r2rc/out.c => binr/rarc2/out.c rename : r2rc/r2rc-tool => binr/rarc2/rarc2-tool rename : r2rc/r2rc.c => binr/rarc2/rarc2.c rename : r2rc/rcc.h => binr/rarc2/rarc2.h rename : r2rc/t/Makefile => binr/rarc2/t/Makefile rename : r2rc/t/argv.r => binr/rarc2/t/argv.r rename : r2rc/t/bytedump.r => binr/rarc2/t/bytedump.r rename : r2rc/t/data.r => binr/rarc2/t/data.r rename : r2rc/t/dump.r => binr/rarc2/t/dump.r rename : r2rc/t/hello.r => binr/rarc2/t/hello.r rename : r2rc/t/if.r => binr/rarc2/t/if.r rename : r2rc/t/inline.r => binr/rarc2/t/inline.r rename : r2rc/t/input.r => binr/rarc2/t/input.r rename : r2rc/t/loop.r => binr/rarc2/t/loop.r rename : r2rc/t/ptr.r => binr/rarc2/t/ptr.r rename : r2rc/t/rawsys.r => binr/rarc2/t/rawsys.r rename : r2rc/t/rawsys64.r => binr/rarc2/t/rawsys64.r rename : r2rc/t/regs.r => binr/rarc2/t/regs.r rename : r2rc/t/ret.r => binr/rarc2/t/ret.r rename : r2rc/t/room.r => binr/rarc2/t/room.r rename : r2rc/t/segfault.r => binr/rarc2/t/segfault.r rename : r2rc/t/shell.r => binr/rarc2/t/shell.r rename : r2rc/t/sub.r => binr/rarc2/t/sub.r rename : r2rc/t/syscall.r => binr/rarc2/t/syscall.r rename : r2rc/test.r => binr/rarc2/test.r
65 lines
1.5 KiB
Groff
65 lines
1.5 KiB
Groff
.Dd Mar 12, 2010
|
|
.Dt RAX2 1
|
|
.Os
|
|
.Sh NAME
|
|
.Nm rax2
|
|
.Nd radare base converter
|
|
.Sh SYNOPSIS
|
|
.Nm rax2
|
|
.Op Fl V
|
|
.Op Fl h
|
|
.Op [value] ...
|
|
.Sh DESCRIPTION
|
|
This command is part of the radare project.
|
|
.Pp
|
|
This command allows you to convert values between positive and negative integer, float octal, binary and hexadecimal values.
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Fl
|
|
.It Fl e
|
|
Swap endian.
|
|
.It Fl h
|
|
Show usage help message.
|
|
.El
|
|
.Sh USAGE
|
|
.Pp
|
|
With no arguments, rax reads values from stdin. You can pass one or more values as arguments, and swap endiannes of the output with the '-e' flag.
|
|
.Pp
|
|
TODO: Using '-' as argument rax will read binary data from stdin and print out the hex pairs to stdout.
|
|
.Pp
|
|
$ rax2 -33 -e -33
|
|
0xffffffdf
|
|
0xdfffffff
|
|
.Pp
|
|
TODO: The '-s' flag converts radare into a hexpair-to-binary converter, so you can do 'unpack' hexpair encoded strings easily.
|
|
.Pp
|
|
$ rax2 -s 41 42 43
|
|
ABC
|
|
.Pp
|
|
It is very useful tool for scripting, so you can read floating point values, or get the integer offset of a jump or a stack delta when analyzing programs.
|
|
.Pp
|
|
Available variable types are:
|
|
.Pp
|
|
integer 10
|
|
zeropadding 010
|
|
float 10f
|
|
hexadecimal 0x10
|
|
hex to float Fx10
|
|
oct to hex 023 (or 23o)
|
|
hex to oct Ox20 (note 'O' is not zero)
|
|
bin to hex 1101b
|
|
hex to bin Bx63
|
|
.Pp
|
|
.Sh SEE ALSO
|
|
.Pp
|
|
.Xr radare2(1) ,
|
|
.Xr rahash2(1) ,
|
|
.Xr rafind2(1) ,
|
|
.Xr rabin2(1) ,
|
|
.Xr radiff2(1) ,
|
|
.Xr rarc2(1) ,
|
|
.Xr rasm2(1) ,
|
|
.Sh AUTHORS
|
|
.Pp
|
|
pancake <pancake@nopcode.org>
|
|
.Pp
|