slimm609 / checksec.sh

Checksec.sh
https://slimm609.github.io/checksec.sh/
Other
1.99k stars 299 forks source link

Test suite for all supported checksec file and process hardening checks #224

Closed petervas closed 1 year ago

petervas commented 1 year ago

This pull request adds a test suite for all supported file and process hardening checks. To generate the test binaries from scratch call build_binaries.sh. The binaries have already been pre-built for this pull request. This test suite should prevent commits that break any of the supported hardening detections.

While generating the test suite the acceptance of process names with numbers has been added to checksec. A minor shellcheck issue has been fixed as well.

petervas commented 1 year ago

Ok so this is working now and only missing the NX Fix from #212.

I'll just merge #212 into this pull request and we'll finally have the basic checksec functionality restored once again. And this test suite should make it a lot harder to break checksec in the future.

petervas commented 1 year ago

What a rough ride. Pull request is ready.

Summary of the changes: