payload

import zipfile
import sys
import tkinter as tk
import threading
import queueclass BRUTE_ZIP(object):def __init__(self):self.flag=False  #  用来判断是否在字典中找到密码,找到标记成Trueself.q=queue.Queue()self.thread_list=[]window = tk.Tk()window.title('暴力破解zip压缩文件小工具1.0')window.geometry('500x500')self.zip_file=tk.StringVar()self.dict_file=tk.StringVar()self.thread_num=tk.IntVar()self.thread_num.set(2)tk.Label(window,text='压缩文件').place(x=100,y=100)tk.Label(window, text='字典文件').place(x=100, y=150)tk.Label(window, text='线程数').place(x=100, y=200)tk.Entry(window,textvariable=self.zip_file).place(x=150,y=100)tk.Entry(window, textvariable=self.dict_file).place(x=150, y=150)tk.Entry(window, textvariable=self.thread_num).place(x=150, y=200)tk.Label(window, text='输出框').place(x=50, y=300)self.t=tk.Text(window,height=3,width=40)self.t.place(x=100,y=300)tk.Button(window,text='攻击',command=self.run).place(x=250,y=400)tk.Button(window,text='结束攻击',command=self.exit_exploit).place(x=300,y=400)window.mainloop()def brute(self):#print('线程')try:zip=zipfile.ZipFile(self.zip_file.get())while True:if self.q.empty() or self.flag:breakpassword=self.q.get()try:zip.extractall(pwd=password.encode('utf-8'))self.t.delete(0.0, 'end')self.t.insert('insert','zip密码:'+password)self.flag=Trueexcept Exception as e:#print(password)passexcept Exception as e:self.t.delete(0.0,'end')self.t.insert('insert','压缩文件不存在')def exit_exploit(self):sys.exit()def run(self):try:with open(self.dict_file.get(),'r') as fp:for password in fp.readlines():self.q.put(password.strip())except Exception as e:self.t.delete(0.0, 'end')self.t.insert('insert', '字典并不存在')for i in range(self.thread_num.get()):self.thread_list.append(threading.Thread(target=self.brute))for i in range(self.thread_num.get()):self.thread_list[i].start()if __name__ == '__main__':brute=BRUTE_ZIP()

ZIP暴力破解脚本[多线程]相关推荐

  1. Python编写zip密码破解脚本(超详细)

    Python编写zip暴破脚本 原理 python的zipfile库 暴破zip文件口令 利用线程提高性能 用户自定义参数 脚本完整代码 最近看到一篇关于zip密码破解脚本的文章,梳理了一番,向分享给 ...

  2. zip暴力破解工具Python实现

    原理: 1.指定密码包括的字符种类,如:数字,小写字母,大写字母,特殊字符 2.指定密码的长度 3.遍历所有可能的组合暴力破解 在密码比较简单的时候比较有用. 使用指导: optional argum ...

  3. 压缩包.zip暴力破解方法

    一: 前言 本方法基于虚拟机下的kali系统,软件为kali自带的fcrackzip,有兴趣的童鞋请自行研究下载. 二:方法说明 fcrackzip -help 常用参数中文说明: -b 暴力破解模式 ...

  4. 用python写的简单zip暴力破解器

    简单zip破解器 首先介绍一下optparse模块** optparse是一个功能强大的处理命令行函数. 简单流程** 首先导入模块,创建OpertionParser对象 import optpars ...

  5. python zip暴力破解

    首先我们要导入三个模块 zipfile zip模块 optparse 解析命令行选项模块 threading 线程模块 parser = optparse.OptionParser('xxxxx') ...

  6. 【shell】压缩包解压密码暴力破解脚本工具源码

    本来一开始是打算用python的,但一想python写保存路径,到最后还是放弃了,因为python的目录写法,终究逃不掉 Windows c:/xxx/.Mac  ~/xxxx/ ,这就造成了平台上的 ...

  7. 工具分享(1):FTP暴力破解工具 [Python多线程版]

    工具分享(1):FTP暴力破解工具 [Python多线程版] 参考:https://www.waitalone.cn/python-ftp-mult.html 在他的基础上加了这么一个代码:如果用户输 ...

  8. 攻防世界illusion暴力破解

    攻防世界illusion暴力破解 看算法是不可能看算法的,这辈子都不可能看算法的,汇编又不会,出题人又苟得一匹,加密算法就算每一行都看懂了也不知道整体函数是干嘛的,只有暴力破解这种东西才能维持生活. ...

  9. hydra暴力破解工具

    目录 Hydra安装 Ubuntu安装 centos系统安装 windows安装 Hydra参数说明 Hydra使用实例 破解ssh 破解ftp/telnet 破解MySQL数据库 批量破解多个主机: ...

最新文章

  1. 用Python实现OpenCV特征提取与图像检索 | Demo
  2. ahjesus 获取当前方法被调用执行的具体位置,包括命名空间和方法
  3. 利用ComponentWillReceiveProps解决异步问题
  4. POJ 3264 Balanced Lineup 【线段树】
  5. 我一个弱女子在欧洲大街上拉屎了,因为便秘惹的祸
  6. no identity found Command /usr/bin/codesign failed with exit code 1 报错解决方法
  7. Python MySQLdb 学习总结
  8. leetcode刷题笔记(3)(python)
  9. Flask常见问题记录
  10. Ubuntu报错:E: The repository http://ppa.launchpad.net/fcitx-team does not have a Release file.
  11. 相对定向绝对定向 MFC 实现 CSU摄影测量学
  12. Win7性能优化:解决多核处理器兼容问题
  13. 100天,Python从入门到精通!
  14. 计算机基础知识面试题集
  15. Silverlight中如何获取当前xap文件的地址以及部署了当前xap的页面地址
  16. 如何卸载PLC200软件---SETP7
  17. [Linux 基础] -- Linux input 子系统要点总结
  18. 十二、中间系统到中间系统IS-IS(Intermediate System-to-Intermediate System)
  19. html上传后门,网站查后门软件 WebShellKiller
  20. C#.NET程序设计教程实验指导(清华大学 江红,余青松)实验源码

热门文章

  1. 免杀入门---shellcode免杀
  2. 常见的5大失眠体质,你是其中之一吗
  3. mysql smallint int_mysql中tinyint、smallint、int、bigint的区别
  4. 不会俄语可以去俄罗斯吗
  5. 精尽Spring面试题
  6. 跑步软件大全,跑步软件哪个好?
  7. 华为核心交换机配置子网互联地址
  8. JestClient
  9. Python 求阶乘
  10. 双十二年终盛典,快带MathType回家