executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
re-stego隐写术检测与提取:文件尾附加、图片 LSB、音频与其他载体、提取验证。 触发词:隐写、stego、LSB、文件尾附加、隐写提取、图片隐写。
Independent GitHub snapshot · Automated classification · Original documentation governs
gem install zsteg 或源码(GitHub)zsteg -h 或 gem list zstegapt install steghide / dnf install steghide;macOS: brew install steghidesteghide --version;steghide info file.jpg(查看是否嵌入数据,无需密码)apt install libimage-exiftool-perl / dnf install perl-Image-ExifTool;macOS brew install exiftool;验证 exiftool -verapt install pngcheck;macOS brew install pngcheck;验证 pngcheck -vapt install sox;macOS brew install sox;验证 sox --versionapt install foremost / brew install foremostjava -jar stegsolve.jar)apt install outguessapt install ffmpeg / brew install ffmpegpip install pillow;验证 python3 -c "from PIL import Image"按顺序执行,每步产物存档(路径 + sha256,见 [[re-triage]])。
文件尾附加检测:
binwalk sample.png | tail -20 # 附加数据扫描
hexdump -C sample.png | tail -10 # 尾部目检
pngcheck -v sample.png 看 IEND 位置与文件尾差距(差值 ≈ 附加数据量)strings -a sample.png | grep -iE 'flag|ctf|http'dd if=sample.png of=tail.bin bs=1 skip=<偏移>)→ magic 检查([[re-triage]])exiftool -a sample.jpg(全段列出,异常字段/大块注释可疑)图片 LSB:
zsteg sample.png # 全通道 LSB 扫描
zsteg -E 'b1,rgb,lsb,xy' sample.png # 指定通道/位平面提取
-a 全通道扫描、-v 详细输出、-E 指定提取;输出解读:b1,rgb,lsb,xy 行 = 该平面提取结果,全 failed ≈ 无该平面隐写getpixel 取通道低 bit → 拼位序列 → 转字节;参考 [[gotchas]] 顺序坑)file 检查其他载体:
sox in.wav -n spectrogram -o out.png 后目检频域图案)、steghide 提取(steghide extract -sf file.wav)、相位/回声隐写提取验证:
file 类型与预期一致才定「确认嵌入」(分级表见 [[decision-tree]])78 9C / gzip 1F 8B / bzip2 42 5A 68,见坑 3)