imago是一个从图像中提取数字证据的python工具。

imago的Python项目详细描述


forthebadgeforthebadge

Build StatusRequirements StatusGitHub license

IMAGO法医学

imago是一个python工具,它递归地从图像中提取数字证据。 这个工具在整个数字法医调查中都很有用。如果你需要提取数字证据,并且你有很多图像,通过这个工具你可以很容易地比较它们。imago允许将证据提取到csv文件或sqlite数据库中。如果在JPEG EXIF中存在GPS坐标,IMAGO可以提取经度和纬度,并且可以将它们转换成度,并检索相关信息,如城市、国家、邮政编码…… imago还提供了计算错误级别分析和检测裸体的可能性,这些功能都是beta版的。

设置

通过PIP设置

  1. 安装imago:
$ pip install imago
  1. 安装后,应提供一个新的二进制文件:
$ 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。

功能:

TaskStatus
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✔️

待办事项:

TaskStatus
Test code
Comments and Suggestions are welcome?

版权和许可

代码版权所有2018 Redaelli。 在MIT license下发布的代码。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
使用多个参数的枚举   从Oracle到Redis的java复制表   java如何保护tomcat服务器中的db用户名和密码。xml   java如何使用注册密钥保护移动应用程序?   java在什么情况下超类不应该是抽象的?   java Backspace键在macOS上的Scala REPL中不起作用   arduino Java+Uno+RFID:调用方法读取Java中的RFID   带有where语句中集合的java JPA查询   java如何向基于Tyrus注释的客户端添加请求头   java对我的二进制搜索算法的反馈   java重新访问数据库时文件的内容不正确   用户在字符串中输入值后退出While循环(Java)   java如何在Maven中的多个项目之间共享项目依赖关系?   java Close从未在数据库上被明确调用   在java中从文件读入布尔矩阵   Java:如何使用父节点将XML流拆分为小型XML文档。VTDXML