From 0e058d62cec184f70c4a21636ac2ebda39900ef2 Mon Sep 17 00:00:00 2001 From: Michael Taggart Date: Tue, 28 Feb 2023 20:34:35 -0800 Subject: [PATCH] Add write confirmation --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 710848a..1ae0a3a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,6 +111,7 @@ async fn main() { println!("Writing memory..."); let mut n = 0; WriteProcessMemory(h, addr, sc.as_ptr() as _, sc.len(), Some(&mut n)); + println!("Wrote {n} bytes"); println!("Changing mem permissions to RX"); let mut old_protect: PAGE_PROTECTION_FLAGS = PAGE_READWRITE;