首页
/
每日頭條
/
圖文
/
python壓縮包解密代碼
python壓縮包解密代碼
更新时间:2025-12-12 07:37:42


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
推荐阅读
天冷了開煲吃什麼菜好
天冷了開煲吃什麼菜好
天冷了開煲吃什麼菜好?深秋的北方,整個窗外一片金黃,馬路邊的銀杏葉子黃了,遠遠望去就像一幅絕美的風景畫北方的深秋,除了金黃的落葉,還有呼呼的北風,空氣幹燥極了進入秋天以後,我家的一日三餐,每次都會有一個湯菜上桌,一周七天不重樣,食材根據時令...
2025-12-12
大衆用的愛信6at表現怎麼樣
大衆用的愛信6at表現怎麼樣
今天隻要是大衆自然吸氣發動機車型,必然組合搭配來自于愛信6AT自動變速箱,難道大衆不怕一台車最複雜的零部件受制于人?曾經傳聞:2016年,傳祺GS8延遲交付上市就是因為搭載的愛信6AT變速箱莫名斷供,大衆難道不怕?大衆不怕,其實就算是愛信6...
2025-12-12
屏幕2k和4k有什麼區别
屏幕2k和4k有什麼區别
最近幾年智能手機行業繁榮異常,幾乎每周都有至少一款新機正式發布,在每一場新機發布會的PPT上,有一項參數都是絕對少不了的,這就是屏幕分辨率。經過廠商的大肆宣傳,這一項參數也成為了普通消費者選購手機之時的一個重要參考項。廠商是瘋狂的,媒體是跟...
2025-12-12
主動進取時刻做好萬全準備
主動進取時刻做好萬全準備
氣定神閑迎高考卓文繪●距離2021年高考還有兩周多的時間,很多學生容易産生“大局已定,提升空間不大”的想法,從而在備考過程中變得随意和松懈。實際上,考前最後兩周仍然是考生實現自我提升的一個關鍵時機。考前應張弛有度勞逸結合随着考試日子的臨近,...
2025-12-12
駕照換證最全攻略
駕照換證最全攻略
駕照換證最全攻略?❌不需要預約醫院人工體檢❌不需要攜帶駕駛證原件正副本,我來為大家科普一下關于駕照換證最全攻略?下面希望有你要的答案,我們一起來看看吧!駕照換證最全攻略❌不需要預約醫院人工體檢!❌不需要攜帶駕駛證原件正副本!❌不需要到照相館...
2025-12-12
Copyright 2023-2025 - www.tftnews.com All Rights Reserved