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 5 years have passed since last update.

ksnctf 18 USB flash drive

Last updated at Posted at 2020-03-01

ksnctf 18 USB flash drive

  • ディスクイメージファイルをwindows上でunzipしマウントしようとすると壊れているといわれる
    image.png

  • WSL上でflsすると、.jpgが何枚かある

    • r/rがファイルを表し、d/dがディレクトリを表す
    • *印は削除済みファイルを表す
    • 4-128-4などの数字はinode番号を表す
      image.png
  • icatでinode番号を指定して、.jpegを開いてみる
    image.png

  • 36番のjpegファイルに"The flag is in this file, but not in this image"とある

  • jpegファイルをほかの方法で開くことを考える

    • .txt形式
      • 36-128-1を.txtで出力しても、訳の分からない中身
      • 36-128-4を出力すると、FLAの文字
        image.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?