Making your first hack

Posts 115 of 43 · Page 1 of 3
Making your first hack


Making your first hack by Sammeh

Table of Contents:
-Setting C++ up for hacks.
-Getting addresses.
-A bit of explanation & How to add some features.


Part 1, Setting up C++
Okay, so make sure you have Visual C++ installed, and DirectX SDK.

Download the base by Redux, in the Attachments.
Extract it with WinRar, or any other program, and open the project with C++, Once the project is loaded. you will see this on the right or left side.


Right click 'ReduxHotkey' and select properties.


A window should open up that looks like this

Select 'General' and make sure, 'Character Set' is set to 'Use Multi-Byte Character set'
Like above^.

Part 2, Getting Addresses.
Okay, now we're done setting C++ up, we're ready to get Addresses for our hack.
So download the Zip file from the Attachments called 'Addy Scanner; this is how we will get our Addresses.
Extract again, and you will have a folder called 'nSearch V7', open it up.
You should have these files.

Open up 'NSearch.exe', and make sure it looks like this

Now run CA, and wait for it to crash. Once it has crashed, goto the result folder, in there should be a TXT file called 'FoundPatterns.txt' open the txt up. and it should look like this:
Code:
[NSearch v7 by NeoIII - IRC-Server: irc.*********.net:6667]
Initialized Scanner on 19:12:32 - 26.12.2012
Developed by NeoIII - Credits: NeoIII - Hans211 - ********* - SileX - ZeaS - BigXxX
=====================================================================================

Waiting for Modules...
Found Module: Engine.exe[0x00460000]
Found Module: CShell.dll[0x37100000]
Found Module: ClientFX.fxd[0x10EC0000]

