28 lines
572 B
Markdown
28 lines
572 B
Markdown
# radare2
|
||
|
||
> 一套反向工程工具。
|
||
> 更多信息:<https://www.radare.org/r/docs.html>。
|
||
|
||
- 以写模式打开文件,而不解析文件格式头:
|
||
|
||
`radare2 -nw {{path/to/binary}}`
|
||
|
||
- 调试程序:
|
||
|
||
`radare2 -d {{path/to/binary}}`
|
||
|
||
- 在进入交互式CLI之前运行脚本:
|
||
|
||
`radare2 -i {{path/to/script.r2}} {{path/to/binary}}`
|
||
|
||
- 在交互式CLI中显示任何命令的帮助文本:
|
||
|
||
`> {{radare2_command}}?`
|
||
|
||
- 从交互式CLI运行shell命令:
|
||
|
||
`> !{{shell_command}}`
|
||
|
||
- 将当前块的原始字节转储到文件:
|
||
|
||
`> pr > {{path/to/file.bin}}` |