mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 03:32:04 +00:00
* Update manpages
This commit is contained in:
parent
a008a0676e
commit
b1f1ee2e33
@ -16,7 +16,7 @@ static struct r_core_t r;
|
||||
|
||||
static int main_help(int line) {
|
||||
if (line<2)
|
||||
printf ("Usage: radare2 [-dDwntLqv] [-P patch] [-p prj] [-a arch] [-b bits]\n"
|
||||
printf ("Usage: radare2 [-dDwntLqv] [-P patch] [-p prj] [-a arch] [-b bits] [-i file]\n"
|
||||
" [-s addr] [-B blocksize] [-c cmd] [-e k=v] [file]\n");
|
||||
if (!line) printf (
|
||||
" -a [arch] set asm.arch eval var\n"
|
||||
|
@ -49,11 +49,11 @@ static int hit(RSearchKeyword *kw, void *user, ut64 addr) {
|
||||
}
|
||||
|
||||
static int show_help(char *argv0, int line) {
|
||||
printf ("Usage: %s [-Xnzh] [-f from] [-t to] [-[m|s|e] str] [-x hex] file ...\n", argv0);
|
||||
printf ("Usage: %s [-Xnzhv] [-b size] [-f from] [-t to] [-[m|s|e] str] [-x hex] file ...\n", argv0);
|
||||
if (line) return 0;
|
||||
printf (
|
||||
" -z search for zero-terminated strings\n"
|
||||
" -s [str] search for zero-terminated strings (can be used multiple times)\n"
|
||||
" -s [str] search for a specific string (can be used multiple times)\n"
|
||||
" -e [regex] search for regular expression string matches\n"
|
||||
" -x [hex] search for hexpair string (909090) (can be used multiple times)\n"
|
||||
" -m [str] set a binary mask to be applied on keywords\n"
|
||||
@ -62,9 +62,9 @@ static int show_help(char *argv0, int line) {
|
||||
" -X show hexdump of search results\n"
|
||||
" -n do not stop on read errors\n"
|
||||
" -r print using radare commands\n"
|
||||
" -b set block size\n"
|
||||
" -b [size] set block size\n"
|
||||
" -h show this help\n"
|
||||
" -V print version and exit\n"
|
||||
" -v print version and exit\n"
|
||||
);
|
||||
return 0;
|
||||
}
|
||||
@ -138,7 +138,7 @@ static int rafind_open(char *file) {
|
||||
int main(int argc, char **argv) {
|
||||
int c;
|
||||
|
||||
while ((c = getopt(argc, argv, "e:b:m:s:x:Xzf:t:rnhV")) != -1) {
|
||||
while ((c = getopt(argc, argv, "e:b:m:s:x:Xzf:t:rnhv")) != -1) {
|
||||
BoxedString *kw = R_NEW (BoxedString);
|
||||
INIT_LIST_HEAD (&(kw->list));
|
||||
|
||||
@ -186,7 +186,7 @@ int main(int argc, char **argv) {
|
||||
case 'X':
|
||||
pr = r_print_new ();
|
||||
break;
|
||||
case 'V':
|
||||
case 'v':
|
||||
printf ("rafind2 v"R2_VERSION"\n");
|
||||
return 0;
|
||||
case 'h':
|
||||
|
@ -121,7 +121,7 @@ static int do_hash(const char *algo, RIO *io, int bsize, int rad) {
|
||||
}
|
||||
|
||||
static int do_help(int line) {
|
||||
printf ("Usage: rahash2 [-rV] [-b bsize] [-a algo] [-s str] [file] ...\n");
|
||||
printf ("Usage: rahash2 [-rBv] [-b bsize] [-a algo] [-s str] [-f from] [-t to] [file] ...\n");
|
||||
if (line) return 0;
|
||||
printf (
|
||||
" -a algo comma separated list of algorithms (default is 'sha1')\n"
|
||||
@ -131,7 +131,7 @@ static int do_help(int line) {
|
||||
" -f from start hashing at given address\n"
|
||||
" -t to stop hashing at given address\n"
|
||||
" -r output radare commands\n"
|
||||
" -V show version information\n"
|
||||
" -v show version information\n"
|
||||
"Supported algorithms: md4, md5, sha1, sha256, sha384, sha512, crc16,\n"
|
||||
" crc32, xor, xorpair, parity, mod255, hamdist, entropy, pcprint\n");
|
||||
return 0;
|
||||
@ -142,7 +142,7 @@ int main(int argc, char **argv) {
|
||||
int c, rad = 0, quit = 0, bsize = 0;
|
||||
RIO *io;
|
||||
|
||||
while ((c = getopt (argc, argv, "rVa:s:b:Bhf:t:")) != -1) {
|
||||
while ((c = getopt (argc, argv, "rva:s:b:Bhf:t:")) != -1) {
|
||||
switch (c) {
|
||||
case 'r':
|
||||
rad = 1;
|
||||
@ -175,7 +175,7 @@ int main(int argc, char **argv) {
|
||||
case 't':
|
||||
to = r_num_math (NULL, optarg);
|
||||
break;
|
||||
case 'V':
|
||||
case 'v':
|
||||
printf ("rahash2 v"R2_VERSION"\n");
|
||||
return 0;
|
||||
case 'h':
|
||||
|
88
man/rabin2.1
88
man/rabin2.1
@ -6,48 +6,78 @@
|
||||
.Nd Binary program info extractor
|
||||
.Sh SYNOPSIS
|
||||
.Nm rabin2
|
||||
.Op Fl @eoicsSlMrvxz
|
||||
.Op Fl h
|
||||
.Op Fl ACeisSMzIHlRrvLxVh
|
||||
.Op Fl a Ar arch
|
||||
.Op Fl b Ar bits
|
||||
.Op Fl B Ar addr
|
||||
.Op Fl c Ar fmt:C:[D]
|
||||
.Op Fl p Ar patchfile
|
||||
.Op Fl f Ar subbin
|
||||
.Op Fl L Ar library
|
||||
.Op Fl m Ar addr
|
||||
.Op file
|
||||
.Op Fl O Ar str
|
||||
.Op Fl o Ar str
|
||||
.Op Fl m Ar addr
|
||||
.Op Fl @ Ar addr
|
||||
.Op Fl n Ar str
|
||||
.Ar file
|
||||
.Sh DESCRIPTION
|
||||
This program allows you to get information about ELF/PE/MZ and CLASS files in a simple way.
|
||||
.Bl -tag -width Fl
|
||||
.It Fl @
|
||||
Show information (symbol, section, import) of the given address
|
||||
.It Fl e
|
||||
Show entrypoints for disk and on-memory
|
||||
.It Fl M
|
||||
Show address of 'main' symbol
|
||||
.It Fl i
|
||||
Show imports (symbols imported from libraries
|
||||
.It Fl A
|
||||
List archs
|
||||
.It Fl a Ar arch
|
||||
Set arch (x86, arm, .. accepts underscore for bits x86_32)
|
||||
.It Fl b Ar bits
|
||||
Set bits (32, 64, ...)
|
||||
.It Fl B Ar addr
|
||||
Override baddr
|
||||
.It Fl c Ar [fmt:C[:D]]
|
||||
Create [elf,mach0,pe] for arm and x86-32/64 tiny binaries where 'C' is an hexpair list of the code bytes and ':D' is an optional concatenation to describe the bytes for the data section.
|
||||
.It Fl s
|
||||
Show exported symbols
|
||||
.It Fl o
|
||||
Show other symbols (not import/export)
|
||||
.It Fl S
|
||||
Show sections
|
||||
.It Fl l
|
||||
List linked libraries to the binary
|
||||
.It Fl C
|
||||
List classes
|
||||
.It Fl p Ar patchfile
|
||||
Patch file (see man rabin2)
|
||||
.It Fl e
|
||||
Show entrypoints for disk and on-memory
|
||||
.It Fl f Ar subbin
|
||||
Select sub-binary architecture. Useful for fat-mach0 binaries
|
||||
.It Fl x
|
||||
Extract all sub binaries from a fat binary (f.ex: fatmach0)
|
||||
.It Fl L Ar library
|
||||
Show the base address of a library loaded in memory
|
||||
.It Fl m Ar addr
|
||||
Show source line reference from a given address (like add2line)
|
||||
.It Fl r
|
||||
Show output in radare format
|
||||
.It Fl i
|
||||
Show imports (symbols imported from libraries)
|
||||
.It Fl s
|
||||
Show exported symbols
|
||||
.It Fl S
|
||||
Show sections
|
||||
.It Fl M
|
||||
Show address of 'main' symbol
|
||||
.It Fl z
|
||||
Show strings inside .data section (like gnu strings does)
|
||||
.It Fl I
|
||||
Show binary info
|
||||
.It Fl I
|
||||
Show header fields
|
||||
.It Fl l
|
||||
List linked libraries to the binary
|
||||
.It Fl I
|
||||
Show realocations
|
||||
.It Fl O Ar str
|
||||
Write/extract operations (-O help)
|
||||
.It Fl o Ar str
|
||||
Output file/folder for write operations (out by default)
|
||||
.It Fl r
|
||||
Show output in radare format
|
||||
.It Fl v
|
||||
Display virtual addressing offsets
|
||||
.It Fl m Ar addr
|
||||
Show source line reference from a given address
|
||||
.It Fl L
|
||||
List supported bin plugins
|
||||
.It Fl @ Ar addr
|
||||
Show information (symbol, section, import) of the given address
|
||||
.It Fl n Ar str
|
||||
Show information (symbol, section, import) at string offset
|
||||
.It Fl x
|
||||
Extract all sub binaries from a fat binary (f.ex: fatmach0)
|
||||
.It Fl V
|
||||
Show version information
|
||||
.It Fl h
|
||||
Show usage help message.
|
||||
.El
|
||||
|
@ -11,10 +11,11 @@
|
||||
.Op Fl B Ar blocksize
|
||||
.Op Fl c Ar cmd
|
||||
.Op Fl e Ar k=v
|
||||
.Op Fl i Ar file
|
||||
.Op Fl p Ar project
|
||||
.Op Fl P Ar patch
|
||||
.Op Fl s Ar addr
|
||||
.Op Fl dDwntLV
|
||||
.Op Fl dDwntLqv
|
||||
.Ar file
|
||||
.Sh DESCRIPTION
|
||||
radare2 is a commandline hexadecimal editor.
|
||||
@ -33,32 +34,40 @@ force asm.bits (16, 32, 64)
|
||||
Set block size
|
||||
.It Fl c Ar cmd
|
||||
Execute the given command before giving prompt
|
||||
.It Fl e Ar k=v
|
||||
Set configuration eval variable key=value. For example \-e scr.color=false
|
||||
.It Fl s Ar addr
|
||||
Start seeking at this address
|
||||
.It Fl f
|
||||
Blocksize = file size
|
||||
.It Fl d
|
||||
Start in debugger mode
|
||||
.It Fl D Ar dbg.backend
|
||||
Enable debug mode. Set cfg.debug=true
|
||||
.It Fl w
|
||||
Open in write mode
|
||||
.It Fl u
|
||||
Unknown file size. (Do not limit to file boundaries)
|
||||
.It Fl n
|
||||
Do not load r_bin information and ~/.radare2rc
|
||||
.It Fl t
|
||||
Get binary information using a thread
|
||||
.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
|
||||
Run script file
|
||||
.It Fl l Ar plugfile
|
||||
Load given plugin file
|
||||
.It Fl L
|
||||
List supported IO plugins.
|
||||
.It Fl V
|
||||
.It Fl n
|
||||
Do not load r_bin information and ~/.radare2rc
|
||||
.It Fl q
|
||||
Quiet mode (no prompt)
|
||||
.It Fl p Ar prj
|
||||
Set project file
|
||||
.It Fl P Ar file
|
||||
Apply rapatch file and quit
|
||||
.It Fl s Ar addr
|
||||
Start seeking at this address
|
||||
.It Fl t
|
||||
Get binary information using a thread
|
||||
.It Fl v
|
||||
Show version information and exits.
|
||||
.It Fl w
|
||||
Open in write mode
|
||||
.It Fl h
|
||||
Show help message
|
||||
.It Fl H
|
||||
Show files and environment help
|
||||
.El
|
||||
.Sh SHELL
|
||||
Type '?' for help.
|
||||
|
@ -6,30 +6,34 @@
|
||||
.Nd unified binary diffing utility
|
||||
.Sh SYNOPSIS
|
||||
.Nm radiff2
|
||||
.Op -stcrdVO
|
||||
.Op file1
|
||||
.Op file2
|
||||
.Op Fl cCOdrspvh
|
||||
.Op Fl t Ar 0-100
|
||||
.Op Fl g Ar sym
|
||||
.Ar file1
|
||||
.Ar file2
|
||||
.Sh DESCRIPTION
|
||||
radiff2 implements many binary diffing algorithms for data and code.
|
||||
.Pp
|
||||
.Bl -tag -width Fl
|
||||
.It Fl s
|
||||
Calculate text distance from two files.
|
||||
.It Fl c
|
||||
Count number of differences.
|
||||
.It Fl C
|
||||
Graphdiff code instead of data
|
||||
.It Fl t Ar 0-100
|
||||
Choose matching threshold for binary code diffing
|
||||
.It Fl O
|
||||
Do code diffing with all bytes instead of just the fixed opcode bytes
|
||||
.It Fl r
|
||||
Output in radare commands as a binary patch.
|
||||
.It Fl p
|
||||
Use physical addressing (io.va=0)
|
||||
.It Fl t Ar 0-100
|
||||
Choose matching threshold for binary code diffing
|
||||
.It Fl d
|
||||
Use delta diffing (slower).
|
||||
.It Fl V
|
||||
.It Fl g Ar sym
|
||||
Graph diff output of given symbol
|
||||
.It Fl r
|
||||
Output in radare commands as a binary patch.
|
||||
.It Fl s
|
||||
Calculate text distance from two files.
|
||||
.It Fl p
|
||||
Use physical addressing (io.va=0)
|
||||
.It Fl v
|
||||
Show version information.
|
||||
.It Fl h
|
||||
Show usage help message.
|
||||
|
@ -6,12 +6,13 @@
|
||||
.Nd Advanced commandline hexadecimal editor
|
||||
.Sh SYNOPSIS
|
||||
.Nm rafind2
|
||||
.Op Fl Xnzh
|
||||
.Op Fl zXnrhv
|
||||
.Op Fl b Ar size
|
||||
.Op Fl f Ar from
|
||||
.Op Fl t Ar to
|
||||
.Op Fl s Ar str
|
||||
.Op Fl [m|s|e] Ar str
|
||||
.Op Fl x Ar hex
|
||||
.Op file
|
||||
.Ar file
|
||||
.Sh DESCRIPTION
|
||||
rafind2 is a program to find byte patterns into files
|
||||
.Pp
|
||||
@ -19,24 +20,30 @@ The options are:
|
||||
.Bl -tag -width Fl
|
||||
.It Fl z
|
||||
Search for zero-terminated strings
|
||||
.It Fl s Ar str
|
||||
Search for a specific string
|
||||
.It Fl e Ar regex
|
||||
Search for a regular expression string matches
|
||||
.It Fl x Ar hex
|
||||
Search for an hexpair string
|
||||
.It Fl m Ar mask
|
||||
Set binary mask to be applied
|
||||
.It Fl f Ar from
|
||||
Specify the source adddress
|
||||
.It Fl t Ar to
|
||||
Specify the target adddress
|
||||
.It Fl X
|
||||
Display hexdump of search results
|
||||
.It Fl n
|
||||
Do not stop the search when a read error occurs
|
||||
.It Fl r
|
||||
Show output in radare commands
|
||||
.It Fl b
|
||||
.It Fl b Ar size
|
||||
Define block size
|
||||
.It Fl s Ar str
|
||||
Search for a specific string
|
||||
.It Fl m Ar mask
|
||||
Set binary mask to be applied
|
||||
.It Fl x Ar hex
|
||||
Search for an hexpair string
|
||||
.It Fl f Ar from
|
||||
Specify the source adddress
|
||||
.It Fl t Ar to
|
||||
Specify the target adddress
|
||||
.It Fl h
|
||||
Show help message
|
||||
.It Fl v
|
||||
Print version and exit
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Pp
|
||||
|
@ -6,11 +6,12 @@
|
||||
.Nd block based hashing utility
|
||||
.Sh SYNOPSIS
|
||||
.Nm hasher2
|
||||
.Op Fl h
|
||||
.Op Fl V
|
||||
.Op Fl hBrv
|
||||
.Op Fl a Ar algorithm
|
||||
.Op Fl b Ar size
|
||||
.Op Fl s Ar string
|
||||
.Op Fl f Ar from
|
||||
.Op Fl t Ar to
|
||||
.Op [file] ...
|
||||
.Sh DESCRIPTION
|
||||
This program is part of the radare project.
|
||||
@ -25,12 +26,20 @@ This is the command used by the '#' command of radare.
|
||||
.Bl -tag -width Fl
|
||||
.It Fl a Ar algo
|
||||
Select an algorithm for the hashing. Valid values are md5, crc32 and sha1
|
||||
.It Fl s Ar string
|
||||
Hash this string instead of using the 'source' and 'hash-file' arguments.
|
||||
.It Fl b Ar block size
|
||||
Define the block size
|
||||
.It Fl V
|
||||
Verbose output.
|
||||
.It Fl B
|
||||
Show per-block hash
|
||||
.It Fl s Ar string
|
||||
Hash this string instead of using the 'source' and 'hash-file' arguments.
|
||||
.It Fl f Ar from
|
||||
Start hashing at given address
|
||||
.It Fl t Ar to
|
||||
Stop hashing at given address
|
||||
.It Fl r
|
||||
Show output in radare commands
|
||||
.It Fl v
|
||||
Show version information
|
||||
.It Fl h
|
||||
Show usage help message.
|
||||
.El
|
||||
|
18
man/ranal2.1
18
man/ranal2.1
@ -7,31 +7,29 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm ranal2
|
||||
.Op -BhL
|
||||
.Op -o offset
|
||||
.Op -a arch
|
||||
.Op -b bits
|
||||
.Op -l inputlen
|
||||
.Op [hexpairs|-]
|
||||
.Op -o offset
|
||||
.Ar hexpairs|-
|
||||
.Sh DESCRIPTION
|
||||
ranal2 provides a commandline utility to test and perform some code analysis work on a provided hexpair as argument or from stdin if the argument is '-'.
|
||||
.Pp
|
||||
.Bl -tag -width Fl
|
||||
.It Fl B
|
||||
Input is binary, \-l is mandatory. Useful for stdin
|
||||
.It Fl o Ar offset
|
||||
Offset of the opcode to assemble
|
||||
.It Fl h
|
||||
Show help message
|
||||
.It Fl a Ar arch
|
||||
Set a different architecture (x86, ppc, arm, java)
|
||||
.It Fl b Ar bits
|
||||
Specify bit size of registers: 8, 16, 32, 64
|
||||
.It Fl B
|
||||
Input is binary, \-l is mandatory. Useful for stdin
|
||||
.It Fl h
|
||||
Show help message
|
||||
.It Fl l Ar len
|
||||
Specify length of input data
|
||||
.It Fl L
|
||||
List all supported code analysis plugins
|
||||
.It Fl h
|
||||
Show usage help message
|
||||
.It Fl o Ar offset
|
||||
Offset of the opcode to assemble
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Pp
|
||||
|
36
man/rasm2.1
36
man/rasm2.1
@ -6,28 +6,44 @@
|
||||
.Nd radare2 patch assembler and disassembler
|
||||
.Sh SYNOPSIS
|
||||
.Nm rasm2
|
||||
.Op -dfBCLeV
|
||||
.Op -o offset
|
||||
.Op -a arch
|
||||
.Op -b bits
|
||||
.Op -s syntax
|
||||
.Op Fl dDfBCLev
|
||||
.Op Fl F Ar in:out
|
||||
.Op Fl o Ar offset
|
||||
.Op Fl a Ar arch
|
||||
.Op Fl b Ar bits
|
||||
.Op Fl s Ar syntax
|
||||
.Op Fl l Ar int
|
||||
.Op ARG
|
||||
.Sh DESCRIPTION
|
||||
TODO: This manpage is incomplete.
|
||||
.Pp
|
||||
.Bl -tag -width Fl
|
||||
.It Fl d
|
||||
Disassemble hexpairs. rasm2 \-d 9090
|
||||
Disassemble hexpair bytes. rasm2 \-d 9090
|
||||
.It Fl D
|
||||
Disassemble showing hexpair and opcode
|
||||
.It Fl f
|
||||
Read data from file instead of ARG.
|
||||
.It Fl F Ar in:out
|
||||
pecify input and/or output filters (att2intel, x86.pseudo, ...)
|
||||
.It Fl o Ar offset
|
||||
Offset of the opcode to assemble
|
||||
.It Fl a Ar arch
|
||||
Set architecture plugin
|
||||
.It Fl b Ar bits
|
||||
Set architecture bits
|
||||
.It Fl s Ar syntax
|
||||
Select syntax output (intel, att)
|
||||
.It Fl B
|
||||
Binary input/output (-l is mandatory for binary input)
|
||||
.It Fl l Ar int
|
||||
Input/Output length
|
||||
.It Fl C
|
||||
Output in C format
|
||||
.It Fl L
|
||||
List supported asm plugins
|
||||
.It Fl e
|
||||
Use big endian
|
||||
.It Fl b Ar bits
|
||||
Specify bit size of registers: 8, 16, 32, 64
|
||||
.It Fl a Ar arch
|
||||
Set a different architecture (x86, ppc, arm, java)
|
||||
.It Fl h
|
||||
.El
|
||||
Show usage help message.
|
||||
|
Loading…
x
Reference in New Issue
Block a user