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.
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.
- Features
- Requirements
- Dependencies
- Get Started (Windows Only)
- Usage
- Project Structure
- License
- Contributing
- 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)
- 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)
- DirectX SDK
- CMake
- Python 3 (optional, used by the setup script to invoke CMake)
- GLM, ImGui and DMALibrary (included as git submodules)
- The following DLLs inside
vendor-binmust be placed in the same directory as the compiled executable:FTD3XX.dll— FTDI D3XX driverleechcore.dll— LeechCorevmm.dll— MemProcFS
- Clone the repository recursively
git clone --recursive git@github.com:1neskk/Source2-DMA.git- Run
scripts/setup.bat— this invokes a Python script that creates abuild/directory and generates a Visual Studio 2022 x64 solution via CMake - Open the solution file inside the
builddirectory - Build the solution
- Run the resulting executable (considering all the requirements and dependencies)
- 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
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
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.