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?

KSNCTF #8 Basic is secure?

Posted at

Basic is secure?

.pcapファイル

.pcapファイルはパケットファイルなので、Wireshakeで見てみる。
スクリーンショット 2025-05-12 110735.png
TCPの3ウェイハンドシェイクのような通信が行われている。
3回通信されているが、OKと書いている部分に対して追跡を行い、ASCII形式に変換すると以下のような結果がでた。

スクリーンショット 2025-05-12 105657.png

この通信を行う上で、BASIC認証を行っていることがわかる。
htmlにThe flag is q8's passwordと書いているので、Authorization: Basic cTg6RkxBR181dXg3eksyTktTSDhmU0dBに注目する。

形式は以下のようになっている。

Authorization: Basic <BASE64エンコードしたユーザ名:パスワード>

Base64の復号

CyberChefを用いてcTg6RkxBR181dXg3eksyTktTSDhmU0dBを復号すると、

q8:FLAG_hogehoge

と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?