PhysPatch performs physical memory scans and patches of the entire Windows kernel.
Usage
Scan for "488b??????????48" in the virtual machine named "TargetVM" and write "488b0000" to all matches:
Scan for "488b?????48" in the first virtual machine found, without performing any patching:
See physpatch --help for all the available arguments and their descriptions.
Installation
🦀 Cargo
Using Cargo is the easiest way to get started with PhysPatch:
You can now launch the program with the physpatch command.
🔩 From Source
&&
The compiled binary is located in target/release/physpatch
Requirements
⚠️ THIS TOOL ONLY SUPPORTS X86_64 GUEST SYSTEMS
CAP_SYS_PTRACE is required to use this program without elevation:
For more information, refer to the documentation for memflow_qemu
Disclaimer
PhysPatch is an extremely powerful tool, and incorrect usage can (will) lead to unintended consequences, including system crashes and data corruption.
Before using PhysPatch, ensure you fully understand its implications and effects. Proper knowledge of the memory structures and patterns you are searching for is essential.
Those associated with PhysPatch will not be held accountable for any damages, data losses, or system corruptions that arise from the usage of this tool.
Notable Mentions
This project is heavily inspired by Hygieia, which is a scanning tool to find traces of vulnerable drivers.