This C++ DLL hooks NtWriteVirtualMemory and dumps the Buffer parameter to a unique .bin file on the desktop each time the function is called.
- Trampoline Hooking: Hooks the
NtWriteVirtualMemoryfunction using trampoline technique. - Parameter Dumping: Captures the
Bufferparameter ofNtWriteVirtualMemoryand writes it to a.binfile. - Unique File Naming: Generates a unique filename for each dump to avoid overwriting existing files.
- Visual Studio (or any C++ compiler that supports Windows DLL development)
To build the DLL, follow these steps:
- Clone the repository:
git clone https://github.com/felipeczpaz/NtWriteVirtualMemory-Dumper.git - Compile dllmain.cpp: Use any C++ compiler capable of building Windows DLLs.
- Copy the DLL: Once compiled, copy NtWriteVirtualMemoryDumper.dll to the desired directory.
- Inject the DLL in the target process using any LoadLibrary or ManualMap injector
- The DLL will hook NtWriteVirtualMemory.
- Each time NtWriteVirtualMemory is called, the Buffer parameter will be dumped to a unique .bin file on the desktop.
This project is licensed under the MIT License - see the LICENSE file for details.