From df59764861742648ccc1dd27388cd95703d3080a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Jul 2025 16:07:39 +0200 Subject: changed folder structure & deleted useless files --- not.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 not.py (limited to 'not.py') diff --git a/not.py b/not.py new file mode 100644 index 0000000..e010561 --- /dev/null +++ b/not.py @@ -0,0 +1,16 @@ +from sys import argv + +# Read two file as byte array +file_b = bytearray(open(argv[1], 'rb').read()) + +size = len(file_b) +notd_byte_array = bytearray(size) + +# NOT the file +for i in range(size): + notd_byte_array[i] = file_b[i] ^ 255 + +# Write the NOTd bytes to the output file +open(argv[2], 'wb').write(notd_byte_array) + +print (f"[*] NOT {argv[1]}\n[*] Saved to \033[1;33m{argv[2]}\033[1;m.") -- cgit v1.2.3