我开始编写一个python脚本来获取DISA SCAP检查工具(SCC)的XML输出,并将其转换为csv,这样我就可以轻松地将其转换到Splunk进行存储/分析。下面是XML的摘录。Websites within DOD require user authentication for access which increases security for DoD information它只写入我在'
我试图在C#应用程序中执行Python脚本,但是当它试图启动脚本时,我会收到错误ImportException was unhandled No module name csv。我检查了Ironpython文件夹,有一个csv.py文件.?(); pyScope.SetVariable(profile, options);
pyEngine.ExecuteFile(scr
我需要读取XML文件并将字符串替换为某个值。XML包含CDATA元素,我需要保存它。我尝试使用解析器并将strip_data设置为false。这是行不通的,需要帮助才能找到实现这一目标的方法。import lxml.etree as ET
with open('testxml.xml', encoding', xml_declaration=True, method=
我想检查是否是屏幕保护程序在我的Windows10Pro活动使用我自己的PowerShell-脚本和OpenSCAP 1.3.2 (Windows )。我编写了这样的文件test.xml: Test XCCDF Benchmark Standard System Security Profile} else { exit $XCCDF_RES