/CSGO-Internal-Hack

An example of Internal Game Hacking (CSGO) using CTHackFramework.

Primary LanguageC++

CSGO-Internal-Hack

An example of Internal Game Hacking (CSGO) using CTHackFramework.

Notice

 Recently, I received a number of issues, which mentioned that injecting Dll will lead to game crash and other situations. At the same time, I personally encountered similar situations, such as prompting "LoadLibraryW failed".

 After a period of searching, I found that the problem comes from the Dll injection process, because I do not know enough about dll injection, so I have been unable to solve these problems.

 Recently, I found that by using "GH-Injector", some problems can be solved. The method of use is as follows:

 1. Download the GH-Injector from Guid Hacking

 2. Inject Indicium-Supra.dll using LoadLibraryExW and NtCreateThreadEx.

 3. Inject CSGO-Hack.dll using ManualMap and NtCreateThreadEx.

 4. A overlay should be shown in the game.

Introduction

 An example of internal game hacking based on CTHackFramework, give you a basic idea of game hacking using C/C++ and CTHackFramework.

What is "internal" hacking?

 Since it`s a so-called "Internal" hack, what does it means is that basically, instead of creating a new process and then read/write data in the memory of the game process, "internal" hack would inject our codes into the target process, and run our code inside target proc, which has lots of advantages compared with External method.

  • Fast memory access
  •  Within the process, you can access memory directly and freely cause target memory is also "your" memory, if you get the idea.

  • Call game function
  •  As a internal hack, your code is injected into the target process, so you can call the function from game.Such as some command like GiveWeapon, KillBot, and even functions that from game engine like UpdateTexture or LoadSound.

  • The same privilege
  •  Since target process consider your code as his code, your code will run with the same privilege as the targer process does.

  • Concealment
  •  If done right, the hack code will not be detected by anti-cheat system that easy.

How does it work?

 First, we use DLL injection to inject our .dll into the target process, then we hook the d3d9 device of the target process, so we can replace present() function with our modified one, draw our contents after the game has finished drawing and before it present to the user. Here we use ImGui for gui. Then we can do stuff as we want, change the value, read enemy position, fire your weapon, etc.

Features

GUI

 You can use the simple and convenient built-in user interface to set up your hack, and you can quickly configure the function in the game.

◉ Trigger Bot

 When your crosshair is pointing to an enemy, the trigger is pulled automatically by trigger bot. You can also add auto recoil compensation, scope-only mode, etc. Automatically change the behavior based on what weapon you are holding.

◉ Aim Bot

Aimbot Setting

 In Aimlock mode, your crosshair is locked to the nearest enemy`head. You can lock enemy whether it`s behind the wall or not, but you can also lock on an enemy only if he is visible in your screen of view.

 In FOV(Field of View) mode, your crosshair will snap to the nearest enemy that is within specific angle range, for example only when enemy whose head is nearby your crosshair with a range about 10 degrees. To be more advanced, you can use dynamic FOV range, different horizontal and vertical sensitivity, movement speed compensation, etc.

 Smooth value controlls how fast your crosshair moves to the target, imagine the aimbot is allways tries to drag yor crosshair to the enemys head, or any body parts you want. This can make the hacks more covert, and seems more legit, which you can call it a micro-aimbot.

 What`s more, you can now combine aimbot and RCS together to be more legit and effective. Just like a pro, aim to the enemy and spray em down. Do the transfer, do the clutch, just enjoy.

◉ RCS

RCS

 With RCS, which stands for the Recoil Control System, you can spray any weapon with high accuracy, the recoil has been compensated automatically by RCS, just aim to the enemy then push the button and let it does the anti-recoil stuff for you.

◉ Glow Wall Hack

Glow

 Glow hack will glow all the entity we interested in, such as enemies, weapons on the ground, C4, grenades,etc. You can also use the color picker provided by ImGui to customize the color for different entities.

Glow Setting

◉ Radar Hack

Radar

 Radar hack will display the marker which stands for an enemy on your in-game radar when the enemy is nearby, even if they've never shown theirselves.

◉ Bhop

 Good old bhop, jump like a bunny, gain speed and move your ass faster than what your component could imagine.

◉ SkinChanger

Skin Changer

 Access all the skins available in CSGO, dragon lore, fire serpent,etc. Change the skin as you wish, without limitation. You can change the worn and the seed of the skin and all the add-ons available, such as statrack, nametag.

How to use

 1. Download the repo and extract it.

 2. Download all the dependency mentioned bellow.

 3. Open with VS 2017 or higher and complie the code. Make sure to build as release x86 configuration.

 4. Create a new folder, put Indicium-Supra.dll, CSGO-Hack.dll and Injector.exe in it.

 5. Open up CMD and use cd command to navigate to this folder.

   cd (PATH_TO_THE_FOLDER)

 6. Use the injector to inject both dll in to csgo.exe. (Indicium-Supra.dll must be injected first)

   Injector -n csgo.exe -i Indicium-Supra.dll CSGO-Hack.dll

 7. An in-game overlay will appear.

 8. Hacks on babe.

To be more convenient

 Write yourself a .bat script to automate the injection process. Put the .bat in the same folder.

Inject.bat

     Injector -n csgo.exe -i Indicium-Supra.dll CSGO-Hack.dll

     ping 192.0.2.2 -n 1 -w 1000 > nul

     EXIT

Eject.bat

     Injector -n csgo.exe -e CSGO-Hack.dll Indicium-Supra.dll

     ping 192.0.2.2 -n 1 -w 1000 > nul

     EXIT

Troubleshoot

 1. If is says no pch.h found, just go to Project->Property->C/C++->Precompiled Header change to Not Using Precompiled Headers.

 2. If some include path is broken, just follow the error and change the path.

 3. If you use other injector, remember that Inject Indicium-Supra.dll first and then inject CSGO-Hack.dll.

 4. Remember to update the file path in the code and make sure it`s correct.

Dependency

Dear ImGui

 Dear ImGui is a bloat-free graphical user interface library for C++. It outputs optimized vertex buffers that you can render anytime in your 3D-pipeline enabled application. It is fast, portable, renderer agnostic and self-contained (no external dependencies).

 Check Dear ImGui on github: Dear ImGui

Injector

 nefarius`s Dll Injector is a command line tool abstracting the messy injection process away from you.

 Check Injector on github: Injector

Indicium-Supra

 Indicium-Supra consists of a self-contained library (DLL) which exposes a minimalistic API for rendering custom content in foreign processes eliminating the need for in-depth knowledge about Direct3D and API-hooking. The most common use-case might be drawing custom overlays on top of your games. The framework takes care about pesky tasks like detecting the DirectX version the game was built for and supports runtime-hooking (no special launcher application required).

 Check Indicium-Supra on github: Indicium-Supra

About

 It`s welcomed for anyone to contribute to this project. Feel free to upload your code and pull a request. More than anything, please share your idea and give me some precious advices.

Celestial Tech

 For more please check out website: Celestial Tech

 Copyright © 2019 Celestial Tech