使用Stegano模块解码图像

时间:2017-05-15 13:35:23

标签: python image module decode steganography

我有一个图像文件,我必须用Stegano模块解码。我尝试了一切,但总是遇到语法错误。

错误:

root@kali:~/Downloads/Stegano-master# stegano-lsb reveal -i predat0r.png
Install Stegano: sudo pip install Stegano
Traceback (most recent call last):
  File "/usr/local/bin/stegano-lsb", line 32, in <module>
     from stegano import tools
  File "/usr/local/lib/python2.7/dist-packages/stegano/__init__.py", line 4, in <module>
     from . import red
  File "/usr/local/lib/python2.7/dist-packages/stegano/red/__init__.py", line 4, in <module>
     from .red import*
  File "/usr/local/lib/python2.7/dist-packages/stegano/red/red.py", line 33
     def hide(input_image: Union[str, I0[bytes]], message: str):

SyntaxError: invalid syntax

http://imgur.com/a/4Rr1i这是我必须解码的图像。

我现在该怎么办?有人可以帮我解码这个。

1 个答案:

答案 0 :(得分:0)

请使用Python 3:

sudo apt-get install python3-pip

sudo pip3 install stegano

然后在python3下运行它。