Skip to content

Instantly share code, notes, and snippets.

@RDxR10
Created February 15, 2021 19:26
Show Gist options
  • Save RDxR10/c4793c1a4f942f9b2fe515fe1026a77c to your computer and use it in GitHub Desktop.
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
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