telepathy
WebページのURLと、サーバのファイル一式が与えられた。
Webページにアクセスすると、「I'm sending the flag to you by telepathy... Got it?」と表示された。
与えられたファイル中の challenge/default.conf
を読むと、
flagの形式の文字列をこの文字列に置換しているようだった。
Firefox の開発者ツールでヘッダ
An URL of a Web page and the files for the server were given.
Accessing to the web page, a string "I'm sending the flag to you by telepathy... Got it?" was shown.
Reading challenge/default.conf
in the given files,
I found that it looks like replacing strings in the format of the flag to this string.
Adding this header via the Developer Tool on Firefox and doing "edit and resend":
Range: bytes=0-10
を追加し、「編集して再送信」すると、
The server sent this response:
CakeCTF{r4n
というレスポンスが返ってきた。さらに、
Also, adding this header:
Range: bytes=11-
というヘッダを追加すると、レスポンスは
Resulted in this response:
g3-0r4ng3-r4ng3}
となった。
これらのレスポンスを組み合わせることで、flagが得られた。
I obtained the flag by merging these responses.
CakeCTF{r4ng3-0r4ng3-r4ng3}
writeup by MikeCAT
CakeCTF 2021