APPZXOR
Hello and welcome to APPZXOR,

We would appreciate if you register so you can enjoy
the full benefits of browsing, viewing and using our forum.
Here are some features:

• Create threads;
• Reply to threads;
• View links & images;
• Leave positive or negative feedback to a member.

What are you waiting for? Go ahead and register!
It's free, quick and easy!
APPZXOR
Hello and welcome to APPZXOR,

We would appreciate if you register so you can enjoy
the full benefits of browsing, viewing and using our forum.
Here are some features:

• Create threads;
• Reply to threads;
• View links & images;
• Leave positive or negative feedback to a member.

What are you waiting for? Go ahead and register!
It's free, quick and easy!
APPZXOR
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Where Applications Become AppZ. Join Us Now!
 
HomePortalSearchLatest imagesRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» See you next decade.
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby LarsValraz Fri Sep 09, 2022 4:43 pm

» Clean Up On Database
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby Vex338 Mon Jul 06, 2020 2:59 pm

» Guess who's back!
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby Vex338 Thu Feb 01, 2018 12:16 pm

» [COC] Clash of Clans
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby D'ShadowZRay Thu Jan 28, 2016 12:10 am

» iam new
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby D'ShadowZRay Thu Jan 28, 2016 12:06 am

» I need some help
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby akumasan_01 Fri May 01, 2015 1:25 pm

» HELLO GUYS! :))
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby Appz-RhastaSix Fri Sep 19, 2014 9:14 am

» Visual C# Programming Basics
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby Appz-RhastaSix Wed Sep 10, 2014 9:03 am

