rw / plainsight

Plainsight: a textual steganography tool to defeat censorship.
http://github.com/rw/plainsight
116 stars 10 forks source link

KeyError: 'smooth' #1

Open SpiritQuaddicted opened 13 years ago

SpiritQuaddicted commented 13 years ago

Using Archlinux. Installed python2-bitstring and python2-progressbar from AUR. Cloned git.

$ wget -nv http://www.textfiles.com/sex/kamasut.txt 2011-08-13 11:20:19 URL:http://www.textfiles.com/sex/kamasut.txt [24183/24183] -> "kamasut.txt" [1] $ ls ciphertext data.py init.py model.py plainsight.py probability.py pycache/ cleartext data.pyc kamasut.txt model.pyc plainsight.pyc probability.pyc me@pc:~/ramdisk/plainsight/plainsight$ cat cleartext That was a great presentation, nice work! You wave your hands well, every speaker should use their hands like that. This is not a masturbation joke.me@pc:~/ramdisk/plainsight/plainsight$ me@pc:~/ramdisk/plainsight/plainsight$ cat cleartext | python2 plainsight.py $@ -m encipher -f kamasut.txt Adding models: Model: kamasut.txt added in 0.02s (context == 3) input is "", output is ""

Traceback (most recent call last):######################################### | 26.61 K/s | ETA: 00:00:00 File "plainsight.py", line 72, in ciphertext = cipher(model, CONTEXT, cleartext, 'encipher') File "/home/me/ramdisk/plainsight/plainsight/model.py", line 256, in cipher model.abs_move_to_child(context) # reset context File "/home/me/ramdisk/plainsight/plainsight/model.py", line 56, in abs_move_to_child self.move_to_child(token) File "/home/me/ramdisk/plainsight/plainsight/model.py", line 49, in move_to_child self.pointer = self.pointer[1][token] KeyError: 'smooth'


If I remove some words from the back it does work. "That was a great presentation, nice work! You wave your hands well, every speaker should use " works for me.

rw commented 13 years ago

Thanks!

I can't reproduce this. What are the versions of your python and eggs (pip freeze)?