1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[writeup] picoCTF "Includes"

Posted at

今回の問題

picoCTFより"Includes"を解いていきます。

実際に解いていく

1. 問題文にあるWebサイトに移動する

Includes_1.png
インクルードについて記述されています。
インクルードとは、ざっくりいうと「あるファイルの中に、別のファイルを入れて使えるようにすること」ですかね。

2. 下にあるボタンを押してみる

Includes_2.png
[Say hello]というボタンを押してみました。
なになに...このコードは分かれたファイルからできている??
つまり、インクルードされていると推測しました。

3. Webインスペクタを開く

Includes_3.png
ソースコードを見てみると、HTMLファイルの中に、style.cssとscript.jsがインクルードされていますね。

4. style.cssとscript.jsを見てみる

Includes_4.png
Includes_5.png
[Elements]から[Sources]に移動します。すると、このWebサイトの構成が確認できます。
それぞれのファイルにFLAGがコメントアウトされています。
これにてFLAGを獲得しました!

補足

特になし

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?