From 95623e7b0dad334c1b002571ea720ae826e68f9a Mon Sep 17 00:00:00 2001 From: Kyle Mohr <6644803+kylefmohr@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:27:54 -0500 Subject: [PATCH] making output easier to understand --- patcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patcher.py b/patcher.py index e321018..cb8609a 100644 --- a/patcher.py +++ b/patcher.py @@ -37,6 +37,9 @@ def modify_exe(input_path): for i, byte in enumerate(replacement_bytes): data[offset + i] = byte return True, None + elif read_bytes == replacement_bytes: + print(f"Bytes already modified at offset: {hex(offset)}, no changes made.") + return False, "Program already patched" else: print(f"These bytes: {read_bytes.hex()} did not match expected bytes: {expected_bytes.hex()}") return False, "Bytes did not match"