#define ADDR_MTBWC                                  0x373B88F7 //CShell.dll[0x37100000] + 0x002B88F7
#define ADDR_LTCLIENT                               0x378216B8 //Found at: 0x3759A12F ( CShell.dll[0x37100000] + 0x0049A12F )
#define ADDR_WEAPONMGR                              0x3786F114 //Found at: 0x3750B45D ( CShell.dll[0x37100000] + 0x0040B45D )
#define ADDR_LOCALPTR                               0x378A8F44 //Found at: 0x37512A56 ( CShell.dll[0x37100000] + 0x00412A56 )
#define ADDR_BUILDFONT                              0x375F3F50 //CShell.dll[0x37100000] + 0x004F3F50
#define ADDR_FILLFONT                               0x375F4BE0 //CShell.dll[0x37100000] + 0x004F4BE0
#define ADDR_FONTECX                                0x37869BDC //Found at: 0x375A885B ( CShell.dll[0x37100000] + 0x004A885B )
#define ADDR_GETFONTHANDLE                          0x373BFBD0 //CShell.dll[0x37100000] + 0x002BFBD0
#define ADDR_GETCONSOLEINT                          0x373D4370 //CShell.dll[0x37100000] + 0x002D4370
#define ADDR_GAMECLIENTSHELL                        0x378683D0 //Found at: 0x3758AB43 ( CShell.dll[0x37100000] + 0x0048AB43 )
#define ADDR_LTCOMMON                               0x3786EF38 //Found at: 0x375A7508 ( CShell.dll[0x37100000] + 0x004A7508 )
#define ADDR_SUPERBULLETS                           0x37510676 //CShell.dll[0x37100000] + 0x00410676
#define ADDR_REMOTEKILL1                            0x37516111 //CShell.dll[0x37100000] + 0x00416111
#define ADDR_REMOTEKILL2                            0x37516112 //CShell.dll[0x37100000] + 0x00416112
#define ADDR_REMOTEKILL3                            0x37516491 //CShell.dll[0x37100000] + 0x00416491
#define ADDR_REMOTEKILL4                            0x37516492 //CShell.dll[0x37100000] + 0x00416492
#define ADDR_WEAPONRANGE1                           0x37515FE9 //CShell.dll[0x37100000] + 0x00415FE9
#define ADDR_WEAPONRANGE2                           0x37516369 //CShell.dll[0x37100000] + 0x00416369
#define ADDR_RAPIDFIRE1                             0x3750CF27 //CShell.dll[0x37100000] + 0x0040CF27
#define ADDR_RAPIDFIRE2                             0x37516ADE //CShell.dll[0x37100000] + 0x00416ADE
#define ADDR_RAPIDFIRE3                             0x375125E7 //CShell.dll[0x37100000] + 0x004125E7
#define ADDR_RAPIDFIRE4                             0x37516AE5 //CShell.dll[0x37100000] + 0x00416AE5
#define ADDR_RAPIDFIRE5                             0x375168CD //CShell.dll[0x37100000] + 0x004168CD
#define ADDR_FORCEFPS                               0x00000000
#define ADDR_LTCSBASE                               0x00000000
#define OFS_FPS                                     0x00018434 //Found at: 0x373B875E ( CShell.dll[0x37100000] + 0x002B875E )
#define ADDR_GETPLAYERBYINDEX                       0x372CB810 //CShell.dll[0x37100000] + 0x001CB810
#define ADDR_CLIENTINFOMGR                          0x378683D0 //Found at: 0x37177B0A ( CShell.dll[0x37100000] + 0x00077B0A )
#define ADDR_GETLOCALPLAYER                         0x372CC200 //CShell.dll[0x37100000] + 0x001CC200
#define ADDR_NAMETAGS1                              0x3725C6BF //CShell.dll[0x37100000] + 0x0015C6BF
#define ADDR_NAMETAGS2                              0x3725C639 //CShell.dll[0x37100000] + 0x0015C639
#define ADDR_GLASSWALLS                             0x0057DE6A //Engine.exe[0x00460000] + 0x0011DE6A
#define ADDR_WORLDTOSCREEN                          0x00496D80 //Engine.exe[0x00460000] + 0x00036D80
#define ADDR_INTERSECTSEGMENT                       0x00471080 //Engine.exe[0x00460000] + 0x00011080
#define ADDR_GAMEDEVICE                             0x009279E8 //Found at: 0x006D932E ( Engine.exe[0x00460000] + 0x0027932E )
#define ADDR_DRAWPRIMITIVE                          0x0081BA58 //Found at: 0x0046D94F ( Engine.exe[0x00460000] + 0x0000D94F )
#define ADDR_CURSORCENTER                           0x00805D2C //Found at: 0x00505D83 ( Engine.exe[0x00460000] + 0x000A5D83 )
#define ADDR_CONSOLEUNWRAPPED_FOR_NUBS              0x0048B6B0 //Engine.exe[0x00460000] + 0x0002B6B0
#define ADDR_CLIENTFX                               0x10F26F34 //Found at: 0x10EC4B93 ( ClientFx.fxd[0x10EC0000] + 0x00004B93 )

[Finished with 39 Addys in 1825ms]
These are updated EU addies. You can also do the same with 'USSR's Address Logger.dll' to get a few more extra addies. They're saved to 'C:/USSR's Address Logger.txt'

Part 3, A bit of explanation & How to add some features.
Okay, so now we have our addies we're ready to go.
So open C++ back up, Ignore the folder called 'Resources' it's not important. You have two others called 'Source Files' and 'Header Files', These are our main ones.

In the folder 'Source Files' You'll see: 'Main.cpp', This is where the game is Hooked, and your hacks belong.
In the folder 'Header Files' You'll see:
'Detours.h' - This is where your detour belongs. This isn't really that important right now.
'xor.h' - This isnt really important neither.
'xstrings.h' - We will be using this to store our PTC Strings.

So the first thing you should do is, Update your 'GameStatus' addy, this is at the top of 'Main.cpp' ignore the respawncheck one for now, it does nothing. So don't worry.
No we have that done, your hack is currently undetected, if your addies are correct.

At the top we see


We're going to be adding glass walls, so lets change it to this



