FAIL InjectLibrary 32bit DLL on WIN7 x64

c++ / delphi package - dll injection and api hooking
Post Reply
iamupd
Posts: 13
Joined: Tue Feb 23, 2010 4:54 am
Location: seoul, south korea

FAIL InjectLibrary 32bit DLL on WIN7 x64

Post by iamupd »

hello madshi

I tried to inject 32bit dll (be signed) on WIN7(64bit). but returned fail.
I want to inject both of 32bit and 64bit.

DllInjector64.exe can inject 64bit dlls successfully, but cannot 32bit.
GetLastError code is 0x1f (A device attached to the system is not functioning.)

why??
LoadInjectionDriver(DRIVER_NAME, my32driver.sys, my64driver.sys) return SUCCESS.

please, help me.
jonny_valentine
Posts: 109
Joined: Thu Dec 30, 2004 9:59 pm
Location: UK

Post by jonny_valentine »

The problem is with the driver, you must sign the driver and the dll's. Please stop the driver and uninstall first, then try again.
The driver must be signed with a chain certificate from MS.
iamupd
Posts: 13
Joined: Tue Feb 23, 2010 4:54 am
Location: seoul, south korea

i've signed dlls~

Post by iamupd »

i've signed dlls and drivers~ but didn't works.

i think so, the problem is with the driver...
for find cause, i used driver loader application.
64bit driver file was loaded successfully, but 32bit was failed..
error code is 1275

- from MSDN -
ERROR_DRIVER_BLOCKED
1275
This driver has been blocked from loading

i've signed it.
Why it was blocked?
iamupd
Posts: 13
Joined: Tue Feb 23, 2010 4:54 am
Location: seoul, south korea

solved

Post by iamupd »

i've signed 32bit dlls to 32bit driver file... that's why the problem.

32bit driver CANNOT be loaded on WIN x64.

my mistake~

i signed both of 32bit dlls and 64bit dlls to 64bit driver file.

thank you!
Luiz.Bernardi
Posts: 31
Joined: Fri Apr 03, 2009 2:21 pm

Re: FAIL InjectLibrary 32bit DLL on WIN7 x64

Post by Luiz.Bernardi »

iamupd says: i signed both of 32bit dlls and 64bit dlls to 64bit driver file.
In my case, all DLL (32 and 64bit) have a same name. How i do to configure the driver file to use two DLL's with the same name???
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: FAIL InjectLibrary 32bit DLL on WIN7 x64

Post by madshi »

I think it would be wiser to use different file names. But it should still work: Just use the full dll file path instead of just the dll file name.
Post Reply