[root@localhost ~]# yum install scap-security-guide -y
[root@localhost ~]# sed -i -e "s#<platform>Red Hat Enterprise Linux 6</platform>#<platform>CentOS 6</platform>##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml [root@localhost ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux:6#cpe:/o:centos:centos:6##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml [root@localhost ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux#cpe:/o:centos:centos##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
評估PCI DSS合規的內容html
[root@localhost ~]# oscap xccdf eval --results results.xml --profile pci-dss /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
[root@localhost ~]# oscap xccdf generate report --output report.html results.xml