Antoine Pitrou pit...@free.fr added the comment:
Well, the password-checking scheme uses a one-byte check against the zip header
for consistency.
So there is a (near) 1/256 chance of false positives, that is of bad passwords
mistakenly detected as good; then the ZipFile class proceeds with
Changes by Kira Erethon shinjieret...@gmail.com:
--
title: Zipfile crashes when zip password is 610 - Zipfile crashes when zip
password is set to 610
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10876
Eric Smith e...@trueblade.com added the comment:
What do you mean by is set to 610? Can you show us the code that caused this
error?
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10876
Kira Erethon shinjieret...@gmail.com added the comment:
Ok, I tried recreating the bug and found out that I couldn't. Originally this
happened when I tried to find the password of a zip file through a dictionary
attack. The code I used is this:
import zipfile
zfile=raw_input(Please input
Changes by Kira Erethon shinjieret...@gmail.com:
--
title: Zipfile crashes when zip password is set to 610 - Zipfile crashes when
zip password is set to 610/844
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10876
Kira Erethon shinjieret...@gmail.com added the comment:
Update, tried this in another machine of mine, same exact code and this time it
crashes at 68
--
title: Zipfile crashes when zip password is set to 610/844 - Zipfile crashes
when zip password is set to 610/844/numerous other