首页
/
每日頭條
/
圖文
/
python壓縮包解密代碼
python壓縮包解密代碼
更新时间:2026-01-15 15:13:24


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
推荐阅读
關于利潤表的最全解析
關于利潤表的最全解析
關于利潤表的最全解析?利潤表是反映企業一定會計期間(如月度、季度、半年度或年度)生産經營成果的會計報表,一個清晰的利潤表可以直接要公司領導直觀明了的看清楚公司的運營情況,我來為大家科普一下關于關于利潤表的最全解析?下面希望有你要的答案,我們...
2026-01-15
小米電子溫度計使用說明書
小米電子溫度計使用說明書
前言生活中,我們常常用身體感知周圍溫度濕度的變化,稍不留意就會因為它們的變化引起身體不舒服等等不好的情況。那麼如果擁有一濕溫度計,我們就可以直觀地看到溫度,就可以預防疾病的發生,少了很多麻煩事兒。今天,蝦米與大家一起體驗新一代的小米電子濕溫...
2026-01-15
研究量子的龍頭企業
研究量子的龍頭企業
每經記者:彭斐每經編輯:張海妮圖片來源:攝圖網作為量子通訊龍頭,科大國盾量子技術股份有限公司(以下簡稱科大國盾)早在2017年就接受了IPO輔導。如今,頭頂“黑科技”光環的這家企業,要加速沖刺科創闆。《每日經濟新聞》記者注意到,3月27日,...
2026-01-15
自制豆腐腦怎麼做才會不柴
自制豆腐腦怎麼做才會不柴
豆腐腦不用買,在家做零失敗,牢記4步2要點,一次成功,細膩嫩滑大家好,感謝閱讀我分享的文章,今天我要和大家說的是:『豆腐腦不用買,在家做零失敗,牢記4步2要點,一次成功,細膩嫩滑!』在早餐界,要問有哪些食物是“南北通吃”的?就不得不提“油條...
2026-01-15
印花稅2022年新規定稅率
印花稅2022年新規定稅率
中華人民共和國印花稅法(2021年6月10日第十三屆全國人民代表大會常務委員會第二十九次會議通過)第一條在中華人民共和國境内書立應稅憑證、進行證券交易的單位和個人,為印花稅的納稅人,應當依照本法規定繳納印花稅。在中華人民共和國境外書立在境内...
2026-01-15
Copyright 2023-2026 - www.tftnews.com All Rights Reserved