The same will happen when you try to do multiple files, such as via --dir.
What are the problems?
"function" as aforementioned. We need to:
move the type marker from the key to inside the object when things can repeat. So instead of { "function": { ... } }, we simply have { "type": "function" }. But the stats don't need changing.
insert an array [ {...} , {...} ] around it (XML needs no such thing)
"nb_fortifiable_func" and "fortifiable" count different things. This affects XML too. Maybe rename "fortifiable" to "unchecked".
checksec --output=json --fortify-file=/bin/bash
gives a json with duplicate keysThe same will happen when you try to do multiple files, such as via
--dir
.What are the problems?
{ "function": { ... } }
, we simply have{ "type": "function" }
. But the stats don't need changing.[ {...} , {...} ]
around it (XML needs no such thing)