Giriş yap
En iyi yollayıcılar
Hello EMO | ||||
EMO | ||||
eMoStyLe | ||||
BesimBICER | ||||
GameKinG | ||||
Crysis | ||||
~>!.DεvιLρяιεsт.!<~ | ||||
MeTaL | ||||
TrueCrime | ||||
djhayal3t |
Istatistikler
Toplam 203 kayıtlı kullanıcımız varSon kaydolan kullanıcımız: crayzboy76
Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Arama
Sosyal yer imi
Sosyal bookmarking sitesinde Emo, Emo nedir, Emo resimleri, Emo Kıyafetleri, Emo Sözleri, Emo Oyunları, EmoTurkey, Emo Nickler, Emo Avatarları, Punk, Punk Resimleri, Punk Avatarları, Rock, Rock Resimleri, Rock Avatarları, Msn Nickleri, Msn Avatarları, Müzik adresi saklayın ve paylaşın
Sosyal bookmarking sitesinde EMO Style ForumPro - Hos Geldiniz adresi saklayın ve paylaşın
Kimler hatta?
Toplam 3 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 3 Misafir Yok
Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
Reklam
[Tut] C++ Trainer
1 sayfadaki 1 sayfası
[Tut] C++ Trainer
[quote name='n0n3' timestamp='1210609440' post='10278']
Today we're gonna learn how to make your very own trainer in C++, without DLL injection of any sort.
Knowledge needed/optional:
Basic C++ coding "skillZ"
Basic understanding of the PE and finding an address with Cheat Engine ;P
Ok let's get to it then.
Our target today is Windows's pinball game (start->run->"pinball")
First, declarations.
hWnd = Window Handle.
dwID = Process ID.
hProcess = Process Handle.
Defined in windows.h btw, so #include
Let's recover the window handle then.
FindWindow's return value is the HANDLE of the window.
For more info goto msdn. (google->msdn)
Let's recover the process id.
For more info goto msdn, this isn't difficult at all.
We recovered the process's ID.
Next, process handle.
Process security and access rights - Process Security and Access Rights (Windows)
PROCESS_ALL_ACCESS, hmm, I wonder what that might be.
Anyways, we don't need the second argument, and the third argument is the process ID.
If function works successfuly returned value is the process handle, which is exactly what we need.
Error handling would look like this:
Here comes the fun part ;D
hProcess = Process handle.
(LPVOID) typecasting - needed.
0x00C20C62 - "Score" address in pinball.
(LPVOID) typecasting - needed.
&value - pointer to the value integer (1000000)
Next argument is number of bytes to be written (size)
So we use sizeof for it to work well.
We don't need the next parameter.
Full program will look like this:
Guess what, it works, and you've just made a pinball trainer in C++
I'm so proud of you ;')
Enjoy
[/quote]
Today we're gonna learn how to make your very own trainer in C++, without DLL injection of any sort.
Knowledge needed/optional:
Basic C++ coding "skillZ"
Basic understanding of the PE and finding an address with Cheat Engine ;P
Ok let's get to it then.
Our target today is Windows's pinball game (start->run->"pinball")
First, declarations.
- Kod:
HWND hWnd;
DWORD dwID;
HANDLE hProcess;
hWnd = Window Handle.
dwID = Process ID.
hProcess = Process Handle.
Defined in windows.h btw, so #include
Let's recover the window handle then.
- Kod:
hWnd = FindWindow(NULL, "3D Pinball for Windows - Space Cadet");
FindWindow's return value is the HANDLE of the window.
For more info goto msdn. (google->msdn)
Let's recover the process id.
- Kod:
GetWindowThreadProcessId(hWnd, &dwID);
For more info goto msdn, this isn't difficult at all.
We recovered the process's ID.
Next, process handle.
- Kod:
hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwID);
Process security and access rights - Process Security and Access Rights (Windows)
PROCESS_ALL_ACCESS, hmm, I wonder what that might be.
Anyways, we don't need the second argument, and the third argument is the process ID.
If function works successfuly returned value is the process handle, which is exactly what we need.
Error handling would look like this:
- Kod:
hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwID);
if(hProcess == NULL)
whatever //error
Here comes the fun part ;D
- Kod:
int value = 1000000;
WriteProcessMemory(hProcess, (LPVOID) 0x00C20C62, (LPVOID) &value, sizeof(&value), NULL);
hProcess = Process handle.
(LPVOID) typecasting - needed.
0x00C20C62 - "Score" address in pinball.
(LPVOID) typecasting - needed.
&value - pointer to the value integer (1000000)
Next argument is number of bytes to be written (size)
So we use sizeof for it to work well.
We don't need the next parameter.
Full program will look like this:
- Kod:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
HWND hWnd;
DWORD dwID;
HANDLE hProcess;
hWnd = FindWindow(NULL, "3D Pinball for Windows - Space Cadet");
GetWindowThreadProcessId(hWnd, &dwID);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwID);
int value = 1000000;
WriteProcessMemory(hProcess, (LPVOID) 0x00C20C62, (LPVOID) &value, sizeof(&value), NULL);
return 0;
}
Guess what, it works, and you've just made a pinball trainer in C++
I'm so proud of you ;')
Enjoy
[/quote]
Similar topics
» Writing your own C++ Trainer
» [Tutorial] Trainer Visual Basic 6
» Weapon Pointer NEW TUTORIAL (AnyWeapon Trainer)
» [Tutorial] Trainer Visual Basic 6
» Weapon Pointer NEW TUTORIAL (AnyWeapon Trainer)
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO
» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO
» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO
» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO
» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO
» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO
» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO