《violent python》 中的密码破解

编程入门 行业动态 更新时间:2024-10-06 18:22:44

《violent python》 中的<a href=https://www.elefans.com/category/jswz/34/1715925.html style=密码破解"/>

《violent python》 中的密码破解

上代码:
import zipfile
import threading
def extracfile(zfile,password):
try:
zfile.extractall(pwd=password)
print(“found password:”,password)
return password
except:
pass
def main():
zfile=zipfile.ZipFile(“2345.zip”)
passfile=open(“dictionary.txt”)
for line in passfile.readlines():
password=line.strip(’\n’)
t=threading.Thread(target=extracfile,args=(zfile,password))
t.start()
if name==‘main’:
main()
dictionary 文件生成,只有四位数字哦。
代码:
f1 = open(‘dictionary.txt’,‘w’)
for i in range(10):
for k in range(10):
for o in range(10):
for p in range(10):
l=str(i)+str(k)+str(o)+str§+"\n"
f1.write(l)

更多推荐

《violent python》 中的密码破解

本文发布于:2024-02-14 12:54:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1763508.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码破解   violent   python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!