/ctf

Primary LanguagePython

ctf

Env

  • Windows 11
  • WSL2 Ubuntu 20.04

Tool

Cryptography

Transposition cipher

Rail Fence cipher (a.k.a ZigZag cipher)

Substitution cipher

Morse code
Caesar cipher
Vigenere cipher

Forensics

デジタルデータの解析。

  • ファイル中に埋め込まれている別のファイルを解析。
$ sudo apt install binwalk
$ binwalk <File>
  • 内部データ構造に基づいてファイルを復元する。
  • ディスクイメージファイルにも適用可能。
$ sudo apt install foremost
$ foremost <File>
  • 画像や動画などのメディアファイルからExif情報を抽出。
$ sudo apt install exiftool
$ exiftool <Media-File>
fls
  • ディスクイメージファイルを解析。
$ fls <Disk-image-File>
icat
  • ディスクイメージファイルを復元。
$ icat <Disk-image-File> <inode-Number> > <output-File>
mmls
  • ボリュームシステム(パーティションテーブル)のパーティションレイアウト情報を表示。
$ mmls <Disk-image-File>
  • pdf中のテキストデータを抽出。
$ sudo apt install poppler-utils
$ pdftotext <PDF-File>

Web

ミラーリング

  • ローカルにWebサイトを丸ごとミラーリング。
  • ホストを名前としたディレクトリが作成され、そこに出力される。
$ wget -m <URL>