Skip to content

Therdel/cssHack

Repository files navigation

Cross Platform Counter-Strike: Source hack

for GNU/Linux and Windows
360_hack.mp4

Features

  • Bunnyhop
  • Aimbot
    • 360 NoScope Aimbot
    • Aim by FOV / Distance
    • Aimkey
    • Autoshoot
    • No Recoil
    • No Visual Recoil
  • Triggerbot
    • 360 NoScope Triggerbot
  • Visuals
    • Real Crosshair / Effective Bullet Angles
    • Draw effective FOV
    • Player Position/Orientation
  • Ingame Cheat Menu
  • Panic Key (disable everything on button press)

Media

  • FOV Aimbot
  • 360 Aimbot
  • Bunnyhop
  • Player Position/Orientation
  • NoRecoil
  • Bullet ESP

Techniques used

  • Code injection
    • Windows: CreateRemoteThread/LoadLibrary Method
    • GNU/Linux: GDB attach/dlopen script
  • Detouring / Hooking
    • Detour to thiscall / generic lambda
    • Trampolines / Thunking
    • Mid function / jmp detour
    • Call redirection
  • Auto offsets (Game update resistance)

Credits

  • aixxe - GNU/Linux SO injection

Getting Started

Building

  1. [only for GNU/Linux]
    install compilation tools
    sudo apt-get install cmake ninja clang
    install packages for 32bit compilation (game is 32bit only)
    sudo apt-get install gcc-multilib g++-multilib
    install OpenGL dev lib used for rendering
    sudo apt-get install libgl-dev libxext-dev libudev-dev libxkbcommon-dev
  2. clone repository
    git clone https://github.com/Therdel/cssHack.git --recurse-submodules --shallow-submodules --depth=1
    cd cssHack
  3. build
    # configure build
    /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S. -Bbuild -G Ninja
    
    # build
    cmake --build build --config Debug --target all --parallel

Injecting use at your own risk

Windows

Winject 1.7 is easy to use use at your own risk. Get it from e.g. oldschoolhack.me

GNU/Linux

  • I bundled three scripts in the scripts/ directory: inject.bash, eject.bash & reinject.bash. I adapted aixxe's idea for these.
  • You may have to adapt paths in the scripts.
  • These attach the GDB Debugger to the game process for injection. Doing this to a process we haven't started isn't allowed under normal circumstances. So execute scripts/disable_ptrace_scope.bash with sudo privileges once per login session to use these scripts.

Debugging

Built using Clang(LLVM), so debug using LLDB, e.g. with CodeLLDB in vscode

About

Counter-Strike: Source hack for GNU/Linux and Windows

Topics

Resources

License

Stars

Watchers

Forks

Contributors