troubles with madconfigdrv.exe

c++ / delphi package - dll injection and api hooking
Post Reply
erickengelke
Posts: 8
Joined: Tue May 13, 2014 5:50 pm

troubles with madconfigdrv.exe

Post by erickengelke »

Hi,

I've got a problem with the new madshi codehook system. I'm using Delphi XE6.
I can't get the sample HookProcesCreation32.dll to work.
I moved the Win SDK to the front of my path, but it hasn't helped.

I compiled the 32 bit DLL and EXE
I codesigned the DLL with my GlobalSign code cert

C:\Program Files (x86)\madCollection\madCodeHook\Driver>madconfigdrv d:\appwatch
\proc\HookProcessCreation32.dll -unsafestopallowed
Exception EAccessViolation in Modul madConfigDrv.exe bei 000026A9.
Zugriffsverletzung bei Adresse 004026A9 in Modul 'madConfigDrv.exe'. Lesen von A
dresse 0026FFFF.

and Injection driver configure tool has stopped working.
appears in a popup box.

Any suggestions? Thanks in advance.

Erick
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: troubles with madconfigdrv.exe

Post by madshi »

madConfigDrv shouldn't crash, of course, but you're not using it correctly. The madConfigDrv tool needs your driver file path as the first parameter and the driver "name" as the second parameter. Please look at the demo here:

http://madshi.net/HookProcessCreation.zip

This download contains a batch file which shows how to use madConfigDrv, and in which order to configure and sign the driver. Simply modify the batch file to point to the correct paths on your harddisk etc, then it should work.
erickengelke
Posts: 8
Joined: Tue May 13, 2014 5:50 pm

Re: troubles with madconfigdrv.exe

Post by erickengelke »

Guten Tag,

Danke. That works perfectly.

Erick
Post Reply