QuestionHelpGetting values from game after injection

Posts 110 of 10 · Page 1 of 1
Getting values from game after injection
Greetings guys,

I need a little help from you.. I've found a tutorial on how to inject to process, after successfull injection, I just wanna ask, what to do now? The guy who made the topic was talking about ,,Gettings values without memory reading", does anyone have any good tutorial for this, or any tips?

Before writing "use google", I did, but I have not found anything useful, thats why I'm asking here.

Thanks for any respond
Cheat engine is always the way to go www.**************** you can google it or copy and paste it in. url not waorking but anyways its www. cheat engine .org without spaces
Quote Originally Posted by Hitokiri~ View Post
Cheat engine is always the way to go www.**************** you can google it or copy and paste it in. url not waorking but anyways its www. cheat engine .org without spaces
... Thanks for respond, I can work with c# and memory hacking pretty well, but I wanted to learn something about injection, its better than external hacks, thats why I'm trying it. :x
Quote Originally Posted by univex View Post
... Thanks for respond, I can work with c# and memory hacking pretty well, but I wanted to learn something about injection, its better than external hacks, thats why I'm trying it. :x
C# is compiled to managed codes... Managed codes dont have entry point (DLL). So you need a special injector, wich is capable to inject managed (C#) Dlls...
I dont know any managed-code injector currently... Maybe google can help you...

If you are successfully injected your DLL, then you will be able to modify everything...
You can use the RedProcessMemory / WriteProcessMemory
or manual pointers:
IntPtr Pointer1 = new IntPtr(Address), address like: 0xD34F4 (You may know it, if you are already using memory modifying)

Offset usage:
int Offset = 0xD4;

Thats where i didnt went throught, so i didnt tested the complett memory editing, but it may be:
(float*)(Pointer1 + Offset) = 3;
or
IntPtr OffsetedPointer = new intPtr(Address + Offset);
(float*)(OffsetedPointer) = 3.012f;
but maybe it must be:
*(float*)(OffsetedPointer) = 3.012f;
Quote Originally Posted by rabir007 View Post


C# is compiled to managed codes... Managed codes dont have entry point (DLL). So you need a special injector, wich is capable to inject managed (C#) Dlls...
I dont know any managed-code injector currently... Maybe google can help you...

If you are successfully injected your DLL, then you will be able to modify everything...
You can use the RedProcessMemory / WriteProcessMemory
or manual pointers:
IntPtr Pointer1 = new IntPtr(Address), address like: 0xD34F4 (You may know it, if you are already using memory modifying)

Offset usage:
int Offset = 0xD4;

Thats where i didnt went throught, so i didnt tested the complett memory editing, but it may be:
(float*)(Pointer1 + Offset) = 3;
or
IntPtr OffsetedPointer = new intPtr(Address + Offset);
(float*)(OffsetedPointer) = 3.012f;
but maybe it must be:
*(float*)(OffsetedPointer) = 3.012f;
Hello,
I have successfully called even the function of the .dll, so its not the problem. I just wanna know, where does injection differ from Memory reading/writing external tool? Does it has any advantage? The guy that started the topic on the second forum was saying, that you can get some values more easily, but I still can't find how or some example
Quote Originally Posted by univex View Post
Hello,
I have successfully called even the function of the .dll, so its not the problem. I just wanna know, where does injection differ from Memory reading/writing external tool? Does it has any advantage? The guy that started the topic on the second forum was saying, that you can get some values more easily, but I still can't find how or some example
External tools reading different process like the reader Itself... It works as:
*(float*)(ReadanleProcess.exe + Pointer + Offset) = 30.43f;

But for it, you need some another method, Like OpenProcess()...

For Internal memory editing, you DLL was injected into the target process, so it is the part of the process...
The codes in the injected dll is going to be the main process's codes...
So you dont need OpenProcess(), and you dont need to get the process memory Index...
Simply just *(float*)(Pointer + Offset) = 3.034;

Simply:
For external mem editing:
you need some other stuff
the editor must have Admin privilege
Easily catchable by Anti-Hacks Shields (at MMO games mainly)

Internal:
You instantly add codes to the main process, so they work as, the program creator could add them to the codes...
Only the injector need Admin Privilege
Harder to detect by Anti-Hack Shields (at MMO games mainly)
Quote Originally Posted by rabir007 View Post


External tools reading different process like the reader Itself... It works as:
*(float*)(ReadanleProcess.exe + Pointer + Offset) = 30.43f;

But for it, you need some another method, Like OpenProcess()...

For Internal memory editing, you DLL was injected into the target process, so it is the part of the process...
The codes in the injected dll is going to be the main process's codes...
So you dont need OpenProcess(), and you dont need to get the process memory Index...
Simply just *(float*)(Pointer + Offset) = 3.034;

Simply:
For external mem editing:
you need some other stuff
the editor must have Admin privilege
Easily catchable by Anti-Hacks Shields (at MMO games mainly)

Internal:
You instantly add codes to the main process, so they work as, the program creator could add them to the codes...
Only the injector need Admin Privilege
Harder to detect by Anti-Hack Shields (at MMO games mainly)
Ah, now I get it. Thanks for this info, i really needed it.

Do you have any example for the reading inside the process? I have one great library, but its external reading.
Quote Originally Posted by univex View Post
Ah, now I get it. Thanks for this info, i really needed it.

Do you have any example for the reading inside the process? I have one great library, but its external reading.
Well, i used only C++ to make hacks for games
its like:
Code:
#define Pointer 0xAAAAA; //just an aexample
#define Offset 0xA2;

void hack()
{
*(float*)(Pointer + Offset) = 0.345f;
}
Well, i didnt tried in C#, so this code may not work... Test it:
Code:
IntPtr Pointer = new IntPtr(0x123456);
int Offset = 0xA2;

//My 1st idea:
float* Pointing = Pointer + (IntPtr)Offset; //May not work, i didnt tested
Pointing = 0.123f;

//My Second Idea
*(float*)(Pointer + (IntPtr)Offset) = 0.123f; //It may have some error, its a C++ command, but maybe works in C# too...
This would help you:
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PointersInCSharp11112005051624AM/PointersInCSharp.aspx
Quote Originally Posted by rabir007 View Post


Well, i used only C++ to make hacks for games
its like:
Code:
#define Pointer 0xAAAAA; //just an aexample
#define Offset 0xA2;

void hack()
{
*(float*)(Pointer + Offset) = 0.345f;
}
Well, i didnt tried in C#, so this code may not work... Test it:
Code:
IntPtr Pointer = new IntPtr(0x123456);
int Offset = 0xA2;

//My 1st idea:
float* Pointing = Pointer + (IntPtr)Offset; //May not work, i didnt tested
Pointing = 0.123f;

//My Second Idea
*(float*)(Pointer + (IntPtr)Offset) = 0.123f; //It may have some error, its a C++ command, but maybe works in C# too...
This would help you:
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PointersInCSharp11112005051624AM/PointersInCSharp.aspx
Thanks alot I really have to learn c++ too, seems to be powerful in game hacking ^^
Dude, if you know C# you might as well learn C++ (Shouldn't be too hard at all). Much better for hacks.
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?