Created
February 15, 2021 19:26
-
-
Save RDxR10/c4793c1a4f942f9b2fe515fe1026a77c to your computer and use it in GitHub Desktop.
Desc : Simon is waiting for you in basement 36 and wants to have brunch together. Take this key and ciphertext to enter the basement. Have a pleasant brunch! Key: 0xABBBAAABAABAAABAAABABAABAAABABBA CT: 0xDCD9D598AE2990D31F230F3BE7813716 NOTE: Enclose flag within PESUCTF{} ALPHANUMERIC format : ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from simon import SimonCipher | |
my_simon = SimonCipher(0xABBBAAABAABAAABAAABABAABAAABABBA) | |
simon_ciphertext = 0xDCD9D598AE2990D31F230F3BE7813716 | |
simon_plaintext = my_simon.decrypt(simon_ciphertext) | |
print(hex(simon_plaintext)[2:]) | |
#note that this is in base36 format |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment