68 lines
1.5 KiB
Groff
68 lines
1.5 KiB
Groff
.Dd February 4, 2007
|
|
.Dt RAX 1
|
|
.Os
|
|
.Sh NAME
|
|
.Nm rax
|
|
.Nd radare base converter
|
|
.Sh SYNOPSIS
|
|
.Nm rax
|
|
.Op Fl e
|
|
.Op Fl s
|
|
.Op Fl h
|
|
.Op -|value
|
|
.Op ...
|
|
.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.
|
|
.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
|
|
Using '-' as argument rax will read binary data from stdin and print out the hex pairs to stdout.
|
|
.Pp
|
|
$ rax -33 -e -33
|
|
0xffffffdf
|
|
0xdfffffff
|
|
.Pp
|
|
The '-s' flag converts radare into a hexpair-to-binary converter, so you can do 'unpack' hexpair encoded strings easily.
|
|
.Pp
|
|
$ rax -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
|
|
Available flags are:
|
|
.Bl -tag -width Fl
|
|
.It Fl e
|
|
Swap endian.
|
|
.It Fl h
|
|
Show usage help message.
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Pp
|
|
.Xr radiff(1) ,
|
|
.Xr radare(1) ,
|
|
.Xr rabin(1) ,
|
|
.Xr hasher(1) ,
|
|
.Xr rsc(1) ,
|
|
.Xr rasc(1) ,
|
|
.Xr rasm(1) ,
|
|
.Xr rfile(1) ,
|
|
.Xr xrefs(1)
|
|
.Sh AUTHORS
|
|
.Pp
|
|
pancake <pancake@youterm.com>
|
|
.Pp
|