imago是一个从图像中提取数字证据的python工具。
imago的Python项目详细描述
IMAGO法医学
imago是一个python工具,它递归地从图像中提取数字证据。 这个工具在整个数字法医调查中都很有用。如果你需要提取数字证据,并且你有很多图像,通过这个工具你可以很容易地比较它们。imago允许将证据提取到csv文件或sqlite数据库中。如果在JPEG EXIF中存在GPS坐标,IMAGO可以提取经度和纬度,并且可以将它们转换成度,并检索相关信息,如城市、国家、邮政编码…… imago还提供了计算错误级别分析和检测裸体的可能性,这些功能都是beta版的。
设置
通过PIP设置
- 安装imago:
$ 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开始搜索图像文件的基本目录。 您还应该提供至少一种类型的提取(即EXIF、数据、GPS、摘要)。
示例:
$ imago -i /home/solvent/cases/c23/DCIM/ -o /home/solvent/cases/c23/ -x -s -t jpeg -d all
其中:
- -i path:是基本目录,imago将在其中搜索文件
- -o path:imago将保存csv文件的输出目录,其中包含提取的元数据
- -x:imago将提取exif元数据。
- -s:处理后不会删除临时sqlite数据库。
- -t jpeg:imago将只搜索jpeg图像。
- -全部:imago将为jpeg图像计算md5、sha256、sha512。
功能:
Task | Status |
---|---|
Recursive directory navigation | ✔️ |
file mtime (UTC) | ✔️ |
file ctime (UTC) | ✔️ |
file atime (UTC) | ✔️ |
file size (bytes) | ✔️ |
MIME type | ✔️ |
Exif support | ✔️ |
CSV export | ✔️ |
Sqlite export | ✔️ |
md5, sha256, sha512 | ✔️ |
Error Level Analysis | ✔️ BETA |
Full GPS support | ✔️ |
Nudity detection | ✔️ BETA |
Perceptual Image Hashing | ✔️ |
aHash | ✔️ |
pHash | ✔️ |
dHash | ✔️ |
wHash | ✔️ |
待办事项:
Task | Status |
---|---|
Test code | ❌ |
Comments and Suggestions are welcome | ? |
版权和许可
代码版权所有2018 Redaelli。 在MIT license下发布的代码。