man: minor formatting fixes (#4205)

This commit is contained in:
Anton Kochkov 2024-02-11 15:59:37 +08:00 committed by GitHub
parent 25fd417a28
commit 4fec9a49e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 20 deletions

View file

@ -18,19 +18,19 @@
.Op Fl e Ar k=v
.Ar file|pid|-|--|=
.Sh DESCRIPTION
Rizin is a command-line reverse engineering framework designed to analyze and
disassemble binary files. It provides various tools and features for analyzing
and understanding the structure, behavior, and logic of executable files.
Rizin is a command-line reverse engineering framework designed to analyze and
disassemble binary files. It provides various tools and features for analyzing
and understanding the structure, behavior, and logic of executable files.
.Pp
The options are:
.Bl -tag -width Fl
.It Fl Fl
.It Ar --
Run rizin without opening any file
.It =
.It Ar =
Equivalent of 'rizin malloc://512'
.It -
.It Ar -
Read file from stdin
.It -=
.It Ar -=
Perform R=! command to run all commands remotely
.It Fl 0
Print \\x00 after initialization and after every command executed
@ -113,16 +113,19 @@ Same as -e bin.usextr=false, do not use extract plugins, useful for dyldcache
.It Fl z, zz
do not load strings or load them even in raw
.Sh EXAMPLE
This will start rizin in analysis mode (-A) on the /bin/ls executable:
rizin -A /bin/ls
This will open the file /bin/ls in write mode, allowing you to make changes to the binary:
rizin -w /bin/ls
This starts rizin's debugger (-d) on /bin/ls and passes arguments "-l" and "/tmp" to the program for debugging:
rizin -d /bin/ls -l /tmp
.Pp
This will start rizin in analysis mode (-A) on the /bin/ls executable:
.Pp
.Nm rizin Fl A Ar /bin/ls
.Pp
This will open the file /bin/ls in write mode, allowing you to make changes to the binary:
.Pp
.Nm rizin Fl w Ar /bin/ls
.Pp
This starts rizin's debugger (-d) on /bin/ls and passes arguments "-l" and "/tmp" to the program for debugging:
.Pp
.Nm rizin Fl d Ar /bin/ls Fl l Ar /tmp
.El
.Pp
.Sh SEE ALSO
.Pp

View file

@ -141,8 +141,9 @@ Sample rz-run script
.Pp
Connecting a program to a socket
.Pp
$ nc \-l 9999
$ rz-run program=/bin/ls connect=localhost:9999
.Nm nc Fl l Cm 9999
.Pp
.Nm rz-run Cm program=/bin/ls Cm connect=localhost:9999
.Pp
Debugging a program redirecting io to another terminal
.Pp
@ -159,11 +160,11 @@ Debugging a program redirecting io to another terminal
.Pp
You can also use the -- flag to specify program and arguments in a more natural way:
.Pp
$ rz-run timeout=2 -- sleep 4
.Nm rz-run Cm timeout=2 Ar -- sleep 4
.Pp
Run a library function
.Pp
$ rz-run runlib=/lib/libc-2.25.so runlib.fcn=system arg1="ls /"
.Nm rz-run Cm runlib=/lib/libc-2.25.so Cm runlib.fcn=system Cm arg1="ls /"
.Sh SEE ALSO
.Pp
.Xr rizin(1) ,