0

Hex Ray has introduced a decompiler API as part of IDA v6.6. Is there any plugin which displays the detail Abstract Syntax Tree (AST) produced by the decompiler graphically?

I want something like this as mentioned in this post. Unfortunately, I can't find the Display graph option in IDA v6.95

  • My browser doesn't like Flash :) Can you make a screenshot and include it in your post? – usr2564301 Jan 22 '17 at 7:35
3

See the vds5 plugin in the Hex-Rays SDK.

/*
 *      Hex-Rays Decompiler project
 *      Copyright (c) 2007-2008 by Hex-Rays, support@hex-rays.com
 *      ALL RIGHTS RESERVED.
 *
 *      Sample plugin for the Hex-Rays Decompiler.
 *      It adds a new command to show graph of the ctree.
 *      The current item will be highlighted in the graph.
 *
 *      The command hotkey is G. It is also added into the right-click menu.
 *
 *      To display the graph, we traverse the ctree and build
 *      a gdl_graph_t object. Then we use gen_gdl() function from IDA
 *      to create a GDL file from this object. Finally, we call
 *      wingraph32 to display the graph on the screen.
 *
 */
  • Python version of vds5 is not available for IDA v6.95 github.com/idapython/src/tree/master/examples – Holmes.Sherlock Jan 22 '17 at 17:44
  • 2
    @Holmes.Sherlock and your point is? – Igor Skochinsky Jan 22 '17 at 17:45
  • Since I am using IDA v6.95, I can't use vds5 unfortunately. BTW, to use CPP version of the same, I need IDA SDK to compile it. Right? – Holmes.Sherlock Jan 22 '17 at 18:24
  • I'm pretty sure the Hex-Rays SDK in 6.95 includes vds5 (native version). If not, you should contact support. – Igor Skochinsky Jan 22 '17 at 18:57
  • I just checked IDA SDK 6.95, couldn't find vds5. Where should it be located? I'll check one final time before reaching out support. – Holmes.Sherlock Jan 23 '17 at 5:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.