InitializeMadCHook is not returning control.

c++ / delphi package - dll injection and api hooking
Post Reply
manutai
Posts: 85
Joined: Sun Aug 03, 2008 1:40 am

InitializeMadCHook is not returning control.

Post by manutai »

We are doing system wide injection of one DLL. In the dll initialize we call InitializeMadCHook() function. While initiliazing library after injection in the putty.exe(SSH, Telnet and Rlogin Client), xhost.exe(Cygwin) and xWin.exe(Cygwin) calling InitializeMadCHook is hanged inside and not returning control.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: InitializeMadCHook is not returning control.

Post by madshi »

Hmmmm... I've never heard of such a problem yet. How can I reproduce it? Does it happen with an "empty" hook dll, too? Which exact OS? Are you using the latest madCodeHook version (3.1.6)?
manutai
Posts: 85
Joined: Sun Aug 03, 2008 1:40 am

Re: InitializeMadCHook is not returning control.

Post by manutai »

The issue is coming on Windows XP - SP3 and Windows Server 2008 R2 - SP1 (64 bit), but it is not coming on windows 7. You have to install cygwin with X11 package.
The cygwin can be downloaded from http://cygwin.com/install.html. Now, if you inject a hooking dll system wide and start xwin server(from Cygwin). You will not get to see its UI and the process will be shown in task manger. The InitializeMadCHook() function in the dll hangs and does not return. We haven't hooked any thing until now, so it doesn't matters whether it is a empty hook dll or not.
manutai
Posts: 85
Joined: Sun Aug 03, 2008 1:40 am

Re: InitializeMadCHook is not returning control.

Post by manutai »

The madcodehook version, we have used is 3.1.5
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: InitializeMadCHook is not returning control.

Post by madshi »

Can you please double check with 3.1.6, just to be sure?
Post Reply