Add 'first session' example in the README ##doc

This commit is contained in:
pancake 2022-01-12 15:46:49 +01:00 committed by GitHub
parent d83aebe94f
commit 1aa2ec6e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.