CS2 Kernel Mode cheat
Just my attempt to break CS2 in kernel mode app for win32/64
Brief information
Repository health status
Branch |
Health |
main |
|
Release |
|
Tag build |
|
Socials
Discord
Disclaimer
I am NOT responsible for your system crashes, VAC blocks, etc. This software is educational purposes only.
I just want to show that VAC still doesn't work properly and anyone with coding skills can break Counter Strike game. I am not supporting game hacking, cheating, exploiting etc. #fixcs2
Credits
Tools & Libraries
Tutorials & other information
Dependencies
Python libraries required for extentions development
- pylint: code checker
pip install pylint
- black: code formatter
pip install black
- pytest: unit tests framework
pip install pytest
All requirements can be installed with pip install -r requirements.txt
All requirements for development can be installed with pip install -r requirements_development.txt
Installation guide
Currently the installation section is in project wiki tab, all releases can be found here
Project build
Pre-build steps
- Get your CPython sources from official repo if you haven't yet, or perform
git pull
. Your working directory must look something like this:
.
..
wip
| cpython
| | PCBuild
| | | amd64
| CS2.KernelCheat
| | kernelmode
| | usermode
| imgui
| | backends
| kdmapper
- Install Python on your PC or build the sources.
- Configure venv in PythonExtentions folder
- Perform
pip install -r requirements.txt
- Run
pytest
in PythonExtentions folder
Make sure that you have the same folder structure as above.
Building usermode and kernelmode binaries
- Install Windows SDK and Windows Driver Kit by following the official tutorial
- Install DirectX SDK
- Clone the repository and whitelist it folder in your antivirus software
- Run Microsoft Visual Studio 2022 and open the project
- That should be enough, but you can tweak project settings altering project directories, etc.
- Run build from VS2022 GUI or by
msbuild
command
Build modes
- Debug. Basic debug mode, defines _DEBUG macro, more verbose and GUI contains some dev windows
- Release. Configuration, that's used by automation, can be used to build stable versions
- GUI_DEBUG. Defines _DEBUG, more verbose,. driver mapping is disables, memory reading disabled, overlay is enabled, creates blank window to overlay if cs2 window is not found. Pretty useful in development
Known issues
libucrtd.lib(checkcfg.obj) : error LNK2001: unresolved external symbol guard_check_icall$fo$
- remove security checks from compilation configuration
- Overlay lags. Decrease game video settings and lock framerate on 120 fps
- No overlay. Swith cs2 to windowed/borderless render mode
Mapping the driver
If native mapping from usermode.exe does not work or leads to system failure you can follow this steps:
- Download kdmapper release
- Whitelist kdmapper/project directory for your antimalware software
- Download cheat release from Releases tab
- Drag kernelmode.sys in kdmapper.exe
If there're no errors - you're done installing
Please note that you need to map kernelmode.sys every time after your PC restart
Usage
Please, make sure that project directory is whitelisted.
- Run usermode.exe as Administrator
- Run cs2.exe
GUI is in development, this section will be written soon
Modding & Configuring
If you want to contribute, please read contribution guideline
Currently, the project supports python3.11+ scripts as modding tool.
Modding core functionality
Here will be core modding flow
GUI Modding
Here will be gui mods tutor