mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 18:43:45 +00:00
More documentation for rabin2 (manpage and help)
This commit is contained in:
parent
e78b561669
commit
9855e55e98
@ -1,13 +1,13 @@
|
||||
/* radare - LGPL - Copyright 2009-2016 - nibble, pancake */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.c>
|
||||
#include <r_core.h>
|
||||
#include <r_types.h>
|
||||
#include <r_util.h>
|
||||
#include "../blob/version.c"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../../libr/bin/pdb/pdb_downloader.h"
|
||||
#include "../blob/version.c"
|
||||
|
||||
static struct r_bin_t *bin = NULL;
|
||||
static char* output = NULL;
|
||||
@ -71,6 +71,7 @@ static int rabin_show_help(int v) {
|
||||
" -S sections\n"
|
||||
" -u unfiltered (no rename duplicated symbols/sections)\n"
|
||||
" -v display version and quit\n"
|
||||
" -V Show binary version information\n"
|
||||
" -x extract bins contained in file\n"
|
||||
" -X [fmt] [f] .. package in fat or zip the given files andbins contained in file\n"
|
||||
" -z strings (from data section)\n"
|
||||
@ -378,7 +379,7 @@ static int rabin_do_operation(const char *op) {
|
||||
r_bin_wr_rpath_del (bin);
|
||||
rc = r_bin_wr_output (bin, output);
|
||||
break;
|
||||
case 'C':
|
||||
case 'C':
|
||||
{
|
||||
RBinFile *cur = r_bin_cur (bin);
|
||||
RBinPlugin *plg = r_bin_file_cur_plugin (cur);
|
||||
@ -389,7 +390,7 @@ static int rabin_do_operation(const char *op) {
|
||||
r_cons_flush ();
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case 'r':
|
||||
r_bin_wr_scn_resize (bin, ptr, r_num_math (NULL, ptr2));
|
||||
rc = r_bin_wr_output (bin, output);
|
||||
@ -492,11 +493,11 @@ int main(int argc, char **argv) {
|
||||
r_lib_add_handler (l, R_LIB_TYPE_BIN_XTR, "bin xtr plugins",
|
||||
&__lib_bin_xtr_cb, &__lib_bin_xtr_dt, NULL);
|
||||
/* load plugins everywhere */
|
||||
|
||||
|
||||
path = r_sys_getenv (R_LIB_ENV);
|
||||
if (path && *path)
|
||||
r_lib_opendir (l, path);
|
||||
|
||||
|
||||
if (1) {
|
||||
char *homeplugindir = r_str_home (R2_HOMEDIR "/plugins");
|
||||
// eprintf ("OPENDIR (%s)\n", homeplugindir);
|
||||
|
18
man/rabin2.1
18
man/rabin2.1
@ -46,8 +46,12 @@ Demangle symbol name (or - to read from stdin) for lang (cxx, swift, java, cxx,
|
||||
Show entrypoints for disk and on-memory
|
||||
.It Fl f Ar subbin
|
||||
Select sub-binary architecture. Useful for fat-mach0 binaries
|
||||
.It Fl F Ar binfmt
|
||||
Force to use that bin plugin (ignore header check)
|
||||
.It Fl g
|
||||
Show all possible information
|
||||
.It Fl g Ar addr
|
||||
Load address . offset to header
|
||||
.It Fl h
|
||||
Show usage help message.
|
||||
.It Fl H
|
||||
@ -80,10 +84,18 @@ Output file/folder for write operations (out by default)
|
||||
Perform binary operation on target binary (dump, resize, change sections, ...) see '-O help' for more information
|
||||
.It Fl p
|
||||
Disable VA. Show physical addresses
|
||||
.It Fl P
|
||||
Show debug/pdb information
|
||||
.It Fl PP
|
||||
Download pdb file for binary
|
||||
.It Fl q
|
||||
Be quiet, just show fewer data
|
||||
.It Fl qq
|
||||
Show less info (no offset/size for -z for ex.)
|
||||
.It Fl Q
|
||||
show load address used by dlopen (non-aslr libs)
|
||||
Show load address used by dlopen (non-aslr libs)
|
||||
.It Fl r
|
||||
Radare output
|
||||
.It Fl R
|
||||
Show realocations
|
||||
.It Fl r
|
||||
@ -92,6 +104,8 @@ Show output in radare format
|
||||
Show exported symbols
|
||||
.It Fl S
|
||||
Show sections
|
||||
.It Fl u
|
||||
Unfiltered (no rename duplicated symbols/sections)
|
||||
.It Fl v
|
||||
Show version information
|
||||
.It Fl V
|
||||
@ -106,6 +120,8 @@ Show strings inside .data section (like gnu strings does)
|
||||
Guess size of binary program
|
||||
.It Fl zz
|
||||
Shows strings from raw bins
|
||||
.It Fl zzz
|
||||
Dump raw strings to stdout (for huge files)
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Pp
|
||||
|
Loading…
Reference in New Issue
Block a user