首页
/
每日頭條
/
圖文
/
python壓縮包解密代碼
python壓縮包解密代碼
更新时间:2025-12-24 05:40:29


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-24
如何用ps更改證件照的背景顔色
如何用ps更改證件照的背景顔色
,
2025-12-24
世界的七大機場
世界的七大機場
空中交通無疑是最快速的交通方式。它也是一種最舒适的交通方式,每個人都渴望在一生中享受一次。最初,它不像現在這樣受歡迎。也許,如果你沒有在你的一生中使用過,那麼你必須在航道規劃你的飛行。世界上有各種各樣的機場,你不能錯過降落。這些機場通常提供...
2025-12-24
服裝廠的點位是什麼
服裝廠的點位是什麼
服裝廠的點位是什麼?在“大數據”成為主流的背景下,IE人員的數據挖掘工作越來越重要通過IE部,中等規模的廠(500人)一年的創造的效益至少都是在百萬以上,今天小編就來說說關于服裝廠的點位是什麼?下面更多詳細答案一起來看看吧!服裝廠的點位是什...
2025-12-24
盛一倫影視劇盤點
盛一倫影視劇盤點
近期播出的一部小說改編奇幻古裝武俠劇,稱得上是“悲催”的電視劇之一。從拍完到播出愣是花了三年的時間,它的經曆可以說是一波三折。第一波趕上2017年古裝劇紮堆出現,“限古令”來的猝不及防,該劇播出遙遙無期;第二波該劇沒有在男女主風頭正盛時播出...
2025-12-24
Copyright 2023-2025 - www.tftnews.com All Rights Reserved