You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a ssn.txt file with social security numbers of customers
create a zip file with a password: zip -P secret ssn ssn.txt
create a python script to extract the zipfile by:
import=zipfile
zFile=zipfile.ZipFile("ssn.zip")
try:
zFile.extractall(pwd="secret")
except Exception, e:
print e
This will extract the ssn.txt into the directory by using the right password "secret"different
4) However, by using a wrong password "proa" this does not get the exception. Instead create a ssn.txt file which is corrupted.
5) Other wrong password will get the exception but not the one descripted in step 4.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: