Source Code [Release] C++ Trainer Class

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Hey,

I coded this trainer class because somebody asked for it, but I couldn't find it for C++. . It supports:

- (Read and Write) Int8/Int16/Int32/Int64/Float/Double (and also the pointers)

I will think about adding read/write strings and DLL injection functions.


Make sure that after adding trainer.h and trainer.cpp you set 'Character Set' To 'Multi-Byte'.

Thanks for 'Cha0sBG' from mpqh for releasing his GetProcID function:
https://www.mpqh.net/forum/161-programming-tutorials/63802-c-get-process-id-name.html

Currently only memory hacking for 32 bit processes is supported.

As process name you need the full processname. (e.g. "nexuiz.exe")

Yes that was almost everything that I had to say. Download:
https://guidedhacking.com/attachment.php?attachmentid=1914&stc=1&d=1373535796

Virus scan (It's just a cpp and h file but however)
https://virusscan.jotti.org/de/scanresult/8d131a160aeeb679b78f38e6bebd62127517ee45


If you want, leave feedback (whether it works or not).
 

Attachments

r0man

Newbie
Full Member
Jul 24, 2013
13
182
0
Enumerate process (EnumerateProcess()) -> Get your process ID -> Call OpenProcess -> Call WriteProcessMemory -> CloseHandle....
I've used something like
FindWindow>GetWindowThreadProcessId>OpenProcess> then write to memory and then CloseHandle (i've reinstalled my system and forgot to copy my codes //fail)

https://guidedhacking.com/showthread.php?3581-Release-C-Trainer-Class[/QUOTE]
thanks for this, gonna check it as fast as i install msvs and shits on my computer

and regarding to the topic again, i wasn't sure what lpBaseAddress exactly is since im not familiar with offsets and shit.

Anyways thanks, but don't close this thread, because probaly i'll ask something new soon I believe
 

forivin

Newbie
Full Member
Mar 24, 2013
10
182
0
Can this even work on Windows 7?
For ReadProcessMemory you need to set debugging priviledges afaik.
Also I couldn't find ReadAsciiString() which is mentioned in your header file.

For me it didn't work.. idk. If you know how how to set debug priviledges tell me please.
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
AdjustTokenRights or whatever was the name of the function to achieve what you want r0man, can't remember exactly :S
 

forivin

Newbie
Full Member
Mar 24, 2013
10
182
0
Thanks. But it looks like on Windows 8 I don't these privileges. :)

One more question:
Since float values are stored in a very complicated way in the memory, I'm wondering if ReadFloat() can even work correctly.
If I'm correct, read float values are returned as weird very long integers. Because floats are stored like: [sign][mantissa][exponent]

edit: aww nvm. It works the way it is. :D
 
Last edited:

emptieness

Newbie
Jan 5, 2013
1
284
0
Can this even work on Windows 7?
For ReadProcessMemory you need to set debugging priviledges afaik.
Also I couldn't find ReadAsciiString() which is mentioned in your header file.

For me it didn't work.. idk. If you know how how to set debug priviledges tell me please.
C++:
	void SetDebugPrivilege()
	{
		HANDLE hToken, hProcess = GetCurrentProcess();
		TOKEN_PRIVILEGES priv;
		LUID luid;
		OpenProcessToken(hProcess, TOKEN_ADJUST_PRIVILEGES, &hToken);
		LookupPrivilegeValue(0, "seDebugPrivilege", &luid);
		priv.PrivilegeCount = 1;
		priv.Privileges[0].Luid = luid;
		priv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		AdjustTokenPrivileges(hToken, false, &priv, 0, 0, 0);
		CloseHandle(hToken);
		CloseHandle(hProcess);
	}
Working for WinXP, Vista, 7 and 8
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods