mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-06 18:13:46 +00:00
Add 'first session' example in the README ##doc
This commit is contained in:
parent
d83aebe94f
commit
1aa2ec6e69
18
README.md
18
README.md
@ -37,6 +37,24 @@ r2env init
|
||||
r2env add radare2@git
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
These are the first steps to use r2, read the book or find tutorials for more details
|
||||
|
||||
```sh
|
||||
$ r2 /bin/ls # open the binary in read-only mode
|
||||
> aaa # same as r2 -A, analyse the binary
|
||||
> afl # list all functions (try aflt, aflm)
|
||||
> px 32 # print 32 byte hexdump current block
|
||||
> s sym.main # seek to the given offset (by flag name, number, ..)
|
||||
> f~foo # filter flags with ~grep (same as |grep)
|
||||
> iS;is # list sections and symbols (same as rabin2 -Ss)
|
||||
> pdf; agf # print function and show control-flow-graph in ascii-art
|
||||
> oo+;w hello # reopen in rw mode and write a string in the current offset
|
||||
> ?*~... # interactive filter all command help messages
|
||||
> q # quit
|
||||
```
|
||||
|
||||
## Resources
|
||||
|
||||
* [Official radare2 book](https://book.rada.re): Read about r2 usage.
|
||||
|
Loading…
Reference in New Issue
Block a user