slimm609 / checksec.sh

Checksec.sh

Home Page:https://slimm609.github.io/checksec.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

checksec --dir does not produce a valid json

asarubbo opened this issue · comments

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

I tried to reproduce this issue and could not. Can you provide any data about the system to help reproduce this?

This should be fixed in the newest version