用python编写Zip文件口令破解程序
2018-07-26 14:10
477 查看
版权声明: https://blog.csdn.net/qq_39219385/article/details/80905572
[code]import zipfile import optparse from threading import Thread def extractFile(zFIle,password): try: zFIle.extractall(pwd=password) print '[+] Found password ' + password + '\n' except: pass def main(): parser=optparse.OptionParser('usage%prog '+'-f <zipfile> -d <dictionary>') parser.add_option('-f',dest='zname',type='string',help='specify zip file') parser.add_option('-d',dest='dname',type='string',help='specify dictionary file') (options,args)=parser.parse_args() if (options.zname==None) | (options.dname==None): print parser.usage exit(0) else: zname=options.zname dname=options.dname zFile=zipfile.ZipFile(zname) passFile=open(dname) for line in passFile.readline(): password=line.strip('\n') t=Thread(target=extractFile,args=(zFile,password)) t.start() if __name__=='__main__': main()
阅读更多
相关文章推荐
- python编写暴力破解zip文档程序
- python编写暴力破解zip文档程序的实例讲解
- Python与Hack之Zip文件口令破解
- python破解zip加密文件的方法
- Zip加密文件字典破解Python实现
- Python 黑客 --- 002 入门级 ZIP压缩文件口令暴力破解机
- 002_010 Python 处理字符串中的Zip文件 你的程序收到了一个字符串,内容是一个ZIP文件,需要读取zip文件的信息
- Python压缩解压缩zip文件及破解zip文件密码的方法
- python---项目4-Zip文件口令破解脚本,zipfile,optparse,thread
- Python 黑客 --- 002 入门级 ZIP压缩文件口令暴力破解机
- python脚本暴力破解 加密的zip压缩文件
- 【Python】zip文件密码破解
- 使用Python编写的文件备份程序
- Python 破解zip压缩文件(来自Python绝技)
- Python破解ZIP或RAR文件密码
- Python压缩解压缩zip文件及破解zip文件密码的方法
- 在windows环境下用python编写备份文件小程序
- 编写一个Python程序,能在当前目录以及当前目录的所有子目录下查找文件名包含指定字符串的文件,并打印出相对路径
- [Python]用Python编写程序修复"恶邮差"变种U病毒感染文件。
- 利用Python编写一个程序 统计当前目录下的每个文件类型的文件数目