まず、gitリポジトリからradare2をインストールし、最新バージョンを使用してください:
radareのほぼすべてのコマンドの後に?
を追加すると、サブコマンドが出力されます。あなたはagC
コマンドが出力を探している
[0x00000000]> ag?
|Usage: ag[?f]Graphviz/graph code
| ag [addr] output graphviz code (bb at addr and children)
| ag- Reset the current ASCII art graph (see agn, age, agg?)
| aga [addr] idem, but only addresses
| agc[j] [addr] output graphviz call graph of function
| agC[j] Same as agc -1. full program callgraph
| agd [fcn name] output graphviz code of diffed function
| age[?] title1 title2 Add an edge to the current graph
| agf [addr] Show ASCII art graph of given function
... <truncated> ...
| agv Show function graph in web/png...
:たとえば、あなたはag
に?
を追加することによって、あなたはそのサブコマンドを発見することができるようにag
コマンドとそのサブコマンドは、出力に視覚的なグラフをあなたを助けることができることを知っていますプログラムのフルコールグラフはdot
形式です。
[0x004049a0]> agC > output.dot
dot
ユーティリティはsudo apt-get install graphviz
を使用してインストールすることができるGraphvizのソフトウェアの一部です。
あなたは、任意のオフラインdot viewerであなたの出力を表示online Graphviz viewerに出力を貼り付け、さらにはPNGにドットファイルを変換することができます
$ r2 /bin/ls
[0x004049a0]> aa
[x] Analyze all flags starting with sym. and entry0 (aa)
[0x004049a0]> agC > output.dot
[0x004049a0]> !!dot -Tpng -o callgraph.png output.dot
たぶん、あなたはhttps://reverseengineering.stackexchange.com/に尋ねるべき –
この質問は[SEリバースエンジニアリングウェブサイト](https://reverseengineering.stackexchange.com/)に転送する必要があります。 – perror