Release D3D menu trainer C++
#1
Well after making my first D3D C++ trainer i decided to make a tutorial for it.

I will try to be as friendly as possible in this tutorial.

This tutorial is for building a D3D menu in a DLL.

D3D Menu:

First of all we need to have some C++ knowledge.

Second thing we need its a D3D base menu, or your own D3D menu compatible with Directx 9(Mw3).

A Base menu: D3D Base Menu

[Image: unledbkt.jpg]

Memory Editing:

After getting a Menu for our trainer we need to know how to modify/read memory.

In our case the best ways to do this is using this functions(write memory):

You will need the <memory.h> or <string.h> header files.

void * memset ( void * ptr, int value, size_t num );

Explanation:

Fill block of memory;

Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).

Parameters:

ptr - Pointer to the block of memory to fill.

value - Value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.

num - Number of bytes to be set to the value.

*This function will be used to write values to a specified memory address.

[Image: scaled.php?server=577&filename=memsettut...res=medium]

Example Showing the usage of memset.

NOP - (No Operation) this call essentially making it do nothing.

A simpler way to nop its using this:

Code:
void nop_(PVOID address, int bytes) { DWORD d, ds; VirtualProtect(address, bytes, PAGE_EXECUTE_READWRITE, &d); memset(address, NOP, bytes); VirtualProtect(address,bytes,d,&ds); }

Made by s0beit.

Usage Example:

[Image: scaled.php?server=208&filename=nop.png&res=medium]

Menu Part:

Code:
void TestThread() //Raising text if ON / OFF { if( hack1 == 1) PrintText("Wallhack [ON] text will change color", 30, 200, GREEN, dMenu.pFont); else PrintText("Wallhack [ON] text will change color", 30, 200, RED, dMenu.pFont); } //Customize it

Here is where you are going to put your memory modifications.

[Image: scaled.php?server=560&filename=tuts.png&res=medium]

*Remember that when putting a code here it will be insisde a loop.

I think this is enought for now because as i said you need to have some knowledge of C++, if anyone have other question just pm me.

Thanks Barata...
Don't worry if things aren't the way you planned, in the end everything will solve itself...
Reply

#2
nice tuto, you could get deeper and explain a bit more.
Reply

#3
WOW NICE!!! but do a tutorial for C# people please Smile
Reply

#4
Good Job
Reply

#5
Good job XD!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Admin menu koren30 4 6,707 10-07-2013, 20:17
Last Post: Yamato
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 42,268 09-28-2013, 02:08
Last Post: Monkey Arms
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 4,270 08-15-2013, 13:52
Last Post: Yamato
  Trying to compile a modified menu DidUknowiPwn 7 8,094 07-05-2013, 21:55
Last Post: DidUknowiPwn
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 101,661 07-01-2013, 15:12
Last Post: explosivebanana55
  [Release] LF's BO2 Trainer (Latest Version) LegitFlash 3 6,973 06-11-2013, 18:14
Last Post: surtek
  Preview Admin / Mod Menu Hologramm 5 9,092 05-29-2013, 00:35
Last Post: sleepunknot
  Map Menu in Black Ops 1 EliTeEishiii 2 4,216 04-21-2013, 18:54
Last Post: Nekochan
  Black Ops 2 DLC camo trainer surtek 10 14,133 04-19-2013, 23:16
Last Post: Gladio
  Menu base EliTeEishiii 1 4,033 04-17-2013, 16:10
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.