I want to learn how to code

Posts 1–9 of 9 · Page 1 of 1
I want to learn how to code
Hi guys, I figured this would be the best place to ask this

Q1 : What language should I learn first and what language would you guys recommend me writing cheats for csgo in?

Q2 : What are source codes to a cheat?

Q3 : What are signatures to a cheat?

Q4 : What are offsets to a cheat and how would I get them if I start coding one?

Thanks a bunch dudes.
Quote Originally Posted by bombforallah69 View Post
Hi guys, I figured this would be the best place to ask this

Q1 : What language should I learn first and what language would you guys recommend me writing cheats for csgo in?

Q2 : What are source codes to a cheat?

Q3 : What are signatures to a cheat?

Q4 : What are offsets to a cheat and how would I get them if I start coding one?

Thanks a bunch dudes.
A1 : I learnt C# first, its really easy and after you learn the first language the rest are pretty easy. I currently write for CSGO in C++ but C# is also viable.

A2 : The code that goes into actually making the cheat. Usually this is compiled to an exe or obfuscated to prevent theft then that is given to the people, Because of the compilation or obfuscation it makes it very hard to obtain the original code. So the Source Code is the original unmodified code to a program, before compilation.

A3 : Its basically a code that identifies your cheat, its generated through the source and how it was compiled. This signature may then later be changed or mutated by another program. eg Engima

A4 : Offsets basically point to specific parts of the games memory, which in turn allows you to read that part of the memory and get the data. Example:

DWORD BaseEntity = mem.Read<DWORD>(DwClient + DwEntityList + (DwEntitySize * PlayerNumber));
int teamNum = mem.Read<int>(BaseEntity + DwTeamNumber);

That would read the number of the players team.
Would you be so kind as to link me some sources and tutorials on c#? I just did a generic search on Google and I don't know where to start
Quote Originally Posted by bombforallah69 View Post
Would you be so kind as to link me some sources and tutorials on c#? I just did a generic search on Google and I don't know where to start
http://www.learncpp.com/

They have some really good guides. If your new to coding read them all. If you have used other languages just skim through it.
He asked for C#, but I was just going to post that in my opinion it is easier to learn C++ first before C#. However, in my opinion it is best to learn C first above both of those other languages.

In my experience, C++ and C# both allow you to get in to some pretty bad programming habits. C is not as lenient. Again, just my opinion.

Edit: Also, this is my first post so you don't really need to listen to anything I have to say :P

Here is a little background on me though: I've been programming for a few years now (Only 4, 2 years in a professional environment, 2 years learning on my own) so I am in no way the most experienced programmer. I spend most of my time writing management software, but I do some light game development on the side. I have done work in C, C#, C++, Java, Javacript, HTML, and Python. I also know a little Assembly, but I hate it. I hate it so much >.>

Edit 2: Just for clarification, I mean 4 years of programming actual programs, not just the basics.
Learn c++ first, its a very good language for hacking, all its memory management lets YOU handle your own programs memory.

If you want to do just external programs (.exe's)
Offsets/Addresses: A address, the "start" of where you begin RPM, offsets are locations beyond the starting point.
Address: LocalPlayer, EntityList, EnginePtr, RadarBase etc.
Offset: m_iHealth, m_iTeamNum
If you want to find NetVars (They're offsets for health/team/angles etc) you can download a program called ollydbg, attach to CS:GO
click on the "E" letter which stands for Executable Modules, modules are client.dll, engine.dll and all the other ones there, but for now
choose "client.dll", double click it right click on the text section where you can see some asm, and search for all strings.
Inside there you can see all the strings inside client.dll, if you go to certain strings like m_iTeamNum double click it you can see the offset.
ps I'm pretty bad myself at this reversing stuff, but I'm getting better, so I did my best.

Internal:
Internal you can start hooking, you can also work the same way you do externally if you want to do that.
If you want to have a console you can just do AllocConsole and use freeopen to enable input for it.
when internal you are INSIDE the process, meaning you can get a pointer to everything by just creating a new pointer
and making it equal to something.

Simple internal code(Sort of pseudo I guess):
Code:
clientdll = (DWORD)GetModuleHandle(L"client.dll"); // We get a module handle, cast it to a DWORD, L stands for literal string.

DWORD *localPlayer = (DWORD*)(clientdll + LocalPlayerOffset); // Cast it to a DWORD* since our variable is defined that way.
// but if we are not ingame, and we try to dereference this pointer the game will crash, thats you can use
// something like isBadReadPtr(localPlayer, sizeof(localPlayer)), I usually do something like
// #define isGood(x) !IsBadReadPtr(x, sizeof(x))
// which is good enough.
// if you for example wanna change your attack state (After you have checked if localPlayer is ok):

int *Attack = (int*)(*localPlayer + AttackOffset); // Dereference localPlayer, cast it to a int pointer.

Now we can just dereference Attack ptr and directly change our attack:
*Attack = 5;
Sleep(5);
*Attack = 5;

//Do that in a while looop and you'll constantly shoot.
Quote Originally Posted by Yemiez View Post
Code:
clientdll = (DWORD)GetModuleHandle(L"client.dll"); // We get a module handle, cast it to a DWORD, L stands for literal string.
Just nitpicking, but the L means that is a wide string (wchar_t*) instead of a regular string (char*).
Quote Originally Posted by MarkHC View Post


Just nitpicking, but the L means that is a wide string (wchar_t*) instead of a regular string (char*).
God damn intellisense teaching me the wrong stuff, intellisense actually says "literal string" when I hover over it, good to know thanks

EDIT:
Actually it does say wchar_t, huh, dont know where I got that from.
For coding CSGO hack clients learn c# or c++ first. if you want to learn to code and apply it to somthing thats not just csgo hacking then i would recommend first learning java. GL with ur coding experience!
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us