Commit Graph

12 Commits

Author SHA1 Message Date
commonuserlol
665e70324f Ghidra script improvements (#7)
* Always set image base to 0 for Ghidra

* Script improvements

Everything here is for Ghidra:
* Use `%` instead of f-string (Ghidra still uses python 2.7, meanwhile f-strings were added in 3.6)
* Handle errors when applying type (Ghidra throws exception unlike IDA)
* Don't trigger decompiler (analysis will be faster)
* Revert back string literals

* Set image base to zero only for ELF

I don't know about PE with Ghidra

* Update README for disassemblers

* IDA 7.6 required due `ida_ida.inf_is_32bit_exactly()`

* Ghidra now don't launch decompiler for whole binary

* Set image base to 0 in script

Remove %IMAGE_BASE% since we don't use it anymore

* Create XREFs for Ghidra

Now you can jump from `MethodInfo` to actual method

* Fix demangler for Ghidra

Ghidra's demangler can process only functions in auto analysis. Now both `TypeInfo` and `MethodInfo` are displayed properly

---------

Co-authored-by: commonuserlol <commonuserlol@users.noreply.github.com>
2024-08-10 21:00:41 +02:00
LukeFZ
0f7cd027c3 create fake string segment to allow ida to show the actual strings, also add custom xref between methodinfo and method when both exist 2024-02-16 11:43:15 +01:00
LukeFZ
42d97813df Fix idaclang support for 8.3 2024-02-16 09:49:00 +01:00
LukeFZ
939bedac57 Skip function boundaries when a .pdata segment is detected, add (very slow) folder creation which is disabled by default 2024-02-13 15:02:16 +01:00
LukeFZ
55532fdc8a Overhaul IDA script output and add progress waitbox 2024-02-13 06:48:36 +01:00
Katy Coe
5c93d4e8d9 IDA: Fix SetType failure when using existing types 2021-01-08 22:02:47 +01:00
lifeengines
a8c518b4c0 IDA: Fix idc.SetType elides leading underscores from parameter names (#78) 2020-09-24 12:24:44 +02:00
lifeengines
db1805cb12 IDA: Optimize function creation (#75) 2020-09-21 20:25:35 +02:00
Katy Coe
e341f8886b Python: Allow creation of typed arrays in IDA and Ghidra 2020-09-06 05:23:28 +02:00
Katy Coe
671e028e37 Python: Don't use built-in 'type' as parameter name 2020-09-02 09:11:25 +02:00
Katy Coe
da1316586a IDA: Fix failure to process C header if script and binary folders differ 2020-09-02 04:51:07 +02:00
Katy Coe
25d5a68755 Script: Auto-detect available script targets (GetAvailableTargets) 2020-08-06 05:16:44 +02:00