WebページのURLが与えられた。
アクセスしてソースを表示すると、最後の部分にこのテキストがあった。
An URL of a web page was given.
Accessing the URL and viewing the source of the page, I found this text in the last part:
https://ctf.setodanote.net/web004/bWFsa2l0.html というデータが得られた。
このURLに
Decoding this via "From Base64" in https://ctf.setodanote.net/web004/bWFsa2l0.html.
Accessing this URL via
Nice try!
Pay attention to the redirects.
Firefoxの開発者ツールのネットワークタブで、歯車のアイコンから「永続ログ」にチェックを入れてアクセスし直すと、 以下のURLにアクセスしていることがわかった。
I opened the Network tab in the Developer Tool in Firefox and put a checkmark on the "persistent logs" from the gear icon. Accessing the URL again after that, I found it accessing these URLs:
それぞれのURLのデータをcurlでダウンロードしてチェックすると、4番目のURLからダウンロードしたデータに、
パラメータのcallbackがgetFlagであれば
https://ctf.setodanote.net/web004/dGFjaGlrb21hX2thd2FpaV95b25l/? から始まるURLに飛ばすような記述がみられた。
そこで、この記述を参考に、このURLをcurlでダウンロードした。
I downloaded data from each URLs via curl and checked.
As a result, the data from the 4th URL had a part that redirects to an URL begins with https://ctf.setodanote.net/web004/dGFjaGlrb21hX2thd2FpaV95b25l/?
when callback in the parameters is getFlag.
Seeing this, I downloaded from this URL via curl, based on this part:
さらに、ここでダウンロードしたファイルに書かれていたパラメータの条件を参考に、以下のURLをcurlでダウンロードした。
Then, referring the conditions about the parameters in the downloaded file, I downloaded from this URL via curl:
ここでダウンロードしたファイルにflagが書かれていた。
The flag was in the file downloaded in this step.