injectory icon indicating copy to clipboard operation
injectory copied to clipboard

Injection not working

Open haseeb-heaven opened this issue 4 years ago • 2 comments

When injecting with -I option i got this

injectory: at process.cpp(175) Process::runInHiddenThread() [struct errinfo_text_ ] = call to function in remote process failed

And after application crashes. I am using 32bit version of injector

haseeb-heaven avatar Jul 26 '20 12:07 haseeb-heaven

Hmm, do you get the error right away or after ~5 seconds? the -I option only calls Windows WaitForInputIdle()

https://github.com/blole/injectory/blob/74634c08e1e3caa43b649bb768c917fd1c594651/injectory/process.hpp#L48-L52

with a hardcoded 5 second wait time:

https://github.com/blole/injectory/blob/74634c08e1e3caa43b649bb768c917fd1c594651/injectory/main.cpp#L268-L269

And I'm not really sure how WaitForInputIdle() behaves, but I'd guess it depends on the application you're trying to inject. Probably the wait time should be made configurable

blole avatar Jun 13 '21 11:06 blole