import zipfile
import string
import itertools
myzipfile = 'zipsecretfile.zip'
def uncompress(zipfilename,pass):
try:
zfile = zipfile.ZipFile(zipfilename)
zfile.extractall('./',pwd=password.encode('utf-8'))
return True
except:
return False
chars = string.ascii_lowercase+string.digits
print('正在解压......')
for c in itertools.permutations(chars,4):
password = ''.join(c)
res = uncompress(myzipfile,password)
if res:
print('解压成功',password)
break胜象大百科 - 上一篇: 常见电脑故障的解决办法,在家就能自己修复
- 下一篇: 使用 HTTPS 的网站也能被黑客监听到数据吗?








