message = [0x65,0x0D,0x0D,0x02,0x20,0x08,0x0D,0x00,0x4A,0x20,0x17,0x0D,0x13,0x20,0x11,0x0D,0x0A,0x14,0x03,0x02,0x20,0x0D,0x0C,0x03,0x20,0x0B,0x0D,0x10,0x03,0x20,0x01,0x06,0x7F,0x0A,0x0A,0x03,0x0C,0x05,0x03,0x20,0x07,0x0C,0x20,0x17,0x0D,0x13,0x10,0x20,0x08,0x0D,0x13,0x10,0x0C,0x03,0x17,0x4C,0x20,0x72,0x06,0x07,0x11,0x20,0x0D,0x0C,0x03,0x20,0x15,0x7F,0x11,0x20,0x04,0x7F,0x07,0x10,0x0A,0x17,0x20,0x03,0x7F,0x11,0x17,0x20,0x12,0x0D,0x20,0x01,0x10,0x7F,0x01,0x09,0x4C,0x20,0x75,0x7F,0x11,0x0C,0x45,0x12,0x20,0x07,0x12,0x5D,0x20,0x4F,0x50,0x56,0x20,0x09,0x03,0x17,0x11,0x20,0x07,0x11,0x20,0x7F,0x20,0x0F,0x13,0x07,0x12,0x03,0x20,0x11,0x0B,0x7F,0x0A,0x0A,0x20,0x09,0x03,0x17,0x11,0x0E,0x7F,0x01,0x03,0x4A,0x20,0x11,0x0D,0x20,0x07,0x12,0x20,0x11,0x06,0x0D,0x13,0x0A,0x02,0x0C,0x45,0x12,0x20,0x06,0x7F,0x14,0x03,0x20,0x12,0x7F,0x09,0x03,0x0C,0x20,0x17,0x0D,0x13,0x20,0x12,0x0D,0x0D,0x20,0x0A,0x0D,0x0C,0x05,0x20,0x12,0x0D,0x20,0x02,0x03,0x01,0x10,0x17,0x0E,0x12,0x20,0x12,0x06,0x07,0x11,0x20,0x0B,0x03,0x11,0x11,0x7F,0x05,0x03,0x4C,0x20,0x75,0x03,0x0A,0x0A,0x20,0x02,0x0D,0x0C,0x03,0x4A,0x20,0x17,0x0D,0x13,0x10,0x20,0x11,0x0D,0x0A,0x13,0x12,0x07,0x0D,0x0C,0x20,0x07,0x11,0x20,0x02,0x02,0x7F,0x02,0x0A,0x02,0x11,0x00,0x03,0x00,0x0C,0x07,0x4C]
message = "".join([chr(i) for i in message])
for j in range(128):
flag = ""
for i in range(len(message)):
if ord(message[i])+j>127:
flag += chr(ord(message[i])+j-128)
else:
flag += chr(ord(message[i])+j)
print "Key = " + str(j) + ", Flag = " + flag
Key = 98, Flag = Goodjob,yousolvedonemorechallengeinyourjourney.Thisonewasfairlyeasytocrack.Wasn'tit?128keysisaquitesmallkeyspace,soitshouldn'thavetakenyoutoolongtodecryptthismessage.Welldone,yoursolutionisddadldsbebni.
'Wargame > wechall challenge' 카테고리의 다른 글
[wechall challenge] Training: Crypto - Substitution I (0) | 2019.11.04 |
---|---|
[wechall challenge] Training: Crypto - Transposition I (0) | 2019.11.04 |
[wechall challenge] Training: Crypto - Caesar I (0) | 2019.11.04 |