» Old Game!
[Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeby iRegen Tue May 13, 2014 12:28 am


Top posters
[Detheroc_93]
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
MrStar
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
kurosakinaruto
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
GreyPhantom
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
ShadowSonic
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
Appzwesley29
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
z_f
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
MasterGandeo
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
Vex338
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 
wafumon
[Gamehacking] Gamehacking with C++ for beginners. I_vote_lcap[Gamehacking] Gamehacking with C++ for beginners. I_voting_bar[Gamehacking] Gamehacking with C++ for beginners. I_vote_rcap 

Share | 
 

 [Gamehacking] Gamehacking with C++ for beginners.

View previous topic View next topic Go down 
AuthorMessage
Gk-[invisible]
Super Member

Gk-[invisible]

Posts : 100
Join date : 2012-01-09
Age : 32
Location : philippines and germany

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 3:05 am

Moin Moin, since here pretty little los is, I would like to try a small tutorial on the topic of "Gamehacking" enrich. I chose a program as "victims" that everyone has and everybody knows: Windows solitary .

First time what your needs/need to know:

- Basic C++ knowledge - a C++ IDE. I use Visual C++ Express Edition 2008.]
-TSearch delphi vcl. (can be found here:[You must be registered and logged in to see this link.]

- Windows XP (the offset is under other versions of windows (probably) different. However, there should be no problem for other versions of Windows, that also implement .
- You need to be at least a partial understanding how in solitary points makes . If not -> Wikipedia, the free encyclopedia . -A little time

What we want to do:

We would like to find out the memory address of the rapid test scoring in solitary and then write a C++ program that the value in our value has changed.

So, let's go's .

First we open 's TSearch delphi vcl. and solitary. We then choose in 'S Tsearch delphi vcl. the solitary process from


[You must be registered and logged in to see this image.]

Now we need the Offset, the memory address is stored in the number of marks, find. First we click on the small magnifying glass and select as our starting value 0. Logical , or ? We start with 0 points

[You must be registered and logged in to see this image.]

We must now make something that the points raised. Then we click on the magnifying glass with the three points and then select "has increased," ( deu: "has increased" ) from. So we're looking for a value, the time was 0 but now has increased.
[You must be registered and logged in to see this image.]

Click on OK and we connect you a small window that says, how many "Kanidaten" is still available for selection. Closes the window with one click on the OK button.

So, now we let our points tally again fall to 0 and then we will increase the points again. Then we click quickly back on the small magnifying glass with the three points and then select "exact value" in the dropdown menu. We then will give quickly the current score and click on OK. Then it should really only have a value remain. If this is not so, leads the Games continue until only a value is left. Your memory address space had in Windows XP is supposed to be "A5060".

[You must be registered and logged in to see this image.]

Our small hack:


Many people will now probably questions: how the hell i countries a value with C++ ??? Don't worry, it isn't possible at all times so sword . Creates a new, empty a console application. We first time to start with our basic structure:

Code:
#include <windows.h> // Hier sind die Funktionen die wir später noch brauchen
#include <iostream> // Sollte klar sein

using namespace std; // Sollte auch klar sein ...

int main()  // Unsere Main Funktion...
{




cin.get(); //Damit sich unser Programm nicht sofort schließt...
}

That is something everybody should know. Some will probably learn something new. In the first place we would like to find out the window handle of solitary. The window handle is an integer value, of a window or control identified. In C++ such therefore in the 611 'hwnd' saved. With the function FindWindow then we can to get the window handle.

Code:
#include <windows.h> // Hier sind die Funktionen die wir später noch brauchen
#include <iostream> // Sollte klar sein

using namespace std; // Sollte auch klar sein ...

int main()  // Unsere Main Funktion...
{
HWND hwnd; // Unsere Variable die das Fensterhandle speichert.
hwnd = FindWindow(0,L"Solitär");

// Der Fenstertitel vom Solitärfenster ist "Solitär". Das erste Parameter ist der "ClassName" den wir aber getrost ignorieren können. Das zweite Parameter ist unser Fenstername. Das "L" steht für eine Typkonvertierung..

if(!hwnd) // Also das Fenster nicht vorhanden ist...
{
   cout << "Solitär nicht gefunden!" << endl; // Gebe das aus
}
else  // ansonsten...
{
   cout << "Solitär gefunden!" << endl; // gebe das aus
        cout << "Fensterhandle: " << hwnd << endl; // Wir können uns das Handle auch nochmal angucken ...
}


cin.get(); //Damit sich unser Programm nicht sofort schließt...
}

So try this code and then it goes on. Now we have to have the ID of the thread's to get the window has produced. The ID we need later. (If you don't know what a thread is, is not quite so tragic. When the opportunity time at Wikipedia and email confirmations ) So, here's the Code:

Code:
#include <windows.h> // Hier sind die Funktionen die wir später noch brauchen
#include <iostream> // Sollte klar sein

using namespace std; // Sollte auch klar sein ...

int main()  // Unsere Main Funktion...
{
HWND hwnd; // Unsere Variable die das Fensterhandle speichert.
hwnd = FindWindow(0,L"Solitär");
DWORD Id; // Die ID wird in einer Variable des Typ's DWORD gespeichert.

// Der Fenstertitel vom Solitärfenster ist "Solitär". Das erste Parameter ist der "ClassName" den wir aber getrost ignorieren können. Das zweite Parameter ist unser Fenstername. Das "L" steht für eine Typkonvertierung..

if(!hwnd) // Also das Fenster nicht vorhanden ist...
{
   cout << "Solitär nicht gefunden!" << endl; // Gebe das aus
}
else  // ansonsten...
{
   cout << "Solitär gefunden!" << endl; // gebe das aus
        cout << "Fensterhandle: " << hwnd << endl; // Wir können uns das Handle auch nochmal angucken ...
     
        GetWindowThreadProcessId(hwnd,&Id); // Mit GetWindowThreadProcessId kann man die ID herausfinden. Das erste Parameter ist unser Fensterhandle. Das zweite gibt an, wo die ID gespeichert werden soll.

        cout << Id << endl;

}


cin.get();//Damit sich unser Programm nicht sofort schließt...
}

So now it is no longer so far . Now we open up to the process so that we can finally write ... First we create a variable that holds our handle to the open process. This is of the type "handle". Then we open up to the process with OpenProcess.

Code:
#include <windows.h> // Hier sind die Funktionen die wir später noch brauchen
#include <iostream> // Sollte klar sein

using namespace std; // Sollte auch klar sein ...

int main()  // Unsere Main Funktion...
{
HWND hwnd; // Unsere Variable die das Fensterhandle speichert.
hwnd = FindWindow(0,L"Solitär");
DWORD Id; // Die ID wird in einer Variable des Typ's DWORD gespeichert.
HANDLE ProcessHandle;

// Der Fenstertitel vom Solitärfenster ist "Solitär". Das erste Parameter ist der "ClassName" den wir aber getrost ignorieren können. Das zweite Parameter ist unser Fenstername. Das "L" steht für eine Typkonvertierung..
if(!hwnd) // Also das Fenster nicht vorhanden ist...
{
   cout << "Solitär nicht gefunden!" << endl; // Gebe das aus
}
else  // ansonsten...
{
   cout << "Solitär gefunden!" << endl; // gebe das aus
        cout << "Fensterhandle: " << hwnd << endl; // Wir können uns das Handle auch nochmal angucken ...
     
        GetWindowThreadProcessId(hwnd,&Id); // Mit GetWindowThreadProcessId kann man die ID herausfinden. Das erste Parameter ist unser Fensterhandle. Das zweite gibt an, wo die ID gespeichert werden soll.

        cout << Id << endl;
        ProcessHandle = OpenProcess(PROCESS_VM_WRITE |PROCESS_VM_OPERATION ,false,Id);
   
   cout << "ProcessHandle: " << ProcessHandle << endl;


}

The first parameter are our "rights" which we have for the process. PROCESS_VM_WRITE means that we must write in the process and PROCESS_VM_OPERATION means that we be allowed to operate in the process. The second parameter specifies whether our "victims" process generated processes inherit the handle. We set to false. The third parameter is our ThreadID. So now where the process is open we will finally be able to write him. We do this with "WriteProcessMemory".

Code:
{
HWND hwnd; // Unsere Variable die das Fensterhandle speichert.
hwnd = FindWindow(0,L"Solitär");
DWORD Id; // Die ID wird in einer Variable des Typ's DWORD gespeichert.
HANDLE ProcessHandle;
int value; // Der Wert den wir schreiben wollen.
unsigned adress = 0x0A5060; // Unsere Adresse

// Der Fenstertitel vom Solitärfenster ist "Solitär". Das erste Parameter ist der "ClassName" den wir aber getrost ignorieren können. Das zweite Parameter ist unser Fenstername. Das "L" steht für eine Typkonvertierung..

if(!hwnd) // Also das Fenster nicht vorhanden ist...
{
   cout << "Solitär nicht gefunden!" << endl; // Gebe das aus
}
else  // ansonsten...
{
   cout << "Solitär gefunden!" << endl; // gebe das aus
        cout << "Fensterhandle: " << hwnd << endl; // Wir können uns das Handle auch nochmal angucken ...
     
        GetWindowThreadProcessId(hwnd,&Id); // Mit GetWindowThreadProcessId kann man die ID herausfinden. Das erste Parameter ist unser Fensterhandle. Das zweite gibt an, wo die ID gespeichert werden soll.

        cout << Id << endl;
        ProcessHandle = OpenProcess(PROCESS_VM_WRITE |PROCESS_VM_OPERATION ,false,Id);
   
   cout << "ProcessHandle: " << ProcessHandle << endl;

      cout << "How much points to add? "; // Wieviel Punkte sollen geschrieben werden ???
   cin >> value; // Den Wer übernehmen
   fflush(stdin);

   
   
   WriteProcessMemory(ProcessHandle,(LPVOID)adress,&value,sizeof(int),NULL);  // Den Wert schreiben !
   cout << "Wert geschrieben" << endl;
   cin.get();// Damit sich unser Programm nicht sofort schließt...
}



}

Once I have an int variable with the name "value" has been drawn up. It keeps the points we want to write. In addition the address of type unsigned (int). We then the value to write with a cin queried and then the function called WriteProcessMemory. The first parameter is the handle to the open process. The second parameter our to LPCVOID converted address. The third parameter of the value to write. The fourth parameter specifies how many bytes we want to write.

Spoiler:
Back to top Go down
kurosakinaruto
Contributor
Contributor

kurosakinaruto

Posts : 3242
Join date : 2011-08-18

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 5:50 am

bro we are more interested in Ninja Saga
xD
can u share a tut for hacking it??
BTW nice share !!
Back to top Go down
http://www.techwrldinfo.blogspot.com
Gk-[invisible]
Super Member

Gk-[invisible]

Posts : 100
Join date : 2012-01-09
Age : 32
Location : philippines and germany

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 8:06 am

for ninja saga TuT? ^^
Back to top Go down
zenbun
Super Member

zenbun

Posts : 233
Join date : 2010-12-04
Location : Find Me If You Can

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 8:23 am

teach me how to hack a private server of ran!!
Back to top Go down
Gk-[invisible]
Super Member

Gk-[invisible]

Posts : 100
Join date : 2012-01-09
Age : 32
Location : philippines and germany

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 9:21 am

@zenbun oh sorry dude i'm busy for that
Back to top Go down
kurosakinaruto
Contributor
Contributor

kurosakinaruto

Posts : 3242
Join date : 2011-08-18

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 9:38 am

yeh
try creating a hack for NS wid C++
Wink
Back to top Go down
http://www.techwrldinfo.blogspot.com
Gk-[invisible]
Super Member

Gk-[invisible]

Posts : 100
Join date : 2012-01-09
Age : 32
Location : philippines and germany

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 9:59 am

@kurosakinaruto just wait ^^! i'll try to make ninja saga hack!
Back to top Go down
MrStar
Royal Member

MrStar

Posts : 4006
Join date : 2011-08-23
Age : 34
Location : Guess?

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 10:41 am

If you can. This is pretty hard to make. I assure you.

-StarCraftTheCoder
Back to top Go down
http://starcraft0333.weebly.com
kurosakinaruto
Contributor
Contributor

kurosakinaruto

Posts : 3242
Join date : 2011-08-18

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 10:46 am

tnx dude!!
Back to top Go down
http://www.techwrldinfo.blogspot.com
[Detheroc_93]
Administrator
Administrator

[Detheroc_93]

Posts : 5628
Join date : 2011-03-12

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeThu Jan 12, 2012 11:57 am

Gk-[invisible] wrote:
@kurosakinaruto just wait ^^! i'll try to make ninja saga hack!

That will be nice. Do your best.
Back to top Go down
Gk-[invisible]
Super Member

Gk-[invisible]

Posts : 100
Join date : 2012-01-09
Age : 32
Location : philippines and germany

[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitimeFri Jan 13, 2012 7:37 am

aha tnx For the support ^^
Back to top Go down
Sponsored content





[Gamehacking] Gamehacking with C++ for beginners. Empty
PostSubject: Re: [Gamehacking] Gamehacking with C++ for beginners.   [Gamehacking] Gamehacking with C++ for beginners. Icon_minitime

Back to top Go down
 

[Gamehacking] Gamehacking with C++ for beginners.

View previous topic View next topic Back to top 

 Similar topics

-
» VB .NET Coding for beginners
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
APPZXOR :: Discussions :: Coding & Programming-
Create a forum on Forumotion | Society and Culture | Childhood, Family | ©phpBB | Free forum support | Report an abuse | Forumotion.com