Commit Graph

118 Commits

Author SHA1 Message Date
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
LukeFZ
eddc24eca9 Add missing linebreaks and fix workflow 2023-12-01 10:00:54 +01:00
LukeFZ
8755d99d63 Slight rebranding, add new README section, bump version to 2023.1 2023-12-01 09:53:01 +01:00
LukeFZ
b11905a013 Update to .net 8 2023-11-29 19:44:57 +01:00
Katy Coe
96bbed8c8e GUI: Try desperately to make people follow basic instructions 2021-02-23 23:44:41 +01:00
Katy Coe
d665e1b3c8 Plugins: Add IPluginOption.SetFromString() 2021-01-26 11:28:20 +01:00
Katy Coe
fca91ff556 DLL: Allow suppression of metadata attributes 2021-01-12 02:17:23 +01:00
Katy Coe
a9ab4e627c Plugins: Prevent app from starting without plugins 2021-01-12 01:11:05 +01:00
Katy Coe
361f5179d5 Unity: Allow version selection from asset file 2021-01-11 02:30:26 +01:00
Katy Coe
7961fc6dab CLI/GUI: Add shim DLL output support 2021-01-10 11:38:45 +01:00
Katy Coe
688eed7cbf GUI: Don't forget all plugin options when clicking Refresh 2021-01-04 06:53:25 +01:00
Katy Coe
47d2dcda60 GUI: Fix plugin Enum options not working 2021-01-04 06:52:34 +01:00
Katy Coe
92104315be GUI: No silent crash on startup if plugin option type has changed 2021-01-04 05:43:51 +01:00
Katy Coe
71be0f2af2 Update year in copyright messages 2021-01-04 05:26:43 +01:00
Katy Coe
ec6f65b7dc ELF: Rebase if requested even if image is not dumped (#119) 2020-12-30 08:23:59 +01:00
Katy Coe
3e3818a2ed Plugins/GUI: Tidy up 2020-12-29 21:05:33 +01:00
Katy Coe
e09002a060 Plugins: Add PluginOptionFilePath.AllowedExtensions 2020-12-29 18:44:42 +01:00
Katy Coe
aecd41846d GUI: Add Cancel button to plugin configuration dialog 2020-12-29 18:23:16 +01:00
Katy Coe
9a867a7e58 GUI: Fix not loading numeric and boolean type options properly 2020-12-29 00:19:27 +01:00
Katy Coe
84b3b5f9a7 Plugins: Don't force validation on disabled options 2020-12-28 23:10:29 +01:00
Katy Coe
99f1c38b4c Plugins/GUI: Implement conditional option enabling 2020-12-28 08:33:12 +01:00
Katy Coe
096b2d9c5d GUI: Allow plugins to be reset to default options 2020-12-28 01:23:35 +01:00
Katy Coe
40a1785dff Plugins: Add MustExist/MustNotExist/IsFolder to PluginOptionFilePath 2020-12-28 00:01:04 +01:00
Katy Coe
a32a68b02f Plugins: Fail gracefully on multiple instances of same plugin 2020-12-27 23:59:41 +01:00
Katy Coe
863aa5ed7d Plugins: Implement ReentrantAttribute 2020-12-26 23:32:21 +01:00
Katy Coe
6491f0ada0 GUI: Plugin configuration is retained between sessions 2020-12-26 21:02:52 +01:00
Katy Coe
d7fcab640c GUI: Auto-migrate settings from previous version if needed 2020-12-26 06:06:21 +01:00
Katy Coe
94f13c35df GUI: Don't allow plugins to run without validating options at least once 2020-12-26 00:05:48 +01:00
Katy Coe
e929d8d97e Plugins: Add LoadPipelineStarting / LoadPipelineEnding, rename IsHandled to FullyProcessed 2020-12-25 22:29:31 +01:00
Katy Coe
61d86d7d96 Plugins: Pass PluginEventInfo instead of PluginErrorEventArgs to ErrorHandler 2020-12-24 00:12:55 +01:00
Katy Coe
2e7187795a GUI: Load plugins even if plugin window never opened 2020-12-24 00:04:21 +01:00
Katy Coe
62451e5131 Plugins: Add IPlugin.OptionsChanged 2020-12-23 23:55:43 +01:00
Katy Coe
e1adf20951 GUI: Add plugin option validation + many bug fixes to dialog 2020-12-23 22:31:27 +01:00
Katy Coe
482f08018f GUI: HexStringValueConvertor handles all numeric integer types 2020-12-23 22:29:58 +01:00
Katy Coe
12594576be GUI: Wrap descriptions in plugin configuration dialog 2020-12-22 03:28:02 +01:00
Katy Coe
e7bcd41d84 GUI: Tidy up status messages a bit 2020-12-22 03:18:32 +01:00
Katy Coe
b9409e7425 Plugins: Add hook TODOs 2020-12-21 23:02:32 +01:00
Katy Coe
c00b474f33 IL2CPP: Change metadata and binary to derive from BinaryObjectStream 2020-12-21 06:37:29 +01:00
Katy Coe
3e52ed48da GUI: Remove StackTrace from non-fatal error messages 2020-12-20 23:25:18 +01:00
Katy Coe
637952f360 GUI: Implement plugin interface 2020-12-19 20:49:39 +01:00
Katy Coe
7348003f36 GUI: Add unhandled exception handler for startup 2020-12-19 16:54:33 +01:00
Katy Coe
7da974d8f7 GUI: Add application icon 2020-12-19 16:54:23 +01:00
Katy Coe
7878193f74 Formats: Add option for multiple load strategies per sub-image 2020-12-14 02:52:57 +01:00
Katy Coe
aae7f9d921 GUI: Usability tweaks when using Linux process map 2020-12-13 01:38:38 +01:00
Katy Coe
625cba808f ELF: Tidy up LoadOptions and handling of dumped files 2020-12-13 01:37:28 +01:00
Katy Coe
c0f8e0eb17 GUI: Add load options dialog with ELF image base option 2020-12-12 20:14:48 +01:00
Katy Coe
08c1559222 API: Allow passing of load options to binary loaders 2020-12-11 22:44:48 +01:00
Katy Coe
39f2bca841 IL2CPP: Write decrypted strings back to metadata 2020-12-09 22:46:54 +01:00
Katy Coe
34819a114d CLI/GUI: Add support for saving processed metadata and binary 2020-12-09 21:55:29 +01:00
Katy Coe
21fa006085 Support XAPKs and ZIPs containing APKs 2020-12-08 18:57:48 +01:00