PhysPatch performs physical memory scanning and patching of the entire Windows Kernel using DMA.
PhysPatch uses memflow to access memory of the virtual machine, and AOBscan to perform the multi-threaded memory scanning.
sh
physpatch -g "TargetVM" -p "48 8b 00 00" -- "48 8b ? ? ? ? ? 48"
sh
physpatch -- "488b?????48"
See physpatch --help
for all the available arguments and their descriptions.
Who doesn't love Cargo? You can install PhysPatch with it, by running:
sh
cargo install physpatch
You can now launch the program with the physpatch
command.
Rust is required to build from source. If you don't have it installed, you can install it using rustup.
sh
git clone https://github.com/sonodima/physpatch
cd physpatch
cargo build --release
The compiled binary will be located at target/release/physpatch
PhysPatch comes with the memflowqemu and memflowwin32 libraries embedded, so you will not need any setup in your host machine to use it.
This project is heavily inspired by Hygieia, which is a scanning tool to find traces of vulnerable drivers.