Commit Graph

1295 Commits

Author SHA1 Message Date
LukeFZ
e67f856299 also remove 29.2 from the readme 2024-09-01 02:02:13 +02:00
LukeFZ
7632ff2283 29/31.2 was a psyop 2024-09-01 02:01:34 +02:00
LukeFZ
1a12cf5081 tweak .1 condition (again) 2024-08-30 20:23:17 +02:00
LukeFZ
e6c51b47d6 rework code registration offsetting a bit and add second 29/31.1 condition 2024-08-24 22:55:35 +02:00
LukeFZ
5d827fe881 fix metadata usage validity checks 2024-08-18 22:40:29 +02:00
LukeFZ
a7081ccfa9 move 29/31.1/.2 to use tags (-2022,-2023) instead of minor versions 2024-08-18 22:40:14 +02:00
LukeFZ
43d7433e12 Rework metadata struct loading to use new struct versioning 2024-08-17 13:52:09 +02:00
LukeFZ
6c59434984 rename serialization methods and add BinaryObjectStreamReader for interop 2024-08-14 01:00:32 +02:00
LukeFZ
2d3b186b4d add new struct definitions 2024-08-13 18:34:22 +02:00
LukeFZ
23e873280d migrate versioning to StructVersion class, add handling/detection for 29.2/31.2 2024-08-13 15:00:20 +02:00
LukeFZ
22ecdc3612 add VersionedSerialization + source generator 2024-08-13 04:27:23 +02:00
LukeFZ
30c019c4ef Bump projects to .net 9 and update nugets 2024-08-13 04:23: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
Luke
bc8c7c87e0 Merge pull request #5 from commonuserlol/master
Print banner only on windows
2024-07-14 22:06:48 +02:00
commonuserlol
9855aa3b3f Print banner only on windows
TLDR: GetVersionInfo works only with PE Header

Reference: https://stackoverflow.com/questions/63773485/c-sharp-fileversioninfo-getversioninfo-not-working-on-mac-os
2024-07-10 19:32:02 +03:00
LukeFZ
87766f6f96 Add support for metadata version 29.2 and 31 2024-06-24 18:41:14 +02:00
LukeFZ
98edac1aea Allow usage without the plugins folder 2024-06-24 18:40:19 +02:00
Luke
396c222ac5 Tweak 29.1 heuristic 2024-06-24 14:18:49 +02:00
Luke
04263803e3 Fix CLI crashing on launch in single file builds 2024-05-24 03:19:46 +02:00
Luke
692f4e05ef Fix ghidra script output 2024-05-24 03:09:00 +02:00
LukeFZ
b21b6e89ab properly fix scoped name for generic arrays 2024-02-27 17:34:24 +01:00
LukeFZ
1e27f8672d Dump default bytearray value as base64 in c# output 2024-02-25 15:26:46 +01:00
LukeFZ
eababc31f3 Add fallback to invalid compressed int in BlobReader 2024-02-25 15:24:09 +01:00
LukeFZ
e328ed9b84 just check for FullName == null in getScopedFullname 2024-02-25 15:23:58 +01:00
LukeFZ
2a492e02ba Update getScopedFullName for generic params + update README 2024-02-25 11:32:20 +01: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
LukeFZ
6b060c274a Fix assembly shim output for older Unity versions due to non-explicit class layouts 2023-12-10 21:58:22 +01:00
LukeFZ
7b03b939a0 Fix some issues loading ELFs with invalid SHTs and broken symbol entries 2023-12-09 14:01:54 +01:00
LukeFZ
ef56ebbd2f Fix header generation when a struct contains an enum pointer 2023-12-07 20:53:03 +01:00
LukeFZ
1d2890961c Fix custom attribute parsing when a null array is used and when an assembly has no attributes 2023-12-07 20:52:06 +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
e9434f4cad Add better il2cpp_array_size_t definition for script outputs in versions post 2017.2.1, fix some other cpp gen issues 2023-12-02 11:22:32 +01:00
LukeFZ
f1cb0d14a2 Export FieldInfo/FIeldRva contents into script metadata and import as comments 2023-12-02 08:27:12 +01:00
LukeFZ
c2cb88ad81 replace wget with Invoke-WebRequest 2023-12-01 10:51:55 +01:00
LukeFZ
3e5622ac37 Fix get-plugins.ps1 2023-12-01 10:45:09 +01:00
LukeFZ
a3c0724107 Add plugins folder into workflow 2023-12-01 10:36:16 +01:00
LukeFZ
83c8579c12 Fix output directory 2023-12-01 10:22:35 +01:00
LukeFZ
a4716c1a0e Forgot that CLI isnt windows specific 2023-12-01 10:17:05 +01:00
LukeFZ
046e779057 Add cache to workflow and other fixes 2023-12-01 10:09:34 +01:00
LukeFZ
eddc24eca9 Add missing linebreaks and fix workflow 2023-12-01 10:00:54 +01:00
LukeFZ
adbcc37c14 Add workflow 2023-12-01 09:53:19 +01:00
LukeFZ
8755d99d63 Slight rebranding, add new README section, bump version to 2023.1 2023-12-01 09:53:01 +01:00
LukeFZ
5afe295ef0 also set rva value as dnlib InitialValue 2023-12-01 09:39:02 +01:00
LukeFZ
7120970ece Use actual size of static array initializers 2023-12-01 08:14:12 +01:00