ZIP暴力破解脚本[多线程]
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暴力破解脚本[多线程]相关推荐
- Python编写zip密码破解脚本(超详细)
Python编写zip暴破脚本 原理 python的zipfile库 暴破zip文件口令 利用线程提高性能 用户自定义参数 脚本完整代码 最近看到一篇关于zip密码破解脚本的文章,梳理了一番,向分享给 ...
- zip暴力破解工具Python实现
原理: 1.指定密码包括的字符种类,如:数字,小写字母,大写字母,特殊字符 2.指定密码的长度 3.遍历所有可能的组合暴力破解 在密码比较简单的时候比较有用. 使用指导: optional argum ...
- 压缩包.zip暴力破解方法
一: 前言 本方法基于虚拟机下的kali系统,软件为kali自带的fcrackzip,有兴趣的童鞋请自行研究下载. 二:方法说明 fcrackzip -help 常用参数中文说明: -b 暴力破解模式 ...
- 用python写的简单zip暴力破解器
简单zip破解器 首先介绍一下optparse模块** optparse是一个功能强大的处理命令行函数. 简单流程** 首先导入模块,创建OpertionParser对象 import optpars ...
- python zip暴力破解
首先我们要导入三个模块 zipfile zip模块 optparse 解析命令行选项模块 threading 线程模块 parser = optparse.OptionParser('xxxxx') ...
- 【shell】压缩包解压密码暴力破解脚本工具源码
本来一开始是打算用python的,但一想python写保存路径,到最后还是放弃了,因为python的目录写法,终究逃不掉 Windows c:/xxx/.Mac ~/xxxx/ ,这就造成了平台上的 ...
- 工具分享(1):FTP暴力破解工具 [Python多线程版]
工具分享(1):FTP暴力破解工具 [Python多线程版] 参考:https://www.waitalone.cn/python-ftp-mult.html 在他的基础上加了这么一个代码:如果用户输 ...
- 攻防世界illusion暴力破解
攻防世界illusion暴力破解 看算法是不可能看算法的,这辈子都不可能看算法的,汇编又不会,出题人又苟得一匹,加密算法就算每一行都看懂了也不知道整体函数是干嘛的,只有暴力破解这种东西才能维持生活. ...
- hydra暴力破解工具
目录 Hydra安装 Ubuntu安装 centos系统安装 windows安装 Hydra参数说明 Hydra使用实例 破解ssh 破解ftp/telnet 破解MySQL数据库 批量破解多个主机: ...
最新文章
- tomcat源码学习
- torch.where用法
- 536. Construct Binary Tree from String 从括号字符串中构建二叉树
- Android 布局练习
- 图的所有顶点间的最短路径(Floyd算法)
- vmware虚拟机的tomcat启动以后,主机无法访问
- 页面中动态画有超连接的图
- Android开发笔记(一百五十二)H5通过WebView上传图片
- PowerPhotos:Mac照片库管理软件
- Windows Phone开发(25):启动器与选择器之WebBrowserTask 转:http://blog.csdn.net/tcjiaan/article/details/7404770...
- 计算机ppt教案设计大赛,广东省创新杯说课大赛计算机类一等奖作品:PPT电子相册制作教学设计...
- 一级域名二级域名区别
- 餐厅扫码点餐怎么弄的(餐厅二维码自助点餐系统开发制作价格)
- 概率论在实际生活的例子_日常生活中的概率统计
- SAP产品成本计算流程
- 计算机新教师汇报课报道,提升专业促成长—开元路小学开展新教师汇报课记实...
- Qt入门01 创建第一个Qt程序
- HCI实验spss数据分析
- (信息学奥赛一本通 1299)糖果#线性动态规划#
- Python当中reverse()函数