Search found 35 matches

by Chromix
Sun Oct 19, 2008 10:09 am
Forum: madCodeHook
Topic: How to inject system wide except Explorer.exe ?
Replies: 5
Views: 5049

Ah ok, I wasn't aware of that delphi specific issue.
I've been using MCH only with C++ so far.
by Chromix
Sat Oct 18, 2008 9:07 pm
Forum: madCodeHook
Topic: How to inject system wide except Explorer.exe ?
Replies: 5
Views: 5049

You can have your injected DLL check the name of the process it gets injected into. So if DLLMain determines that it got injected (DLL_PROCESS_ATTACH) into a blacklisted process: simply return "false" and it'll be unloaded.
by Chromix
Wed Sep 27, 2006 11:18 pm
Forum: madCodeHook
Topic: 'A' functions calling 'W' functions on NT/2K/XP
Replies: 3
Views: 3308

MessageBoxA calls MessageBoxExW on Win2k and MessageBoxTimeoutW on WinXP

You can check the call chains here.
Example: MessageBoxA on WinXP SP2.
by Chromix
Tue Jun 13, 2006 9:19 pm
Forum: madCodeHook
Topic: Crash
Replies: 3
Views: 3401

Let me know if you have some ideas/directions how to solve this issue - I must make my add-on compatible with that plug-in. You could try to hook the plugins hooking functions. Then you could simply call the plugins "shared callbacks" from your plugin. Thats a pretty specific solution tho...
by Chromix
Fri May 05, 2006 7:59 pm
Forum: madCodeHook
Topic: 'FindFirstFile' hooking
Replies: 10
Views: 17277

The files will only be hidden while your program is running. Once someone terminates it, they'll become visible (assuming all injected DLLs rely on your main program). The other way would be to remove its autostart entry. Only to hide files is a very weak protection. Encrypted folders are way more s...
by Chromix
Fri Apr 28, 2006 7:34 am
Forum: madCodeHook
Topic: MadCodeHook - full version
Replies: 36
Views: 25273

You might need to buy the "company" or "company source" version for that purpose.

Also, this posting might be of interest to you:
viewtopic.php?t=1151
by Chromix
Wed Jan 25, 2006 7:52 am
Forum: madCodeHook
Topic: Make a delay in dll .
Replies: 18
Views: 12799

Create a new thread and use Sleep() to pause it for some time. That way the host app won't block.
Delaying execution using a while loop is called busy waiting and is considered bad.
by Chromix
Thu Jan 19, 2006 11:37 pm
Forum: madCodeHook
Topic: asm question
Replies: 2
Views: 3269

Being too lazy to write a reply myself:
http://www.sysinternals.com/Forum/forum ... &PN=2#8013
:wink:
by Chromix
Thu Dec 22, 2005 6:42 pm
Forum: madCodeHook
Topic: NtCreateFile and ntdll
Replies: 10
Views: 12173

The registers & values on the stack are 32bit on 32bit processors.
So you can safely use DWORDs.
by Chromix
Thu Dec 22, 2005 3:59 pm
Forum: madCodeHook
Topic: NtCreateFile and ntdll
Replies: 10
Views: 12173

There is a type conversion table here:
http://www.drbob42.com/delphi/headconv.htm

When in doubt, use a DWORD for transparency :wink:
by Chromix
Thu Dec 15, 2005 9:11 am
Forum: madCodeHook
Topic: ESP Error After Injecting Dll
Replies: 7
Views: 6164

Your compiler may use a different calling convention by default.
Try fastcall, cdecl and stdcall as default setting.
by Chromix
Wed Dec 14, 2005 7:19 pm
Forum: madCodeHook
Topic: ESP Error After Injecting Dll
Replies: 7
Views: 6164

Maybe you didn't use the same calling convention as the function you hooked uses.
by Chromix
Fri Dec 09, 2005 8:50 pm
Forum: madDisAsm
Topic: need help
Replies: 3
Views: 18758

It seems you've memory mapped a small exe file.
Exe files are usually mapped at 0x400000 or 0x500000.
Addresses in exe files, like the API call in the first line, won't get relocated when you map them to a different location.
by Chromix
Fri Nov 25, 2005 8:46 pm
Forum: madCodeHook
Topic: any way to exclude apps/dlls from being hooked?
Replies: 1
Views: 2781

The injected DLL could check which application it got injected into (GetModuleName). If it is notepad.exe, your DllMain function can return 0, so it'll automatically get uninjected again.
by Chromix
Tue Nov 22, 2005 9:53 am
Forum: madCodeHook
Topic: about mIRC DLL.
Replies: 5
Views: 4879

Yes, mIRC can call functions from DLLs (check the helpfile for /dll).
You could write a small DLL which exports a single function.
When called by mIRC, it'll load the madcodehook DLL and inject into i.e. Calculator.