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


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-13
龍族5悼亡者的歸來什麼時候出
龍族5悼亡者的歸來什麼時候出
《龍族5悼亡者歸來》悼亡者已經确定是誰,之前作者已經明示,就是楚子航,我們都知道龍族2是悼亡者之瞳,根據江南一貫的不填坑态度,龍族5把楚子航寫成悼亡者再合适不過了。​​​最近發現,很多人不喜歡現在的龍族,覺得沒以前寫得好。可能也是因為,當年...
2025-12-13
十三億多人口的印度為什麼隻有一個人參加北京冬奧會
十三億多人口的印度為什麼隻有一個人參加北京冬奧會
參加北京冬奧會的各國代表團中竟有19個國家隻派出一人單刀赴會。有着13億多人口的印度就隻來了一個人。其實一個國家的體育競技水平是與其綜合國力密不可分的。從事高水平的競技體育運動其實是一件十分“燒錢”的事情。因此一個國家的體育活力和它的經濟活...
2025-12-13
cad裡怎麼用tr修剪
cad裡怎麼用tr修剪
cad裡怎麼用tr修剪?在CAD中怎麼修剪對象TR命令怎麼用好比如這個圖形怎麼修剪呢,接下來我們就來聊聊關于cad裡怎麼用tr修剪?以下内容大家不妨參考一二希望能幫到您!cad裡怎麼用tr修剪在CAD中怎麼修剪對象。TR命令怎麼用好!比如這...
2025-12-13
百諾肯淨水器使用方法
百諾肯淨水器使用方法
百諾肯淨水器使用方法?從飲水開始關注健康對一個家庭而言,家人的健康極其重要的是水的安全保障,選擇安裝一台家用淨水器來保障飲用水安全,已刻不容緩那消費者該如何購買淨水器呢?,下面我們就來聊聊關于百諾肯淨水器使用方法?接下來我們就一起去了解一下...
2025-12-13
Copyright 2023-2025 - www.tftnews.com All Rights Reserved