Search found 29 matches

by ameetmalekar
Tue Jun 14, 2016 11:59 am
Forum: madCodeHook
Topic: Driver InjectLibrary from folder
Replies: 8
Views: 7379

Re: Driver InjectLibrary from folder

Before raising this to you, we already gave a thought of using registry for solution but it will only work for a known target application pool. Meanwhile there are certain executables which are not installed and just copied on the system OR they do not have any installation path in Registry. The rea...
by ameetmalekar
Tue Jun 14, 2016 8:55 am
Forum: madCodeHook
Topic: Driver InjectLibrary from folder
Replies: 8
Views: 7379

Re: Driver InjectLibrary from folder

Yes, I tried with relative path (or full path substring) but it is not working. It only works on full path or only exe name.
by ameetmalekar
Tue Jun 14, 2016 6:38 am
Forum: madCodeHook
Topic: Driver InjectLibrary from folder
Replies: 8
Views: 7379

Re: Driver InjectLibrary from folder

I am facing another issue. I need to inject dll in a "path mask" from driver. Is there any way to give path mask as relative path instead of full path . It is working if I gave path mask as "C:\Program Files\MyApps\*.exe" But not working if path in "path mask" is relati...
by ameetmalekar
Mon Jun 13, 2016 9:56 am
Forum: madCodeHook
Topic: Driver InjectLibrary from folder
Replies: 8
Views: 7379

Re: Driver InjectLibrary from folder

Seems there was some issue with project setting. Created fresh project and now it is working.
by ameetmalekar
Wed Jun 01, 2016 9:11 am
Forum: madCodeHook
Topic: Driver InjectLibrary from folder
Replies: 8
Views: 7379

Driver InjectLibrary from folder

I am trying to call injectLibraryA(injection driver) in C++ exe, InJDrv.exe, with include mask having full path of target exe(in which dll is going to be injected). But when i execute the InJDrv.exe it crashes. Exe crashes on InjectLibraryA function. It fails for InjectLibraryA("TestInjectionDr...
by ameetmalekar
Thu May 26, 2016 6:14 am
Forum: madCodeHook
Topic: Check process before injection from driver
Replies: 1
Views: 3410

Check process before injection from driver

Hi,
Can we check if a process is running before injecting a dll from driver? I wanted to inject in target.exe only if check.exe is running.
by ameetmalekar
Fri Dec 20, 2013 1:16 pm
Forum: madCodeHook
Topic: InjectLibrary failed on microsoft windows server 2003
Replies: 27
Views: 25462

Re: InjectLibrary failed on microsoft windows server 2003

Thanks for the reply, What you are doing is exactly opposite. That is, running service on remote session and target process on main session. Here in below description I will use the term “main session” for VM without RDP. And will use the term “remote session” for the RDP session taken by mstsc of t...
by ameetmalekar
Tue Nov 26, 2013 5:02 am
Forum: madCodeHook
Topic: InjectLibrary failed on microsoft windows server 2003
Replies: 27
Views: 25462

Re: InjectLibrary failed on microsoft windows server 2003

Hi, Here I am summarizing the scenario. I am trying to inject a simple dll in internet explorer. The VM is Windows server 2003 standard edition service pack 2 and I am trying through RDP. The target application (internet explorer) is running on RDP session. It is getting successfully injected throug...
by ameetmalekar
Mon Nov 11, 2013 9:03 am
Forum: madCodeHook
Topic: InjectLibrary failed on microsoft windows server 2003
Replies: 27
Views: 25462

Re: InjectLibrary failed on microsoft windows server 2003

Sorry for that :sorry: , but we didn't think that RDP could be the reason.
Checked with new beta version (2.7.7.13) but still it is not able to inject with the scenario.
by ameetmalekar
Wed Oct 23, 2013 12:27 pm
Forum: madCodeHook
Topic: InjectLibrary failed on microsoft windows server 2003
Replies: 27
Views: 25462

Re: InjectLibrary failed on microsoft windows server 2003

Hi, Thanks for reply, Here is the scenario in which it is not working. The injector service is running on the 2003 machine. If i take another session with same user using RDP of that machine and run target process on that session then InjectLibrary fails. But it is working fine if I run target proce...
by ameetmalekar
Tue Oct 01, 2013 7:34 am
Forum: madCodeHook
Topic: Problem in hooked mshtml native method
Replies: 8
Views: 7597

Re: Problem in hooked mshtml native method

Hi, As per your suggestion to hook class member function, we wrote accompanied code below. The output of this code is: 1) Function is hooked. 2) Hooked function is called ONLY once. 3) ON UnHook Application crashes. Please help to identify the Problem below code class CDummyClass { public: CDummyCla...
by ameetmalekar
Fri Sep 27, 2013 11:09 am
Forum: madCodeHook
Topic: Problem in hooked mshtml native method
Replies: 8
Views: 7597

Re: Problem in hooked mshtml native method

Hi, When we try to compile the hook function with __thiscall we get following error: error C3865: '__thiscall' : can only be used on native member functions After figuring out the diassembly, we have found out that the calling convention of target function is c++ member function, i.e, __thiscall the...
by ameetmalekar
Fri Sep 27, 2013 8:34 am
Forum: madCodeHook
Topic: Problem in hooked mshtml native method
Replies: 8
Views: 7597

Re: Problem in hooked mshtml native method

We are not mixing it. We have tried different calling conventions types one after another.
by ameetmalekar
Fri Sep 27, 2013 7:04 am
Forum: madCodeHook
Topic: Problem in hooked mshtml native method
Replies: 8
Views: 7597

Problem in hooked mshtml native method

Hi, We are trying to hook C++ member function(non-exported) with following prototype from MSHTML.dll, by using HookCode. HRESULT CHtmTagStm::WriteTag(DWORD,wchar_t*,ULONG,BOOL); Hook functions we have tried are: HRESULT WINAPI PQR(void*,DWORD,wchar_t*,ULONG,BOOL); // 5 parameters HRESULT __fastcall ...