Search code examples
windows-xpbuffer-overflowexploitdep

How to check Windows XP Stack canaries status?


How can I check the status of stack canaries status in Windows XP? I only found that we can able to check DEP status and can turn/off. How to achieve that for stack canaries?


Solution

  • Unlike DEP, canaries are added at compile time using compiler options like -fstack-protector for GCC, and /GS for Microsoft Visual C++. They are not system wide, so you cannot check the status "in Windows XP".