slimm609 / checksec

Checksec
https://slimm609.github.io/checksec
Other
2.05k stars 306 forks source link

Search libc at user defined place, allow cross plattform analysis #206

Closed sreschke80 closed 1 year ago

sreschke80 commented 2 years ago

The libc is searched through the complete filesystem. This can take a very long time and does not support analysis of cross plattform analysis. For example one wants to analyse libraries for Android on a Linux PC. The Linux PC uses glibc on x64 and Android another libc on ARM.

The optional parameter 'libcfile' allows to specify a libc.so file or a search path, where libc should be found. If libc is not found, the search is done through the complete filesystem.

Costinteo commented 1 year ago

Great pull request! Saved me a lot of time. Thanks!

Hopefully it gets merged.

Although, I think the idea of the script is to be built from the different pieces in src/. So you might have to add these changes to src/core and the other functions you've changed. So that you will be able to then generate checksec with make build.

sreschke80 commented 1 year ago

Although, I think the idea of the script is to be built from the different pieces in src/. So you might have to add these changes to src/core and the other functions you've changed. So that you will be able to then generate checksec with make build.

I will try to integrate the changes into the src directory.

slimm609 commented 1 year ago

sorry for the late response. Thanks for the contribution. Shellcheck is failing on several checks.

sreschke80 commented 1 year ago

sorry for the late response. Thanks for the contribution. Shellcheck is failing on several checks.

I fixed the issues with shellcheck.