checksec.rs icon indicating copy to clipboard operation
checksec.rs copied to clipboard

Table or more readable output

Open disconnect3d opened this issue 5 years ago • 2 comments

It would be nice to have a more readable output for scanning directories/multiple binaries.

Some ideas:

  • If a given mitigation is not enabled in all binaries, list it only in a summary that all binaries lack those mitigations
  • Display output in a table, so that column headers would be mitigations and rows would be values
  • Consider adding a prettified json output

disconnect3d avatar Jul 27 '20 13:07 disconnect3d

@disconnect3d, great ideas! Personally I have been using the json output to feed into a centralized webapp for doing better trend analysis when looking at platforms as a whole but I can easily migrate some of that logic into checksec itself and present it locally as you mentioned.

As far as prettified json output, I have been using jq in testing but relying on external utilities is not ideal and the additional option for human-readable json should be straight forward so that will also be included in addition to some commits planned for merging into master this week.

etke avatar Jul 27 '20 20:07 etke

Prettified json output has been included with https://github.com/etke/checksec.rs/commit/ec5694f196e183ba64024f1c5e44664430dcc787 and https://github.com/etke/checksec.rs/commit/e5cdbd19bc1555297f4b550f4c82e8346cca13de

Leaving the issue open untill table output and mitigation statistics requests are fulfilled.

etke avatar Aug 20 '20 08:08 etke