Now thats done, we're ready to add our GlassWalls code.

Scroll down to, 'void Redu_Main(void) // Main - all hacks should be called here.'
This is where all your hacks are.

So here we add GlassWalls.

You can find bytes etc for Memory hacks all over google.
And at the top, take the GlassWalls address from your Txt file from earlier, and define it at the top like this


Now we're going to make a PushToConsole Hack, so.. add your int at the top again..
I'm going to be making WireFrameMap


Now goto your file 'xstrings.h' and open it, and now.. we need to goto this site, to encrypt our ptc comand into XorStr
LINK REMOVED

Type in your PTC Command, and click 'Convert to xorstring'
IMAGE REMOVED

Now copy the string it gave you, go to 'xstrings.h', and add it in similar to this, but after #define give it a name you''re going to remember, and similar to the hack name.


Now we can go back to 'main.cpp', and add our PTC hack like this


Now we've added some basic features, and coded our first hack, You can find lots of resources in the CA coding sections, such as PTC commands, and other things that will you help along the way! if you think I'm missing something, please say, and if i have the time.. I'll add more, atleast like.. and comment for me helping, this tutorial took me around 2 hours to write up.

I don't think virus scans are needed but here they are:

-Addy Scanner
-ReduxHotkey base

Redux Hotkey Base v1.1_mpgh.net.zip154 KB · 152 downloads Clean
Quote Originally Posted by TrixtSam View Post
Not if you're new it isnt, like I told you before^
Might not be if they are doing it them self, But if they have you it is. ;p
finally , a good written tutorial on MPGH .
This will help out alot of people .
Good tutorial, make more please

Will try to make a hack off this
So I am learning c++ now and I like the language.

Couple questions,
1.How much c++ do you recommend before trying to go off and trying to create combat arms hacks.
2.I see there is WinApi and Directx being used,How much of it do I need to learn before the stuff in source codes make sense.
Quote Originally Posted by L33tHaxorCod3r View Post
So I am learning c++ now and I like the language.

Couple questions,
1.How much c++ do you recommend before trying to go off and trying to create combat arms hacks.
2.I see there is WinApi and Directx being used,How much of it do I need to learn before the stuff in source codes make sense.
Tbh, i never learned C++, I just want to prove to all the coders that told me i'd get no where and fail at coding hacks. But now I'am, as long as you know what stuff does you'll be fine, which you can google for, and look in other bases, like i did
Removed the obvious advertisements in the thread. Removed the NSearch thing since the log contains advertisements.

Removed Image and link, they contain advertisements. The rest is good. Redux's base is good. Virus scan is there.
Quote Originally Posted by Flengo View Post
Removed the obvious advertisements in the thread. Removed the NSearch thing since the log contains advertisements.

Removed Image and link, they contain advertisements. The rest is good. Redux's base is good. Virus scan is there.
Not being funny.. but who cares about advertisements.. It's so people can learn to hack, im not advertising there site. Now I'm going to get spammed on PM or w.e
"Convert to xor Strign" Download Please!
So pretty much, it tells you how to copy and paste code, but not exactly what it does.
Good that you took the time to write it, but it would benefit the members more if you explain what everything does.

You're saying Copy this, paste here. Yea, they will do it but ask stupid questions later cause they won't understand it.
Quote Originally Posted by flameswor10 View Post
So pretty much, it tells you how to copy and paste code, but not exactly what it does.
Good that you took the time to write it, but it would benefit the members more if you explain what everything does.

You're saying Copy this, paste here. Yea, they will do it but ask stupid questions later cause they won't understand it.
He doesn't know what everything does. As he said, he never learned C++ :/
Quote Originally Posted by Saltine View Post
He doesn't know what everything does. As he said, he never learned C++ :/
I would have assumed, that if you're making a tutorial you'd at least have some idea in your head at what you're teaching...
When questions arise, first person to ask would be the tutorial maker haha
Posts 115 of 43 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?