本文共 706 字,大约阅读时间需要 2 分钟。
根据小姐姐的需求,密码是6位纯数字,那就帮我节省了好大一段时间
只对6位纯数字进行尝试就可以了。
三分钟就把脚本搞出来了
import os
import subprocess import zipfile def brutecrack(): for a in range(1,10): for b in range(1,10): for c in range(1,10): for d in range(1,10): for e in range(1,10): for f in range(1,10): passwd=str(a)+str(b)+str©+str(d)+str(e)+str(f) command=‘7z -p’+passwd+’ t F:/三亚相册.zip’ #t 表示test,不进行实际解压,只测试密码 print(passwd) child=subprocess.call(command) #os.popen(command)#这个也可以用,但是不好监控解压状态 print(child) if child==0: print(“相册密码为:”+passwd) return if name == ‘main’: brutecrack() ———————————————— 版权声明:本文为CSDN博主「lexsaints」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_42350212/article/details/115580004