Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2020, 09:08
jonwil jonwil is offline
VIP
 
Join Date: Feb 2004
Posts: 387
Rept. Given: 2
Rept. Rcvd 21 Times in 9 Posts
Thanks Given: 2
Thanks Rcvd at 65 Times in 34 Posts
jonwil Reputation: 21
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?
Reply With Quote
  #2  
Old 06-04-2020, 15:03
sendersu sendersu is online now
VIP
 
Join Date: Oct 2010
Posts: 1,066
Rept. Given: 332
Rept. Rcvd 223 Times in 115 Posts
Thanks Given: 234
Thanks Rcvd at 512 Times in 288 Posts
sendersu Reputation: 200-299 sendersu Reputation: 200-299 sendersu Reputation: 200-299
In IDA there is a nice plugin named ClassInformer, but it just scans the vtbls/rtti, not importing...
Reply With Quote
  #3  
Old 06-04-2020, 15:16
atom0s's Avatar
atom0s atom0s is online now
Family
 
Join Date: Jan 2015
Location: 127.0.0.1
Posts: 396
Rept. Given: 26
Rept. Rcvd 126 Times in 63 Posts
Thanks Given: 54
Thanks Rcvd at 730 Times in 279 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
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
__________________
Personal Projects Site: https://atom0s.com
Reply With Quote
The Following User Says Thank You to atom0s For This Useful Post:
TQN (06-05-2020)
  #4  
Old 06-05-2020, 13:14
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 341
Rept. Given: 142
Rept. Rcvd 20 Times in 12 Posts
Thanks Given: 166
Thanks Rcvd at 129 Times in 42 Posts
TQN Reputation: 20
@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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating definition of C++ classes/vtables in IDA? jonwil General Discussion 1 09-02-2020 18:59
[Android] Dex Manager v1.1 - Designed To Play With Classes.dex Jasi2169 Community Tools 2 11-01-2017 03:00


All times are GMT +8. The time now is 16:37.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )