xmoezzz / KrkrExtract

A tool that can extract and pack krkr2 and krkrz's xp3 files
1.19k stars 121 forks source link

Rewrite KrkrExtract GUI #84

Closed fengberd closed 4 years ago

fengberd commented 4 years ago

Rewrite KrkrExtract GUI part, pure C# implemented DLL injector Delete legacy LoaderHelper dll Tested on Windows 10 & Windows Server 2012 R2 Tested with bug02_yakata(死に逝く君、館に芽吹く憎悪) package edition

xmoezzz commented 4 years ago

thanks! later I will modify some source code then merge don't use LoadLibraryA (I prefer LoadLibraryW or LdrLoadDll)

fengberd commented 4 years ago

Fine. I actually realized it would be inappropriate to use LoadLibraryA with Encoding.UTF8 right now. LoadLibraryW might be a better choice, since LdrLoadDll is a undocumented API, requires multiple arguments and thus increases shellcode complexity

fengberd commented 4 years ago

Here's the new commit, replaced API with LoadLibraryW and proper UTF-16 encoding. Tested with Chinese path and confirmed to be working.