ssp-coverage /

Filename Size Date modified Message
421 B
875 B
130 B
2.5 KB

Goals

ssp-coverage determines how many function stacks are being protected by stack canaries.

Usage

"-fstack-protector"

make

python ssp-coverage.py foo foo.debug

"-fstack-protector-strong"

make strong

python ssp-coverage.py foo foo.debug

"-fstack-protector-all"

make all

python ssp-coverage.py foo foo.debug

Examples

$ make

$ python ssp-coverage.py foo foo.debug
[-] function fun is NOT protected!
[+] function dangerous is protected!
[-] function main is NOT protected!

33.33 % stacks are protected!

$ make all

$ python ssp-coverage.py foo foo.debug
[+] function fun is protected!
[+] function dangerous is protected!
[+] function main is protected!

100.00 % stacks are protected!

Credits

  • Siddhesh Poyarekar (for the original implementation idea).