diff --git a/cscg25/rev/intro2/rev2.bndb b/cscg25/rev/intro2/rev2.bndb index 28c2d7f..604ff60 100644 Binary files a/cscg25/rev/intro2/rev2.bndb and b/cscg25/rev/intro2/rev2.bndb differ diff --git a/cscg25/rev/intro3/genPassword.py b/cscg25/rev/intro3/genPassword.py new file mode 100644 index 0000000..79e0331 --- /dev/null +++ b/cscg25/rev/intro3/genPassword.py @@ -0,0 +1,13 @@ +password = b"b9yPw:MwqcoHuFz^r-o*{>I\020Y" + +def reverse_transformation(input_bytes): + input_bytes = bytearray(input_bytes) # Convert to mutable bytearray + for i in range(len(input_bytes)): + input_bytes[i] = (input_bytes[i] + 2) % 256 # Step 1: Add 2 + input_bytes[i] ^= (i + 0xa) # Step 2: XOR with (i + 0xa) + return bytes(input_bytes) # Convert back to bytes + +real_password = reverse_transformation(password) + +with open("password.bin", "wb") as f: + f.write(real_password) diff --git a/cscg25/rev/intro3/password.bin b/cscg25/rev/intro3/password.bin new file mode 100644 index 0000000..8ec4572 --- /dev/null +++ b/cscg25/rev/intro3/password.bin @@ -0,0 +1 @@ +n0w_w3_have_a_dyn4m1c_k3y \ No newline at end of file