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

More than 1 year has passed since last update.

BMPの修正

Last updated at Posted at 2023-11-03

[picoCTF][Forensics][tunn3l v1s10n]

Writeup

  • 基本のfileコマンド。
    file.png

  • とりあえずバイナリエディタで見ると、BMPっぽい。
    でもエラーが出て、表示されないなぁ。
    error.png

  • 参考サイトでheader sizeの値を確認したら、¥x28か¥x0cのはず。
    4バイトを¥x28¥x00¥x00¥x00に変更してみた。リトルエンディアン。
    tunn3l_v1s10n_28.png
    notaflagとか書いてあるので、答えではないようだ。

  • ちなみに4バイトを¥x0c¥x00¥x00¥x00に変更してみたら違うエラーになった。
    BMP image has bogus header data
    OS/2 Bitmapではないようだ。

  • 横長の画像なので、とりあえず縦のサイズを横のサイズ(¥x6e¥x04¥x00¥x00)にしてみた。
    binary.png

  • フラグをゲット
    answer.png

*以上です。

参考サイト

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