Task: Stack Protector
Navigate to labs/lab-05/tasks/stack-protector. Then navigate to support/src.
Comment the -fno-stack-protector switch from the labs/lab-05/tasks/stack-protector/support/Makefile, recompile and run the bo_practice_write executable. Examine the binary with objdump and identify the instructions that set and test the canary. Observe what happens when a buffer overflow occurs.
If you’re having difficulties solving this exercise, go through this reading material.
Checker
To run the checker, go into the tests directory located in src, then type make check. A successful output of the checker should look like this :
student@os:~/.../drills/tasks/aslr/support/src/tests make check
test_stackprotector ........................ passed ... 100
========================================================================
Total: 100/100