import json
import os
import xml.etree.ElementTree as ET
from urllib.parse import urlparse
from bs4 import BeautifulSoup
currDir = os.path.dirname(os.path.realpath(__file__))
rootDir = os.path.abspath(os.path.join(currDir, "../../.."))
target = 'http://223.4.72.2'
def obtain_xml(batch_target):
"""
获取 nmap 结果
:param batch_target:
:return:
"""
batch_target = urlparse(batch_target).hostname
result_dir = os.path.join(rootDir, f"./result/
2021-09-11-解析namp扫描结果的xml的保存方式
最新推荐文章于 2024-08-14 19:00:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)