MISC基础篇-盲水印

介绍

通常是两张看起来相同的图片,
目前我所知的对两张相同图片的处理方式只有两种:

  • 对像素值进行运算: 使用stegsolveimage combiner对两张图片像素值进行异或,加减等。
  • 盲水印: 使用bwmforpy3.py脚本进行操作。接下来会介绍这种方法。

项目脚本

https://github.com/chishaxie/BlindWaterMark
下载安装

1
git clone https://github.com/chishaxie/BlindWaterMark.git

先安装opencv

1
pip3 install opencv-python

升级pip3

1
pip3 install --upgrade pip setuptools wheel

安装matplotlib

1
pip3 install matplotlib

运行脚本

1
python3 bwmforpy3.py decode 1.png 2.png flag.png

求助:这里有个遗留问题,使用--oldseed来兼容python2脚本random算法时会抛出错误Random.shuffle() got an unexpected keyword argument 'random'。有大佬知道怎么回事可以告诉我。。

Python2版本

简要:
这里使用miniconda来配置python2.7环境

1
2
conda install opencv
conda install matplotlib

运行脚本

1
python2 bwm.py decode 00000000.png 00000232.png flag.png

工具介绍

有时候也可以用一款名为WaterMark的工具,包括文字水印和图片水印。
论坛链接盲水印工具WaterMark.exe - 吾爱破解 - 52pojie.cn


MISC基础篇-盲水印
http://ramoor.github.io/2025/04/05/MISC基础篇-盲水印/
作者
Ramoor
发布于
2025年4月5日
许可协议