CoolDifference between C# and C++ for gaming hacking

Posts 1–9 of 9 · Page 1 of 1
Difference between C# and C++ for gaming hacking
Hello everyone.

A while ago i was playing with game hacking (i have a CHEAT ENGINE re-compiled and undetectable)
I came across an immense difficulty in detecting the true pointers (offsets)
Yours can tell me what better way to investigate them? therefore, the CE seems that is hard work and time consuming.

There yes on C# and C++ languages ​​is there any difference in developing hacks with a low level language (C++) or high level language (C#) the principle has therefore both use WIN API quietly.

Thanks and []'s
C# is managed, meaning that you compile into IL code which gets interpreted at runtime by the CLR.
C++ is compiled directly into binary, meaning that your code is faster if you didn't write complete shit since the code doesn't have to get interpreted but already is interpreted and compiled into CPU instructions. Since there is no CLR in the middle which interprets your code and runs it, you are much closer to the hardware. You have direct memory access as long as you stay in your own memory space.
Quote Originally Posted by WasserEsser View Post
C# is managed, meaning that you compile into IL code which gets interpreted at runtime by the CLR.
C++ is compiled directly into binary, meaning that your code is faster if you didn't write complete shit since the code doesn't have to get interpreted but already is interpreted and compiled into CPU instructions. Since there is no CLR in the middle which interprets your code and runs it, you are much closer to the hardware. You have direct memory access as long as you stay in your own memory space.
Thanks for explanation.
All you spoke already know, understand the difference between high level languages (less complexity / lower performance) and low level languages (more complexity / higher performance) my doubt that the difficulty of working with processes and memories addresses because basically game hacking is change a value in memory (roughly speaking mode)

I still doubt whether it is better to do in C# or C++ haha

Quote Originally Posted by Zaczero View Post
C# can be decompiled easily
You have to spend some time to making/finding good obfuscators.
I think that ConfuserEx is the best free one


- - - Updated - - -

PS. In c++ you can make .dll that can be injected into another process. Idk if it is possible to do that in c#.
But overall c# is better if you want to code more in less time. There are several techniques to make your code faster.
In Visual Studio while making c# app you can make UI of your app by just dragging and dropping
c# is less complicated but slower.
c++ is more complicated but faster and got more possibilites.
ConfuserEx, It is basically a encrypt tool?

"c++ is more complicated but faster and got more possibilites."
This seems a myth since the two can use the api windows.


- Topic

you do not know any other way to acquire offsets except by brute force?
brute force is check if it changes while interact with game

I am currently suffering from some 200 addresses that need to find a static to change its value
Scanning can usually find him but if close the game the address changes (necessary find your true pointer) as well as releasing a version here. ^^
Quote Originally Posted by OiuriO View Post
Thanks for explanation.
All you spoke already know, understand the difference between high level languages (less complexity / lower performance) and low level languages (more complexity / higher performance) my doubt that the difficulty of working with processes and memories addresses because basically game hacking is change a value in memory (roughly speaking mode)

I still doubt whether it is better to do in C# or C++ haha



ConfuserEx, It is basically a encrypt tool?

"c++ is more complicated but faster and got more possibilites."
This seems a myth since the two can use the api windows.


- Topic

you do not know any other way to acquire offsets except by brute force?
brute force is check if it changes while interact with game

I am currently suffering from some 200 addresses that need to find a static to change its value
Scanning can usually find him but if close the game the address changes (necessary find your true pointer) as well as releasing a version here. ^^
Encrypt tools doesn't work on c# apps because you can always dump an app from memory.
ConfuserEx is an obfuscator. It means that it changes the code to make it a lot harder to understand.

 
Unprotected app

 
ConfuerEx


As you can see even decompiler can't decompile every function.
But everything is possible!
If someone wants to crack your app he will do this.
Quote Originally Posted by Zaczero View Post


Encrypt tools doesn't work on c# apps because you can always dump an app from memory.
ConfuserEx is an obfuscator. It means that it changes the code to make it a lot harder to understand.

 
Unprotected app

 
ConfuerEx


As you can see even decompiler can't decompile every function.
But everything is possible!
If someone wants to crack your app he will do this.
There is UnconfuserEx which you can simply use to decompile it. Otherwise, you could just look for the decrypt function inside of the binary and call it with the binaries memory.

Encryption is also completely unrelated to the question if C# or C++ is better for game hacking.
Quote Originally Posted by WasserEsser View Post
There is UnconfuserEx which you can simply use to decompile it. Otherwise, you could just look for the decrypt function inside of the binary and call it with the binaries memory.

Encryption is also completely unrelated to the question if C# or C++ is better for game hacking.
I was replying for his question about confuserex
Quote Originally Posted by Zaczero View Post


Encrypt tools doesn't work on c# apps because you can always dump an app from memory.
ConfuserEx is an obfuscator. It means that it changes the code to make it a lot harder to understand.

 
Unprotected app

 
ConfuerEx


As you can see even decompiler can't decompile every function.
But everything is possible!
If someone wants to crack your app he will do this.
hm, so nice, i use minify reources ( css / js ) on the job. Is "similar" to obfuscator haha beacause need beautify the source code to undestand
but why i would use it? if this community is open source? O.o

Quote Originally Posted by WasserEsser View Post
There is UnconfuserEx which you can simply use to decompile it. Otherwise, you could just look for the decrypt function inside of the binary and call it with the binaries memory.

Encryption is also completely unrelated to the question if C# or C++ is better for game hacking.
ya, its unrelated but knowledge is never too much ^^
C# can be decompiled easily
You have to spend some time to making/finding good obfuscators.
I think that ConfuserEx is the best free one


- - - Updated - - -

PS. In c++ you can make .dll that can be injected into another process. Idk if it is possible to do that in c#.
But overall c# is better if you want to code more in less time. There are several techniques to make your code faster.
In Visual Studio while making c# app you can make UI of your app by just dragging and dropping
c# is less complicated but slower.
c++ is more complicated but faster and got more possibilites.
C# can be injected and access direct memory and unmanaged functions.

Sorry for the spaced, cant post links here still.

See: github. com/lo lp1/DomainWrapper

This is my library for interacting both internally and externally with processes in c#

github. com/lo lp1/Process. NET
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us