A Counter-Strike Sharp (CSSharp) plugin that provides runtime memory patching capabilities for CS2 game binaries. This plugin allows you to apply custom patches to the game server without modifying the original game files.
-
Download the plugin and place it in your CSSharp plugins directory:
game/csgo/addons/counterstrikesharp/plugins/CSSharpPatcher/
-
Configure the plugin:
- Navigate to
game/csgo/addons/counterstrikesharp/configs/plugins/CSSharpPatcher/
- Important: Rename
CSSharpPatcher.example.json
toCSSharpPatcher.json
if this is your first time installation - Edit the configuration file to enable/disable patches as needed
- Navigate to
-
Restart your server
The configuration file (CSSharpPatcher.json
) uses the following structure:
{
"Patches": {
"PatchName": {
"module": "server",
"windows": {
"signature": "memory signature for Windows",
"patch": "hex bytes to patch"
},
"linux": {
"signature": "memory signature for Linux",
"patch": "hex bytes to patch"
}
}
},
"EnabledPatches": ["PatchName1", "PatchName2"],
"RestoreWhenUnload": true,
"ConfigVersion": 1
}
- Clone the repository
- Install .NET 8.0 SDK
- Run
dotnet build
in the project directory - Copy the built files to your CSSharp plugins directory
This project is provided as-is for educational and development purposes. Use at your own risk.
- Memory patching implementation based on work by @xstage