用于从图像中提取隐藏文件和字符串的 Bash 脚本。
Stegextract 会提取图像结束字节之后的任何尾部数据,以及嵌入在图像中的任何隐藏文件(或其他图像)。
诸如 JPEG 的 FFD8 FFE0 之类的短字节组合有时可能会产生误报。
在遇到高度复杂的嵌入文件时,手动检查十六进制转储有时是不可避免的。
Stegextract 并不是针对任何与颜色/像素/滤镜/LSB 相关的隐写术的解决方案,也无意成为此类方案。它
仅依赖魔数、十六进制转储和二进制数据。
目前支持 PNG、JPG 和 GIF。
更新:--analyze 标志已被弃用,现在每次扫描都会自动执行该操作。
sudo sh -c 'curl https://raw.githubusercontent.com/evyatarmeged/stegextract/master/stegextract > /usr/local/bin/stegextract'
sudo chmod +x /usr/local/bin/stegextract
Usage: stegextract <file> [options]
-h, --help Print this and exit
-o, --outfile Specify an outfile
-s, --strings Extract strings from file
-q, --quiet Do not output to stdout
--force-format Force this image format instead of detecting

上述 GIF 中的图像示例可在 examples 文件夹中找到。