You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you know the general flag you want to use i.e. i for info you can append a ?
i?
This will show you all the help available to append to the i flag.
Analysis
r2 does not analyze the file by default, you need to specify the a flag
To have r2 analyze the file issue aa or analyse all, or aaa
[0x08048370]> aaa
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
[x] Check for vtables
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.
Can also have r2 analyze the file at start up with
r2 -A filename
Flag Space
After analysis radare2 associates names to interesting offsets in the file such as sections, functions, symbols, strings.
All are called flags
Choose a flag space using fs flagspace and print the flags it contains with f.
Can pass multiple commands with semi colon i.e. cmd1;cmd2;cmd3