1329 Commits

Author SHA1 Message Date
LukeFZ
2603c81d03 disable aot publish and enable single file for redux cli 2025-07-30 00:01:30 +02:00
LukeFZ
4cc3862436 add workflow for new cli and add back old gui workflow 2025-07-29 23:58:42 +02:00
LukeFZ
e5dc520698 replace all Console.WriteLine calls in core inspector with AnsiConsole calls 2025-07-29 23:54:41 +02:00
LukeFZ
e3f6d8444f add redux CLI based on redux GUI output formats 2025-07-29 23:47:38 +02:00
LukeFZ
832b0020eb make inspector version a server api, split up output subtypes and tweak some option names 2025-07-29 23:46:14 +02:00
LukeFZ
6583787d8f seperate redux ui impl into FrontendCore project 2025-07-29 20:39:12 +02:00
LukeFZ
62a27ee47f show current version and hash in new ui footer 2025-07-29 18:56:49 +02:00
LukeFZ
5d92ceb2f3 change the default port for new ui dev to 5000 2025-07-29 18:18:15 +02:00
LukeFZ
67bb15d7a2 fix il2cpp_array_size_t not being an actual type for later method definitions 2025-07-25 21:38:05 +02:00
LukeFZ
9d9ca9a253 fix spelling mistakes in gui outputs 2025-07-25 21:27:47 +02:00
LukeFZ
eada036ce0 remove debug log line 2025-07-25 21:22:20 +02:00
LukeFZ
79521493da expose forward definitions in AppModel, fix issue with method-only used types not being emitted 2025-07-25 21:21:43 +02:00
LukeFZ
48473e9247 reduce clang errors for header file, fix better array size struct, emit required forward definitions in header 2025-07-25 21:21:10 +02:00
LukeFZ
6ddbf7ecae add initial support for required forward references in il2cpp types, also fix issues with type names clashing with il2cpp api types 2025-07-25 21:20:04 +02:00
LukeFZ
771eb8eb52 tweak symbol reading a bit and remove sht relocation reading 2025-07-25 17:43:29 +02:00
LukeFZ
cb6f913bce remove dependency on a section being named .text in loaded pe files 2025-07-25 17:43:06 +02:00
LukeFZ
9c76271f6c fix toAddr calls in ghidra script target 2025-07-21 17:18:36 +02:00
LukeFZ
2f13a27296 new ui: clear out loaded binary if no IL2CPP images could be loaded 2025-07-21 17:14:42 +02:00
LukeFZ
a8a757f3f5 fix new ui not allowing script exports other than ida 2025-07-21 17:14:19 +02:00
LukeFZ
893d2c1300 unify logic for getting element type index 2025-07-21 17:06:16 +02:00
LukeFZ
8055ed1cdb add support for metadata 2025-07-21 17:03:20 +02:00
LukeFZ
d70db09901 fix and enable binary ninja fake string segment support 2025-04-23 16:52:05 +02:00
LukeFZ
c12429bf97 add il2cpp file (binary, metadata) export to advanced tab 2025-04-22 14:53:08 +02:00
LukeFZ
aa53eb2dea only build tauri component in c# release builds 2025-04-22 14:52:41 +02:00
LukeFZ
74ed53b201 embed ui executable directly into c# assembly 2025-04-20 16:57:32 +02:00
LukeFZ
1163ed597c add "start export" button on format selection screen, clear all toasts after selecting an export format 2025-04-20 16:26:01 +02:00
LukeFZ
6659e0893b fix symbol table loading in some modified elfs 2025-03-11 15:12:48 +01:00
LukeFZ
404265bd1e ELF loading should not use the file offset for loading the dynamic section 2025-03-01 05:46:00 +01:00
LukeFZ
fe56b2fe2f add basic support for processing LC_DYLD_CHAINED_FIXUPS 2025-02-14 19:53:18 +01:00
LukeFZ
d87a6ef3e3 process other queued exports even if one fails and show error message 2025-02-08 17:42:10 +01:00
LukeFZ
ffb1996252 smaller tweaks, hack around loops in cpp type layouting 2025-02-08 17:40:15 +01:00
LukeFZ
e6bd289aa4 fix c# single file output due to invalid output path 2025-02-08 17:39:17 +01:00
LukeFZ
47cfb8176c update dependencies and remove cxxdemangler, as it was outdated 2025-01-25 16:59:12 +01:00
LukeFZ
6ee0813572 fix workflow errors 2025-01-25 16:26:18 +01:00
LukeFZ
ee81375265 force single file publishing and add initial gh workflow for publishing ui 2025-01-25 16:22:33 +01:00
LukeFZ
1b6cf7c776 target WinExe to hide console window in release mode, move ui exe into resources 2025-01-25 15:51:33 +01:00
LukeFZ
44af299ec3 Initial commit of new UI frontend component 2025-01-25 15:38:45 +01:00
LukeFZ
cc822b418b Initial commit of new UI c# component 2025-01-25 15:37:43 +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
LukeFZ
4e46c29cee Merge branch 'master' of https://github.com/LukeFZ/Il2CppInspectorRedux 2024-12-13 20:58:57 +01:00
LukeFZ
507c42024e Fix loading of 32-Bit binaries by removing shadowed Bits property 2024-12-13 20:58:41 +01:00
Luke
8403f8a62d Fix incorrect if condition in GetVTable causing them to all be empty 2024-11-19 00:13:26 +01:00
LukeFZ
5254c4b85a adjust v24.4<->v24.5 condition and update sln file 2024-11-17 23:20:50 +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
LukeFZ
5b0476fcc5 add remaining 31.1/31.2 versioning conditions 2024-08-18 23:23:32 +02:00
LukeFZ
4ce4d0e799 backport 29/31 version fixes from new versioning branch 2024-08-18 23:20:49 +02: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
61087849bd Merge branch 'master' of https://github.com/LukeFZ/Il2CppInspectorRedux 2024-07-15 16:11:42 +02:00
LukeFZ
b4aaa8df5e Make script paths always use / as the path seperator to be cross-compatible 2024-07-15 16:11:24 +02:00
LukeFZ
85154ded5b update readme to refer to this repo and net8.0 folders 2024-07-15 16:11:03 +02:00