kubo / injector

Library for injecting a shared library into a Linux or Windows process
GNU General Public License v2.0
504 stars 97 forks source link

Don't work on some windows pc. #3

Closed huhuang03 closed 4 years ago

huhuang03 commented 4 years ago

Same code, on two pc, one work and one not. The error msg from injector_error() is:

LoadLibrary in the target process failed: Invalid access to memory location.

What's the maybe reason..

kubo commented 4 years ago

Could you check the DLL to be injected. As far as I googled, LoadLibrary returns the error ERROR_NOACCESS when a DLL could not be loaded by access violation. (See here)

Otherwise, could you post a sample program which causes the error.

huhuang03 commented 4 years ago

Thanks for your reply. After some research. I found that the issue is the injected dll has a dependency on msvcxxx.dll, which may not exist on some pc. After some modify remove the msvcxxx.dll dependency. It works.