Skip to content

Commit

Permalink
Add write confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
mttaggart committed Mar 1, 2023
1 parent 082e121 commit 0e058d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e058d6

Please sign in to comment.