-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不支持Python3 #10
Comments
一样 |
自己加返D()係print後面啦 |
there is a commit/pr with the solution here |
Fixed for Python 3: https://github.com/NatteeSetobol/cloacked-pixel . I tried fix it using chat-gpt but it didn't work as well so I so I learned how it works and now it runs on python3. |
Very impressive, thank you, big shot |
I also encountered the same issue, so I recently fixed it. It now perfectly supports Python 3. Meanwhile, I have added a Chinese translation to the README. aristorechina/cloacked-pixel: LSB steganography and detection |
python3 /Users/seoul1k/Downloads/cloacked-pixel-master/lsb.py '/Users/seoul1k/Desktop/截屏2022-05-08 12.26.41.png' index.txt 123
File "/Users/seoul1k/Downloads/cloacked-pixel-master/lsb.py", line 56
print "[] Input image size: %dx%d pixels." % (width, height)
^
SyntaxError: invalid syntax
改成python3版本后,又报:
python3 /Users/seoul1k/Downloads/cloacked-pixel-master/lsb.py hide '/Users/seoul1k/Desktop/截屏2022-05-08 12.26.41.png' ./Desktop/index.txt 123
[] Input image size: 116x48 pixels.
[*] Usable payload size: 2.04 KB.
[+] Payload size: 0.006 KB
Traceback (most recent call last):
File "/Users/seoul1k/Downloads/cloacked-pixel-master/lsb.py", line 192, in
embed(sys.argv[2], sys.argv[3], sys.argv[4])
File "/Users/seoul1k/Downloads/cloacked-pixel-master/lsb.py", line 67, in embed
data_enc = cipher.encrypt(data)
File "/Users/seoul1k/Downloads/cloacked-pixel-master/crypt.py", line 16, in encrypt
raw = self._pad(raw)
File "/Users/seoul1k/Downloads/cloacked-pixel-master/crypt.py", line 27, in _pad
return s + (self.bs - len(s) % self.bs) * chr(self.bs - len(s) % self.bs)
TypeError: can't concat str to bytes
The text was updated successfully, but these errors were encountered: