This is not to be pasted. This is for people who already know how to hack and just need help making ESP boxes in D3D9
Guide - Stop Pasting - Focus on the Basics
CSGO D3D9 ESP Tutorial 1 - Getting the Direct3D9 EndScene function and Hooking It
This video will teach you how to use the dummy device method of getting the EndScene function address. Then we will use our Trampoline function from out previous tutorial to hook it. Inside our hook we will draw a simple box and a crosshair.
EndScene() is the function called when the game is finished drawing the next frame to be displayed on the screen, meaning all the drawing by the game is completed, so any drawing we do, will render on top of the finished scene. After our EndScene hook returns it will call the real EndScene and the image will be rendered on the screen.
When hacking games with DirectX you need to hook certain member functions of the D3DDevice and know it's address. Many people will use pattern scans to get the address of the functions or the device. This is not a universal method.
The preferred, recommended and best method is to create your own dummy devices, and copy the vtable entries, so you can hook the functions. You create your own device object, which gets you the vTable address which you can then copy. This is the vTable that is shared by all the device objects. You can now do regular hooks or vTable hooks and they will affect the game's device. You can also get the device's address by hooking these functions and grabbing the "this pointer" out of the eax register.
You must download Direct3d9 SDK June 2010 to get this lib. Download Here and install. Then go to your project properties and add these to your project dependency include folders:
Original Dummy Device Method
- Source Code - Get Direct3d9 and Direct3d11 Devices - Dummy Device Method
Original Trampoline Hook Tutorial
- Video Tutorial - x86 Trampoline Hook Source Code SwapBuffers Hook
The Autopadding feature from the video
- Tutorial - "Auto-Padding" for class recreation
Our Complete D3D9 Guide
- Guide - How to get started with DirectX 9 - Direct3D9 Hooking
CSGO Hacking Guide
- Guide - How to Make CSGO Hacks - START HERE GUIDE
CSGO Video Tutorials
- CSGO Hacks - GH Video Tutorials
Completed Source Code in attachments
17.4 KB Views: 1,400