but if you want to use CreateProcess you can just hook the CreateProcessInternal Function and return CreateProcess() with your given parameters, it should work.
Your trampolin (called "jmp" in your detourFunc) does not have execute rights. So when you call the (logical) original function, which begins with your trampolin, it will trigger an access violation at the first instruction of the trampolin.
Correct:
Code:
...
VirtualProtect(jmp, len + 5, PAGE_EXECUTE_READWRITE, &dwback); // this will make your trampolin executable
VirtualProtect(src, len, PAGE_READWRITE, &dwback);
...
Thanks for your replys guys i appreciate it, will try once again if it works . Thought the problem was Aclayers.dll that is called when the hook returns. Testing now...
[Tutorial] Hooking API's using C# 08/17/2020 - Coding Tutorials - 6 Replies Hello epvp, today i'm going to teach you how to hook MessageBox using C# ;)
Requirements & information ]
.NET framework 4
Visual Studio 20XX
EasyHook
MessageBox function(Windows)
Hooking - Wikipedia, the free encyclopedia
Hooking with D 02/20/2013 - CO2 Programming - 6 Replies Comes with a homemade DLL injector although there's probably others that will do the job just as good.
If anyone's interested here's the tools I use
D compiler: Downloads - D Programming Language
IDE: Download - MonoDevelop
Mono-D (D support for MonoDevelop): Mono-D
[TUT]Hooking Dll to S4-league 06/30/2011 - S4 League Hacks, Bots, Cheats & Exploits - 21 Replies Okay, so today i'm going to show you how you can hook dll to S4-league, because you may need it some day :P
First download this Stud_PE from the end of the thread
Okay now open Stud_PE.exe and it'll look like this:
http://i53.tinypic.com/nog3f7.jpg
Now press File ---> Open PE File ---> S4Client.exe / Patcher, etc...
Now go to section named "Functions" and it should look like this:
D3D Hooking Problem 03/01/2011 - General Coding - 1 Replies Alloa,
ich habe mir das Tutorial von D3D9 Hooking - Wie code ich D3D Hacks? durchgelesen und dementsprechend auch versucht was eigenes zu konstruieren. Ich habe eine eigene DLL Hook Datei programmiert und sie mit einem fremden Injector verbunden. Klappt bisher prima.
Es ist mir gut gelungen, ein Rechteck zu zeichnen und ein bisschen Text darauf abzubilden. Sobald ich mein Spiel starte geht alles wie von Zauberhand.
Allerdings ist mir vor kurzem aufgefallen, dass mein "Hook"...
C++ D3D Hooking 08/24/2009 - C/C++ - 12 Replies Hallo zusammen,
ich stehe gerade vor folgendem Problem:
ich habe eine DLL und einen Loader gecoded, jedoch will ich anstelle des Loader einen Injecter haben, sprich: das spiel, in das injected werden soll, soll schon laufen. Natürlich hab ich das ganze schon probiert, jedoch werden die D3D-funktionen nicht wirklich gehookt, da die DLL auf ein Direct3DCreate9 wartet. Da diese Funktion aber wahrscheinlich direkt beim Starten des "Opfer-Spiels" ausgeführt wird, werden deswegen die anderen...