mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-29 03:42:41 +00:00
XOR IS FINISHED FUCKING JESUS
This commit is contained in:
@@ -21,11 +21,14 @@ def main():
|
|||||||
f = open(filename,'rb')
|
f = open(filename,'rb')
|
||||||
data = f.read()
|
data = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
|
with open("xor_960x640px.gif.enc.enc", "rb") as f:
|
||||||
expanded_key = expand_key("0123456789", len(data))
|
key = f.read()[:10]
|
||||||
|
print(len(key))
|
||||||
|
#key=b"1234567890"
|
||||||
|
expanded_key = expand_key(key, len(data))
|
||||||
data_encrypted = xor(expanded_key, data)
|
data_encrypted = xor(expanded_key, data)
|
||||||
|
|
||||||
print(data_encrypted)
|
#print(data_encrypted)
|
||||||
|
|
||||||
f = open(filename + ".enc", "wb")
|
f = open(filename + ".enc", "wb")
|
||||||
f.write(data_encrypted)
|
f.write(data_encrypted)
|
||||||
@@ -80,7 +83,7 @@ def decrypt():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# main()
|
main()
|
||||||
decrypt()
|
#decrypt()
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
BIN
xorBASICALLYFINISHED/temp/xor_960x640px.gif.enc.enc.gif
Normal file
BIN
xorBASICALLYFINISHED/temp/xor_960x640px.gif.enc.enc.gif
Normal file
Binary file not shown.
Reference in New Issue
Block a user