Hi,

Last week we have been working in graph generation and code analysis.
And we are glad to announce that the results are pretty nice ;)

Now radare can output graphs in dot format, so the following commands
have been added:

 agd  - outputs dot graph format for code analysis
 agd* - like above but only addresses (without body)
 agdv - use agd > file.dot && !!dot -Tpng -ofile.png file.dot && rsc
 view file.png

Furthermore, the code analysis have been improved and the split
algorithm has been rewritten, so split graphs look great now ;) You
can modify the next vars if you want to play with it: 

 graph.bgcolor = white
 It is used to set the graph background color
 graph.weight = false
 Set the value as "true" if you want the graph weight to be proportional
 to the distance between offsets
 graph.split = false
 Set the value as "true" for split graphs
 graph.depth = 9
 Allow to specify the code analysis depth (max. 30) 

Here you have a couple of examples:

- /bin/ls (main) ; graph.split = false ; graph.depth = 10
  http://nibble.develsec.org/get/nosplit10.jpg
- /bin/ls (main) ; graph.split = true ; graph.depth = 10
  http://nibble.develsec.org/get/split10.jpg
- /bin/ls (main) ; graph.split = true ; graph.depth = 25
  http://nibble.develsec.org/get/split25.jpg

Enjoy!

Regards,
Nibble
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to