initial commit
This commit is contained in:
11
CTF/Order/decrypt.py
Normal file
11
CTF/Order/decrypt.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def xor_decrypt(text, key):
|
||||
return bytes([text[i] ^ key[i % len(key)] for i in range(len(text))])
|
||||
|
||||
cypher_text1 = bytes.fromhex("1c1c01041963730f31352a3a386e24356b3d32392b6f6b0d323c22243f6373")
|
||||
cypher_text2 = bytes.fromhex("1a0d0c302d3b2b1a292a3a38282c2f222d2a112d282c31202d2d2e24352e60")
|
||||
|
||||
key = b"ORDER:"
|
||||
|
||||
key = xor_decrypt(cypher_text1[:len(key)],key)
|
||||
|
||||
print(xor_decrypt(cypher_text1+cypher_text2, key).decode('UTF-8'))
|
||||
Reference in New Issue
Block a user