Commit Graph

11 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
Luke
692f4e05ef Fix ghidra script output 2024-05-24 03:09:00 +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
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
9437749455 Ghidra: Rebase dumped ELF images correctly (#120) 2021-01-10 17:41:52 +01:00
Camas
3c1f4e9421 Ghidra: Use getSourceFile to find Ghidra script location (#86)
`getAllScripts` was removed in a recent commit <2b49816c6c (diff-67260297e0f38cd74fe3ea2693266e52L555-L565)>

Use `getSourceFile` instead
2020-10-13 08:40:46 +02:00
Katy Coe
e4615453db Ghidra: Don't allow script execution without C types (#83) 2020-09-24 12:44:46 +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
25d5a68755 Script: Auto-detect available script targets (GetAvailableTargets) 2020-08-06 05:16:44 +02:00