【HR】????python爆力破j压缩包密码????

[复制链接]
查看386 | 回复0 | 2022-11-14 08:23:47 | 显示全部楼层 |阅读模式
外面看不到,进来坐吧[茶杯][茶杯][茶杯][茶杯]
---------------------------------------------
话不多说,直接发代码

效果如下[玫瑰][玫瑰][玫瑰]

import rarfile
import zipfile
import py7zr
c = 0
a = 0
print("本软件只支持 7z , zip , rar格式的压缩包")
zd = input("请输入字典位置:")
try:
    ozd = open(zd,"r",encoding="utf8").read().split("\n")
except:
    print("字典读取失败")
print(f"检测到字典里有{len(ozd)}个密码")
file = input("请输入要破j的压缩包位置:")
if file.endswith(".zip"):
    print("检测到是zip压缩包")
    print("正在破j.....")
    zip = zipfile.ZipFile(file)
    for pas in ozd:
        c = c + 1
        pasw = bytes(pas.encode("utf8"))
        try:
            zip.extractall(pwd=pasw)
            print("破j成功,密码是:" + pas)
            a = a + 1
            break
        except:
            pass
    if a == 0:
            print("破j失败")
elif file.endswith(".rar"):
    print("检测到是rar压缩包")
    print("正在破j.....")
    rar = rarfile.RarFile(file)
    for pas in ozd:
        c = c + 1
        pasw = bytes(pas.encode("utf8"))
        try:
            rar.extractall(pwd=pasw)
            print("破j成功,密码是:" + pas)
            a = a + 1
            break
        except:
            pass
    if a == 0:
        print("破j失败")
elif file.endswith(".7z"):
    print("检测到是7z压缩包")
    print("正在破j.....")
    for pas in ozd:
        c = c + 1
        pasw = bytes(pas.encode("utf8"))
        try:
            qz = py7zr.SevenZipFile(file,password=pasw)
            qz.extractall()
            print("破j成功,密码是" + pas)
            a = a + 1
            break
        except:
                pass
    if a == 0:
        print("破j失败")
else:
    print("此文件不是压缩包文件")
print(f"已经尝试了{c}个密码")
input("破j完成,请按任意键继续.....")

点个关注呗
aaaa
村长黑科技是专业提供项目资源的服务的村长黑科技平台,如合购网赚项目、引流推广软件、软件程序开发等项目就选村长黑科技平台,参与或发布项目定制各种软件就来村长黑科技平台
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则