Commit Graph

105 Commits

Author SHA1 Message Date
LukeFZ
8055ed1cdb add support for metadata 2025-07-21 17:03:20 +02:00
LukeFZ
47cfb8176c update dependencies and remove cxxdemangler, as it was outdated 2025-01-25 16:59:12 +01:00
Luke
ec76447122 Fix misc. issues in the generated disassembler scripts (#17)
* attempt to fix ghidra script issues

* add ghidra python 3 note to readme

* fix binary ninja script erroring on function type parsing

* fix ida script not skipping function creation on pe binaries

* fix writing of multibyte strings breaking fake string segment

* also adjust binja write_string impl
2025-01-25 14:21:56 +01:00
Luke
b05c03964a Struct reading and disassembly script overhaul, various misc. loading fixes, bump to .NET 9 (#13)
* Bump projects to .net 9 and update nugets

* add VersionedSerialization + source generator

* migrate versioning to StructVersion class, add handling/detection for 29.2/31.2

* add new struct definitions

* rename serialization methods and add BinaryObjectStreamReader for interop

* Rework metadata struct loading to use new struct versioning

* move 29/31.1/.2 to use tags (-2022,-2023) instead of minor versions

* fix metadata usage validity checks

* rework code registration offsetting a bit and add second 29/31.1 condition

* tweak .1 condition (again)

* 29/31.2 was a psyop

* also remove 29.2 from the readme

* remove loading of packed dlls - this was a very unsafe feature

* support auto-recovering type indices from type handles
fixes loading of memory-dumped v29+ libraries since those replacee their class indices on load with a pointer to the corresponding type

* support loading PEs without an export table

* also read UnresolvedVirtualCallCount on regular v31

* Disable plugin loading for now

* Overhaul disassembler script + add Binary Ninja target (#12)

* Overhaul diassembler scripts:
- No longer defines top level functions
- Split into three classes: StatusHandler (like before), DisassemblerInterface (for interfacing with the used program API), ScriptContext (for definiting general functions that use the disassembler interface)
- Add type annotations to all class methods and remove 2.7 compatibility stuff (Ghidra now supports Python 3 so this is unnecessary anymore)
- Disassembler backends are now responsible for launching metadata/script processing, to better support disassembler differences
- String handling is back in the base ScriptContext class, disassembler interfaces opt into the fake string segment creation and fall back to the old method if it isn't supported

* Add Binary Ninja disassembler script backend
This uses the new backend-controlled execution to launch metadata processing on a background thread to keep the ui responsive

* make binary ninja script use own _BINARYNINJA_ define and add define helpers to header

* Update README to account for new script and binary ninja backend

* implement fake string segment functions for binary ninja but don't advertise support

* also cache API function types in binary ninja backend

* fix ida script and disable folders again

* Fix metadata usage issues caused by it being a value type now

* make TryMapVATR overrideable and implement it for ELFs

* Make field offset reading use TryMapVATR to reduce exceptions

* Fix NRE in Assembly ctor on < v24.2

* Update actions workflow to produce cross-platform CLI binaries, update readme to reflect .net 9 changes

* workflow: only restore packages for projects that are being built

* workflow: tweak caching and fix gui compilation

* workflow: remove double .zip in CLI artifact name

* 29/31.2 don't actually exist, this logic is not needed
2024-11-14 14:32:11 +01:00
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
85154ded5b update readme to refer to this repo and net8.0 folders 2024-07-15 16:11:03 +02:00
LukeFZ
2a492e02ba Update getScopedFullName for generic params + update README 2024-02-25 11:32:20 +01:00
LukeFZ
5b1d9c67d1 Add name mangling to Methods/MethodInfo/TypeInfo/TypeRef, remove Boxing from ValueTypes when used as the this parameter, fix crashes when a module has no attributes 2023-12-06 20:09:35 +01:00
LukeFZ
8755d99d63 Slight rebranding, add new README section, bump version to 2023.1 2023-12-01 09:53:01 +01:00
Katy Coe
116c6355e7 Update README.md with project suspension notice 2021-11-23 19:58:40 +01:00
Katy Coe
ca84049eb7 Update README.md 2021-04-12 18:59:56 +02:00
Katy Coe
9691497198 Update README.md (new tutorial) 2021-02-23 20:19:22 +01:00
Katy Coe
b6f4197aed Update README.md and assembly versions 2021-01-31 14:18:50 +01:00
Katy Coe
8079cc6f43 Update README.md 2021-01-25 10:00:35 +01:00
Katy Coe
3e4910a0fa Update README.md 2021-01-14 02:45:46 +01:00
Katy Coe
c1f801e2f9 Update README.md 2021-01-14 00:31:40 +01:00
Katy Coe
361f5179d5 Unity: Allow version selection from asset file 2021-01-11 02:30:26 +01:00
Katy Coe
7619e2992e Update README.md 2021-01-10 11:39:05 +01:00
Katy Coe
a5d0ea39e6 DLL: Add initial code to create custom attributes 2021-01-08 22:23:29 +01:00
Katy Coe
9e118ec8c4 Update README.md 2021-01-05 01:04:42 +01:00
Katy Coe
71be0f2af2 Update year in copyright messages 2021-01-04 05:26:43 +01:00
Katy Coe
f64d224b5a Update README.md 2020-12-26 00:14:26 +01:00
Katy Coe
bf6f019ef8 Update README.md 2020-12-22 03:31:53 +01:00
Katy Coe
6adbce20ab Update README.md 2020-12-19 22:14:55 +01:00
Katy Coe
37f0610eda Unity: Update for 2018.4.30, 2019.4.16, 2020.1.15-17, 2020.2.0+ 2020-12-19 19:47:14 +01:00
Katy Coe
c28898a26e Update README.md 2020-12-19 16:54:07 +01:00
Tim Gates
4b0b5f1384 docs: fix simple typo, concetenation -> concatenation
There is a small typo in README.md.

Should read `concatenation` rather than `concetenation`.
2020-12-17 15:27:51 +01:00
Katy Coe
64649d9f55 Update README.md 2020-12-14 02:59:40 +01:00
Katy Coe
05ba1678c5 Update README.md and CLI help 2020-12-13 01:56:09 +01:00
Katy Coe
752cd6184c Update README.md 2020-12-12 20:18:49 +01:00
Katy Coe
76ca271966 Update README.md 2020-12-09 22:04:34 +01:00
beep beep boop
df43c91f1d Bump Ookii.Dialogs.Wpf from 2.0.0 to 3.1.0 (README.md)
Bumps [Ookii.Dialogs.Wpf](https://github.com/augustoproiete/ookii-dialogs-wpf) from 2.0.0 to 3.1.0.
- [Release notes](https://github.com/augustoproiete/ookii-dialogs-wpf/releases)
- [Commits](https://github.com/augustoproiete/ookii-dialogs-wpf/compare/v2.0.0...v3.1.0)
2020-12-08 17:29:46 +01:00
Katy Coe
e153d5a451 Update README.md (new tutorial) 2020-11-27 12:09:11 +01:00
Katy Coe
c0f360e71f Update README.md and assembly versions 2020-11-26 23:57:11 +01:00
Katy Coe
2afdc8b421 CLI/GUI: Support AAB files 2020-09-17 10:00:47 +02:00
Katy Coe
acb7be6f28 Update README.md 2020-09-15 17:06:35 +02:00
Katy Coe
1745c48389 Update README.md and assembly version numbers to 2020.2 2020-08-17 03:01:07 +02:00
Katy Coe
7b68f8e428 Update README.md 2020-08-10 23:06:14 +02:00
Katy Coe
010bec7dc0 Update README.md 2020-08-09 20:45:42 +02:00
Katy Coe
bed8704a68 Update README.md 2020-08-09 00:32:28 +02:00
Katy Coe
148aca34cf Fix copy-paste typo in README.md 2020-08-08 05:48:46 +02:00
Katy Coe
113bdff299 Update README.md and related files 2020-08-08 04:33:29 +02:00
Katy Coe
9865813b96 Update README.md 2020-07-25 16:55:48 +02:00
Katy Coe
de73cfe8c3 Unity: Add headers for Unity 2020.1.0 2020-07-25 14:55:03 +02:00
Katy Coe
9e4c4ca7be Update UX and README.md 2020-07-19 16:57:42 +02:00
Katy Coe
6015d9e0ab AppModel: Add initial handling of methods (AppMethod) 2020-07-12 19:32:12 +02:00
Katy Coe
588695ac59 Improve README.md build instructions for OS X and Linux (#46) 2020-07-09 13:56:26 +02:00
Katy Coe
873a6c98f6 AppModel: First iteration of ApplicationModel API
Integrate with C++ scaffolding
Add new tests
Rename Il2CppModel to TypeModel
Incomplete IDAPython integration
CLI and GUI support
Update README.md
2020-07-09 03:48:50 +02:00
Katy Coe
1628d1f330 Update README.md 2020-07-02 16:47:00 +02:00
Katy Coe
c7cd6cca43 Update README.md 2020-06-24 10:49:42 +02:00