Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Importing C++ classes into Ghidra? (https://forum.exetools.com/showthread.php?t=19551)

jonwil 06-04-2020 09:08

Importing C++ classes into Ghidra?
 
I have a binary and I have some C++ class definitions that go with that binary. Is there some way I can import them into Ghidra so I can use them in the decompiler?
Or alternatively is there a way to import the definitions from IDA somehow?

sendersu 06-04-2020 15:03

In IDA there is a nice plugin named ClassInformer, but it just scans the vtbls/rtti, not importing...

atom0s 06-04-2020 15:16

There are some C++ focused plugins for Ghidra that may help/be useful for this similar kind of thing. Although, I'm not sure if either have the exact feature you are requesting. (I haven't tested these personally.)

https://github.com/cmu-sei/pharos/tree/master/tools/ooanalyzer/ghidra/OOAnalyzerPlugin
https://github.com/astrelsky/Ghidra-Cpp-Class-Analyzer

TQN 06-05-2020 13:14

@JonhWill, you can export your vmt tables to structures in a .h file, and in Ghidra, you can import it into
Many script and plugin in IDA can export VMT tables to structs.


All times are GMT +8. The time now is 17:32.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX