From a91a882ab9608db3f0320b7b391e439bd0c030b0 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Fri, 27 Nov 2020 00:15:14 -0800 Subject: [PATCH] fixed some issues with how i read/write phys --- PTM/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PTM/main.cpp b/PTM/main.cpp index 550eb7a..1b2570e 100644 --- a/PTM/main.cpp +++ b/PTM/main.cpp @@ -41,13 +41,13 @@ int __cdecl main(int argc, char** argv) _read_phys = [&](void* addr, void* buffer, std::size_t size) -> bool { - return my_proc.read_phys(addr, buffer, size); + return my_proc.read_phys(buffer, addr, size); }; _write_phys = [&](void* addr, void* buffer, std::size_t size) -> bool { - return my_proc.write_phys(addr, buffer, size); + return my_proc.write_phys(buffer, addr, size); }; std::printf("[+] sleeping 30 seconds...\n");