首页
/
每日頭條
/
圖文
/
python壓縮包解密代碼
python壓縮包解密代碼
更新时间:2025-12-01 13:58:19


python壓縮包解密代碼(python破解zip密碼)1


今天寫了個小腳本,用于暴力破解zip密碼

import zipfile from threading import Thread import optparse def testZipPasswd(zfile,passWord): try: zfile.extractall(pwd=passWord) print("[ ] Found Password: " str(passWord,encoding="utf-8")) except Exception as e: #print(e) pass def decodeZipPasswd(zfile,passfile): with open(passfile) as f: zfile = zipfile.ZipFile(zfile) for i in f.readlines(): i = i.replace("\n","") t = Thread(target=testZipPasswd,args=(zfile, i.encode(encoding="utf-8"))) t.start() if __name__ == "__main__": parser = optparse.OptionParser("python zip.py -f <zipfile> -p <passfile>") parser.add_option("-f",dest='zname',type='string',help='specify zip file') parser.add_option("-p",dest='passwd',type='string',help='specify password file') (options,args) = parser.parse_args() if options.zname ==None or options.passwd==None: print(parser.usage) exit(0) else: decodeZipPasswd(options.zname,options.passwd)

,
Comments
Welcome to tft每日頭條 comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
推荐阅读
蛋頭哥翻唱一剪梅
蛋頭哥翻唱一剪梅
封面新聞記者吳冰清雪地裡,片片雪花飄下,一個穿着黃色棉襖的光頭男子,一邊唱着“雪花飄飄,北風蕭蕭”,一邊轉圈自拍……男子的頭有點特别,頭頂有些尖,被網友打趣,“像是瘦臉特效開反了”。“蛋哥”張愛欽的這段視頻已火到國外然而,就是這樣一段僅僅1...
2025-12-01
最大的天珠是什麼樣的
最大的天珠是什麼樣的
-感謝關注左岩珠寶課-對于天珠上面,那些類似于眼睛的、大小不一的神秘圖騰,我們似乎一直都存在着一些抽象又模糊、浪漫又神秘的猜想。那麼今天,讓我們再來一起來走進“天珠眼睛”的信仰世界吧~意為“泉眼”一說fountainofwater南喀諾布教...
2025-12-01
6款不輸大牌的護膚品
6款不輸大牌的護膚品
6款不輸大牌的護膚品?很多女生在入手第一款護膚品時,會優先考慮大牌産品雖然它們的價格較高,但是在護膚效果上更不容易出錯,我來為大家講解一下關于6款不輸大牌的護膚品?跟着小編一起來看一看吧!6款不輸大牌的護膚品很多女生在入手第一款護膚品時,會...
2025-12-01
讓孩子讀懂孟子的成語
讓孩子讀懂孟子的成語
讓孩子讀懂孟子的成語?1、杯水車薪【解釋】:用一杯水去救一車着了火的柴草比喻力量太小,解決不了問題,下面我們就來聊聊關于讓孩子讀懂孟子的成語?接下來我們就一起去了解一下吧!讓孩子讀懂孟子的成語1、杯水車薪【解釋】:用一杯水去救一車着了火的柴...
2025-12-01
十字繡好看又好繡的圖案
十字繡好看又好繡的圖案
40款非常有吸引力的新款十字繡圖案:,
2025-12-01
Copyright 2023-2025 - www.tftnews.com All Rights Reserved