Skip to content

1neskk/Source2-DMA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source2 DMA

This project is built on top of my CS2 External Base and it is a DMA (Direct Memory Access) software targeting CS2 and Deadlock, I recommend using this project to start learning DMA attacks using a FPGA device in a "fun" (considering that you do not disrupt other players' experience) way since it has considerable abstraction due to DMALibrary.

This project was created with the goal to assist in the learning experience regarding game hacking, DMA attacks, FPGA. It is meant to be used for educational purposes only, because of that offsets are most likely outdated and keep in mind that this project should not be used for malicious purposes.

Warning

The game Deadlock ("deadlock.exe") is not yet fully supported.

Disclaimer

This project is for educational purposes only. I do not condone cheating in any form.

I did not test the project thoroughly when creating the repo (late March 2026) but it should work fine. Last tested in February to early March 2026.

Table of Contents

Features

  • Physical memory reading through the PCIe Bus lane (abstracted)
  • ESP (Name, Health, Box, Bones, Team Check)
  • Fuser compatible overlay
  • PCILeech compatible DMA
  • Separate worker thread for DMA operations with a double-buffer + mutex approach to avoid race conditions, "making" the main thread for GUI render (most intensive task in main thread)

Requirements

  • FPGA board (tested on XC7A75T) with DMA capable firmware (PCILeech-based is encouraged)
  • Secondary machine running the software
  • Visual Studio 2022 with the Desktop development with C++ workload (MSVC v143, C++20)

Dependencies

Get Started (Windows Only)

  1. Clone the repository recursively
git clone --recursive git@github.com:1neskk/Source2-DMA.git
  1. Run scripts/setup.bat — this invokes a Python script that creates a build/ directory and generates a Visual Studio 2022 x64 solution via CMake
  2. Open the solution file inside the build directory
  3. Build the solution
  4. Run the resulting executable (considering all the requirements and dependencies)

Usage

  • Press 'INSERT' to toggle the imgui menu
  • The 'Attach' button will attach the software to the selected game's process (the game must be open)
  • When attached to the game's process the 'Detach' button will detach the program from the game's process
  • The 'Exit' button will close the program

Project Structure

Source2-DMA/
├── src/              # Application source code (entry point, cheat logic, overlay, offsets)
│   ├── imgui/        # Fonts used by the ImGui menu/overlay
│   └── offsets/      # Game offset definitions
├── thirdparty/       # Git submodules (DMALibrary, GLM, ImGui)
├── lib/              # Pre-built static libraries (.lib)
├── vendor-bin/       # Runtime DLLs required next to the executable
├── scripts/          # Build helper scripts (setup.bat / setup.py)
└── CMakeLists.txt    # Build configuration

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

PCILeech compatible CS2/Deadlock DMA ESP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages