tangjie1 / -baseline-check Goto Github PK
View Code? Open in Web Editor NEWwindows和linux基线检查,配套自动化检查脚本。纯手打。
windows和linux基线检查,配套自动化检查脚本。纯手打。
windows脚本中获取ip的方式,是通过ipconfig获取的,当电脑有多个网卡的时候就不能准确获取ip,可以通过路由表的方式获取测下来算是比较准确的,如下:
$ip = ((route print |findstr "0.0.0.0.*0.0.0.0") -replace "\s{2,}", " ").split()[4]
$PSDefaultParameterValues['*:Encoding'] = 'oem'
使用 MS-DOS 和控制台程序的默认编码
建议加一下,不然使用excel 2007版本打开生成的csv文件,会乱码。
在powershell5.5版本下,执行脚本会报错,报错如下:
所在位置 D:\Documents\PowerShell\windows-baseline-check.ps1:1683 字符: 84
~
只允许将表达式作为管道的第一个元素。
所在位置 D:\Documents\PowerShell\windows-baseline-check.ps1:1688 字符: 9
echo "$($i.fail)"
~~
表达式或语句中包含意外的标记“$(”。
所在位置 D:\Documents\PowerShell\windows-baseline-check.ps1:1688 字符: 19
echo "$($i.fail)"
请问您项目的linux基线配置参考文档是依据什么标准?CIS还是等保或者是其他的
Linux中用LibreOffice Calc打开生成的checkList.csv文件显示乱码
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.