
Imagoは、画像からデジタル証拠を抽出するpythonツールです。
Imago は、画像から再帰的にデジタル証拠を抽出する Python ツールです。 このツールは、デジタルフォレンジック調査の際に役立ちます。多くの画像からデジタル証拠を抽出する必要がある場合、このツールを使えば簡単に比較できます。Imago は、証拠を CSV ファイルまたは SQLite データベースに抽出できます。JPEG の Exif に GPS 座標が含まれている場合、Imago は経度と緯度を抽出し、度に変換して、市区町村、国、郵便番号などの関連情報を取得できます。 また、Imago はエラーレベル分析(ELA)の計算やヌード検出も可能ですが、これらの機能は BETA 版です。
$ pip install imago
$ imago
そして、imago のバナーが表示されるはずです。
python 2.7
exifread >= 2.1.2
python-magic >= 0.4.15
argparse >= 1.4.0
pillow >= 5.2.0
nudepy >= 0.4
imagehash >= 4.0
geopy >= 1.16.0
usage: imago.py [-h] -i INPUT [-x] [-g] [-e] [-n] [-d {md5,sha256,sha512,all}]
[-p {ahash,phash,dhash,whash,all}] [-o OUTPUT] [-s]
[-t {jpeg,tiff}]
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input directory path
-x, --exif Extract exif metadata
-g, --gps Extract, parse and convert to coordinates, GPS exif
metadata from images (if any)It works only with JPEG.
-e, --ela Extract, Error Level Analysis image,It works only with
JPEG. *BETA*
-n, --nude Detect Nudity, It works only with JPEG, *BETA*
-d {md5,sha256,sha512,all}, --digest {md5,sha256,sha512,all}
Calculate perceptual image hashing
-p {ahash,phash,dhash,whash,all}, --percentualhash {ahash,phash,dhash,whash,all}
Calculate hash digest
-o OUTPUT, --output OUTPUT
Output directory path
-s, --sqli Keep SQLite file after the computation
-t {jpeg,tiff}, --type {jpeg,tiff}
Select the image, this flag can be JPEG or TIFF, if
this argument it is not provided, imago will process
all the image types(i.e. JPEG, TIFF)
唯一必須の引数は -i で、imago が画像ファイルを検索する基準ディレクトリです。 また、少なくとも 1 つの抽出タイプ(例: exif、data、gps、digest)を指定する必要があります。
$ imago -i /home/solvent/cases/c23/DCIM/ -o /home/solvent/cases/c23/ -x -s -t jpeg -d all
ここで:
| タスク | ステータス |
|---|---|
| テストコード | ❌ |
| コメントや提案は歓迎します | 👍 |
コードの著作権は 2018 Redaelli に帰属します。 コードは MIT ライセンス の下で公開されています。
| 機能 | ステータス |
|---|
| 再帰的ディレクトリ探索 | ✔️ |
| ファイルの mtime (UTC) | ✔️ |
| ファイルの ctime (UTC) | ✔️ |
| ファイルの atime (UTC) | ✔️ |
| ファイルサイズ (バイト) | ✔️ |
| MIME タイプ | ✔️ |
| Exif 対応 | ✔️ |
| CSV エクスポート | ✔️ |
| Sqlite エクスポート | ✔️ |
| md5、sha256、sha512 | ✔️ |
| エラーレベル分析 | ✔️ BETA |
| 完全 GPS 対応 | ✔️ |
| ヌード検出 | ✔️ BETA |
| 知覚画像ハッシュ | ✔️ |
| aHash | ✔️ |
| pHash | ✔️ |
| dHash | ✔️ |
| wHash | ✔️ |