manywho / oscap-json

A simple tool for parsing output from OpenSCAP and converting it to JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSCAP JSON

A simple tool for parsing output from OpenSCAP and converting it to JSON

Usage

oscap-json can either read input from a file or stdin. By default it will try to read from stdin. To override this behaviour and read from a file, use the -file flag.

# Read from stdin
$ sudo oscap xccdf eval --profile my_profile /path/to/scap.xml | oscap-json

# Read from a file
$ sudo oscap xccdf eval --profile my_profile /path/to/scap.xml > /tmp/report.txt
oscap-json -file /tmp/report.txt

About

A simple tool for parsing output from OpenSCAP and converting it to JSON

License:GNU General Public License v3.0


Languages

Language:Go 89.4%Language:Makefile 10.6%