mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 05:37:06 +00:00
* Add manpages for rarc2 rarc2-tool ranal2
* Use the library symlinking layout as reported by Debian
This commit is contained in:
parent
c03fcdfa87
commit
23e6bfb679
@ -90,7 +90,7 @@ static int analyze(RAnal *anal, RAnalOp *aop, ut64 offset, ut8* buf, int len) {
|
||||
}
|
||||
|
||||
static int usage() {
|
||||
printf ("test_anal [opts] hexpairs|-\n"
|
||||
printf ("ranal2 [opts] hexpairs|-\n"
|
||||
" -a [arch] Set architecture plugin\n"
|
||||
" -b [bits] Set architecture bits\n"
|
||||
" -B Binary input (-l is mandatory for binary input)\n"
|
||||
|
@ -92,7 +92,8 @@ install: install-includes install-pkgconfig
|
||||
b=`echo $$a|cut -d / -f 2`; \
|
||||
echo " ${PFX}/lib/$$b.${VERSION}"; \
|
||||
${INSTALL_DATA} $$a ${PFX}/lib/$$b.${VERSION} ; \
|
||||
ln -sf ${PFX}/lib/$$b.${VERSION} ${PFX}/lib/$$b ; \
|
||||
ln -sf ${PFX}/lib/$$b.${VERSION} ${PFX}/lib/$$b.0 ; \
|
||||
ln -sf ${PFX}/lib/$$b.0 ${PFX}/lib/$$b ; \
|
||||
done
|
||||
# object archives
|
||||
@for a in `find * | grep -e '\.a$$'` ; do \
|
||||
@ -132,6 +133,7 @@ deinstall uninstall:
|
||||
# TODO: use for a in LIBLIST (like in binr/Makefile)
|
||||
rm -rf ${PFX}/include/libr
|
||||
rm -rf ${PFX}/lib/libr_*.so.${VERSION}
|
||||
rm -rf ${PFX}/lib/libr_*.so.0
|
||||
rm -rf ${PFX}/lib/libr_*.so
|
||||
rm -rf ${PFX}/lib/libr_*.a
|
||||
rm -rf ${PFX}/lib/libr2.so*
|
||||
|
@ -44,9 +44,12 @@ Show usage help message.
|
||||
.Xr rafind(1) ,
|
||||
.Xr radare2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
pancake <pancake@nopcode.org>
|
||||
|
@ -60,9 +60,12 @@ path to the current working file
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
pancake <@nopcode.org>
|
||||
|
@ -32,8 +32,11 @@ Show usage help message.
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
@ -43,9 +43,12 @@ Specify the target adddress
|
||||
.Xr radare2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
@ -40,9 +40,12 @@ Show usage help message.
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
51
man/ranal2.1
Normal file
51
man/ranal2.1
Normal file
@ -0,0 +1,51 @@
|
||||
.Dd Oct 27, 2010
|
||||
.Dt RANAL2 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm ranal2
|
||||
.Nd radare2 code analysis commandline frontend
|
||||
.Sh SYNOPSIS
|
||||
.Nm ranal2
|
||||
.Op -BhL
|
||||
.Op -o offset
|
||||
.Op -a arch
|
||||
.Op -b bits
|
||||
.Op -l inputlen
|
||||
.Op [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 l Ar len
|
||||
Specify length of input data
|
||||
.It Fl L
|
||||
List all supported code analysis plugins
|
||||
.It Fl h
|
||||
Show usage help message
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Pp
|
||||
.Xr radare2(1) ,
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
pancake <@nopcode.org>
|
||||
.Pp
|
1
man/rarc2-tool.1
Symbolic link
1
man/rarc2-tool.1
Symbolic link
@ -0,0 +1 @@
|
||||
rarc2.1
|
@ -62,9 +62,11 @@ Using rarc2-tool:
|
||||
.Xr radare2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rafind2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
70
man/rasc2.1
Normal file
70
man/rasc2.1
Normal file
@ -0,0 +1,70 @@
|
||||
.Dd October 27, 2010
|
||||
.Dt RASC2 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm rasc2
|
||||
.Nd Radare Shellcode helper utility
|
||||
.Sh SYNOPSIS
|
||||
.Nm rasc2
|
||||
.Op -cCxXtLV
|
||||
.Op -A N
|
||||
.Op -C N
|
||||
.Op -E N
|
||||
.Op -N N
|
||||
.Op -a addr@off
|
||||
.Op -s hexpair
|
||||
.Op -i name
|
||||
.Op -S file
|
||||
.Op -l port
|
||||
.Sh DESCRIPTION
|
||||
rasc2 implements the most common practices to generate shellcodes with paddings with 0x41's ('A'), nops, breakpoints or enumerations (00 01 02 03 ..).
|
||||
.Pp
|
||||
rasc2 can serve a syscall proxy at a specified port with -l [port]
|
||||
.Pp
|
||||
There's an hardcoded database of common used shellcodes that can be listed with -L. Use -i to specify which want you want to use.
|
||||
.Pp
|
||||
The output can be raw or in hexpairs (-x) or C array (-c).
|
||||
.Pp
|
||||
Use -X to inline execute the specified. (useful for testing)
|
||||
.Pp
|
||||
To specify the
|
||||
.Bl -tag -width Fl
|
||||
.It Fl A|-C|-E|-N Ar count
|
||||
Specify the number of 'A's, breakpoints, enumerations and nops to be prefixed to the shellcode.
|
||||
.It Fl a Ar addr@off
|
||||
Set the return address at a specified offset inside the resulting shellcode
|
||||
.It Fl s Ar 'hexpair'
|
||||
Set the shellcode in hexpair format. For example (-s '01 02 03')
|
||||
.It Fl l Ar port
|
||||
Listen a syscall proxy server at a specified port.
|
||||
.It Fl L
|
||||
List all hardcoded shellcodes
|
||||
.It Fl c
|
||||
Show output in C array format
|
||||
.It Fl x
|
||||
Show output in hexpairs format
|
||||
.It Fl X
|
||||
Execute resulting shellcode
|
||||
.It Fl t
|
||||
Performs some tests on the current platform
|
||||
.It Fl h
|
||||
Show usage help message.
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
Some shellcodes can be modified using the environment variables CMD, HOST and PORT. See -L for more information.
|
||||
.Sh SEE ALSO
|
||||
.Pp
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rafind(1) ,
|
||||
.Xr radare2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
pancake <pancake@nopcode.org>
|
||||
.Pp
|
@ -37,8 +37,11 @@ Show usage help message.
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rax2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
@ -55,8 +55,11 @@ Available variable types are:
|
||||
.Xr rahash2(1) ,
|
||||
.Xr rafind2(1) ,
|
||||
.Xr rabin2(1) ,
|
||||
.Xr ranal2(1) ,
|
||||
.Xr radiff2(1) ,
|
||||
.Xr rarc2(1) ,
|
||||
.Xr rarc2-tool(1) ,
|
||||
.Xr rasc2(1) ,
|
||||
.Xr rasm2(1) ,
|
||||
.Sh AUTHORS
|
||||
.Pp
|
||||
|
Loading…
x
Reference in New Issue
Block a user