rar破解速度_手机端最好的解压软件推荐

rar破解速度_手机端最好的解压软件推荐,第1张

rar破解速度_手机端最好的解压软件推荐 小明某天上了某个带颜色的网站,又下载了一个压缩包,本以为没有密码,结果解压却要密码,这怎么办呢?难不倒聪明的小明同学,因为他收集了常用的密码,有一个丰富的密码词典。

于是通过python写脚本来破解密码。


前提条件:python3.7zipfile密码字典某大文件压缩包import zipfiledef setpass(zip,password): try: #extractall(self,path=None,members=None,pwd=None) 解压的方法 zip.extractall(pwd=password.encode("ascii")) return password except Exception as e: returndef main(): zf=zipfile.ZipFile(r"E:appmessagebomb2.zip") #写入压缩包路径 zpassword=open(r"E:apppassword.txt",encoding="utf-8") #写入字典路径 zpw=zpassword.readlines() for i in zpw: password=i.strip("/n") gess=setpass(zf,password) if gess: print("n"+"正确密码:"+password) exit(0)if __name__=="__main__": main()
运行效果:

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/648933.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-17
下一篇 2022-04-17

发表评论

登录后才能评论

评论列表(0条)

保存