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

1
  • My browser doesn't like Flash :) Can you make a screenshot and include it in your post? Commented Jan 22, 2017 at 7:35

1 Answer 1

2

See the vds5 plugin in the Hex-Rays SDK.

/* * Hex-Rays Decompiler project * Copyright (c) 2007-2008 by Hex-Rays, [email protected] * 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. * */ 
7
  • Python version of vds5 is not available for IDA v6.95 github.com/idapython/src/tree/master/examples Commented Jan 22, 2017 at 17:44
  • 2
    @Holmes.Sherlock and your point is? Commented Jan 22, 2017 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? Commented Jan 22, 2017 at 18:24
  • I'm pretty sure the Hex-Rays SDK in 6.95 includes vds5 (native version). If not, you should contact support. Commented Jan 22, 2017 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. Commented Jan 23, 2017 at 5:50

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.