Dewera / Lunar

A lightweight native DLL mapping library that supports mapping directly from memory
MIT License
586 stars 102 forks source link

Only certain windows versions compatible? #23

Closed SnipeCPPS closed 3 years ago

SnipeCPPS commented 3 years ago

Hey, I have a slight issue with your Lunar mapping library (which I love btw, makes everything so much easier so thanks a lot for making it). The only issue is that I believe it doesn't work on specific window builds such as Windows 10 20H2 (19042.906). Whereas, it will work fine on the windows build Windows 10 20H2 (19043.867).

Basically, when injecting the DLL it comes up with the error System.ApplicationException: Failed to load the dependency KERNEL32.dll into the process at Lunar.LibraryMapper.LoadDependencies() at Lunar.LibraryMapper.MapLibrary()

Testing it on other Windows versions such as 1909 etc work perfectly fine too, so is it an issue due to the windows version? If so, would there be anyway to fix it?

Thank you.

Dewera commented 3 years ago

I've noticed that the recent Windows versions seem to break with the current shellcode execution method. I'm currently working on a fix but just needs more testing before I can release it as I'm not actually entirely sure what changed internally in Windows that causes these issues.

You can refer to #22 which hopefully will fix the issue for the time being.

SnipeCPPS commented 3 years ago

Ah perfect! That fixed the issue, thank you!