videre-project / MTGOSDK

A software development kit (SDK) for inspecting and interacting with the Magic: The Gathering Online (MTGO) client.
Apache License 2.0
3 stars 0 forks source link

[MTGOSDK.Win32] Injection: Add shellcode assembler #21

Closed Qonfused closed 1 month ago

Qonfused commented 1 month ago

Adds a shellcode injector using the Iced assembler, removing all native dependencies (i.e. VC++, MSVCToolchain) from the SDK.

This works by injecting shellcode that bootstraps the .NET Framework CLR in the target process, and then loads the specified .NET assembly. This essentially works as a trampoline to call pClrHost->ExecuteInDefaultAppDomain() under our new AppDomain using the same approach as ScubaDiver.