python3调用exe程序编写cve20190708批量检测工具,,1、python3调
python3调用exe程序编写cve20190708批量检测工具,,1、python3调
1、python3调用exe程序编写cve20190708批量检测工具
工具下载地址:
https://www.qianxin.com/other/CVE-2019-0708
由于这个exe程序只是单IP扫描版本,于是使用python3修改为批量扫描脚本版本
#!/usr/bin/python3#-*- coding:utf-8 -*-#编写环境 windows 7 x64 Notepad++ + Python3.5.0import osimport sysdef main(): #需要修改的地址,注意后面有个空格 path="D:\\MS_19_0708_Scan\\cve20190708批量脚本检测工具\\cve-2019-0708-scan.exe " filename="ip.txt" with open(‘result.txt‘,‘w‘) as fw: with open(filename,‘r‘) as file: for line in file: try: result = os.popen(path+line+‘ 3389‘) print("检测 "+line) fw.writelines(result) fw.writelines(line) except Exception as e: print("Path error") print(e) if __name__ == ‘__main__‘: main()
1.1测试用例
1.2使用方法
1.3检测结果:
python3调用exe程序编写cve20190708批量检测工具
相关内容
- Python语言-selenium webdriver操作记录汇总,,1、控制浏览器
- ubuntu中python3安装package,,1.实验环境Ubun
- python 精确计算与向上取整 decimal math.ceil,,1. 精确
- Python数据分析-Kobe Bryan生涯数据读取及分析,,1.将数据
- Python绘制wav文件音频图(静态)[matplotlib/wave],,#!/usr/bin
- python中的进程池和线程池,,Python标准模块
- Python中使用mock.Mock()进行mock测试,,先来一个简单的例子
- python绝技 — 用Scapy解析TTL字段的值,,#!/usr/bin
- 使用cython库对python代码进行动态编译达到加速效果,
- python serial模块使用,是pyserial而非serial,,1 import s
评论关闭