checksec --dir does not produce a valid json
asarubbo opened this issue · 2 comments
asarubbo commented
I'm just adding the commands that are self-explain
~ $ checksec --file=/bin/nano --output=json | jq
{
"/bin/nano": {
"relro": "full",
"canary": "yes",
"nx": "yes",
"pie": "yes",
"rpath": "no",
"runpath": "no",
"symbols": "no",
"fortify_source": "yes",
"fortified": "10",
"fortify-able": "23"
}
}
~ $ checksec --dir=/bin --output=json | jq
jq: parse error: Invalid numeric literal at line 1, column 3561
~ $ checksec --dir=/bin --output=json | jq -e > /dev/null 2>&1 ; echo "${?}"
5
~ $ checksec --version
checksec v2.6.0, Brian Davis, github.com/slimm609/checksec.sh, Dec 2015
Based off checksec v1.5, Tobias Klein, www.trapkit.de, November 2011
slimm609 commented
I tried to reproduce this issue and could not. Can you provide any data about the system to help reproduce this?
slimm609 commented
This should be fixed in the newest version