HookAPI causing problem in Launching Clicker 6.exe

c++ / delphi package - dll injection and api hooking
Post Reply
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

We are having problem with Clicker 6.exe and HookAPI. In our project we are using madshi library v 3.0.1.
We are injecting our DLL in other process and hooking winsock releated function for allowing and blocking access to predefined URL’s.
Whenever we are launching Clicker.exe it never shows UI and keeps running in background. We have troubleshoot the problem and found HookAPI call is causing the problem.
In HookAPI, as we are replacing original call with our callback function. This is causing issue with Clicker 6.exe.

Following is the codes we are using in DLL attach:

InitializeMadCHook();
HookAPI("ws2_32.dll","connect",ShadowConnect,(PVOID*) &connectNext));

If we use UnHookAPI after HookAPI then application is getting launched but without unhookapi no success.

To troubleshoot further, I have used demo application “ProcessCreationDemo” provided in madcollection\madcodehook. I have tried applying both System and User mode hooks.In both mode, Clicker 6.exe is not getting launched all other applications are working fine.

For Clicker 6 applications go to following URL:

http://www.cricksoft.com/uk/products/to ... /home.aspx
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by madshi »

I'm not sure 100% sure what you're saying. Are you saying that hooking "connect" makes problems? Or are you saying that hooking *any* API with madCodeHook makes problems?

Which OS are we talking about? And which bitdepth does the Clicker 6 process have?
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

Sorry for not being clear.

Hooking *any* API with madCodeHook makes problems. we are using XP 32 bit machine.
we have not tested on other OS. I will test and let you know.
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

I have tested clicker 6 and madshi hooking on few 32 bit and 64 bit machines.
Clicker 6 is not getting launch if we hook any API.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by madshi »

Is there a Clicker demo/evaluation version available with which I could reproduce the problem? Can't seem to find one on their homepage, on a quick check...
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

Hi,

Please provide me you are mail id. I will provide you the download link and install details.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by madshi »

madshi (at) gmail.
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

I have emailed you the details.
manjeetk
Posts: 32
Joined: Thu Apr 07, 2011 6:40 am

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by manjeetk »

Are you able to produce this issue? Any update..
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: HookAPI causing problem in Launching Clicker 6.exe

Post by madshi »

Sorry for the late reply. Problem fixed in latest beta build:

http://madshi.net/madCollectionBeta.exe (2.7.1.18)
Post Reply