Inject multiple dlls with CreateProcessExW

c++ / delphi package - dll injection and api hooking

Inject multiple dlls with CreateProcessExW

Postby hardik.choudhary » Wed Nov 20, 2019 11:19 am

Hi, as far as I know, createProcessExW allows us to inject a single dll, at the time of process creation. Is there a way to inject multiple dlls with createProcessExW?
Thanks in advance.
Posts: 4
Joined: Wed Nov 13, 2019 1:01 pm

Re: Inject multiple dlls with CreateProcessExW

Postby madshi » Wed Nov 20, 2019 1:31 pm

All CreateProcessEx does inside is:

1) CreateProcess with CREATE_SUSPENDED.
2) InjectLibrary
3) ResumeThread

You can do the same, but with multiple InjectLibrary calls to inject multiple dlls. The trick here is that creating the process in suspended state (and keeping it that way during injection) allows madCodeHook to use a different injection method.
Site Admin
Posts: 10268
Joined: Sun Mar 21, 2004 5:25 pm

Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 32 guests