标签:com 测试用例 __name__ error info cep err nbsp 使用
工具下载地址:
https://www.qianxin.com/other/CVE-2019-0708
#!/usr/bin/python3 #-*- coding:utf-8 -*- #编写环境 windows 7 x64 Notepad++ + Python3.5.0 import os import sys def 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批量检测工具
标签:com 测试用例 __name__ error info cep err nbsp 使用
原文地址:https://www.cnblogs.com/wmiot/p/11483685.html