PragyanCTF 2019|Spoiler

https://ctftime.org/task/7781

#pragyanctf

Bran Stark, wants to convey an important information to the Sansa back at winterfell. He sends her a message. The message however, is encrypted though.

Can you find out what Bran is trying to convey??

key.pdfがもらえて、そこには 3a2c3a35152538272c2d213e332e3c25383030373a15 ってかいてある。あとxxdでPDFをみると%%EOFのあとにもバイト列が続いている。うまく整形してやると 6a6f6e736e6f776973647261676f6e62796269727468 だとわかる。

あとは2つをxorしてやれば良いだけ。

>>> bytes.fromhex(hex(0x3a2c3a35152538272c2d213e332e3c25383030373a15 ^ 0x6a6f6e736e6f776973647261676f6e62796269727468)[2:])
b'PCTF{JON_IS_TARGARYEN}'