Skip to content

Comment on Smashing the stack for fun and profitparent

Comments

The flags for disabling executable stack are: "-Wl,-z execstack" "-Wa,--execstack"

I also added -U_FORTIFY_SOURCE in the Makefile for the exploit project that the security course I'm TAing is currently working on. Not sure if that was entirely necessary.

Look at the output of `objdump -d prog | grep call | grep _chk | wc -l', if the value returned is zero/0/0x0 you haven't got FORTIFY_SOURCE enabled, and would be unnecessary to add -U_FORTIFY_SOURCE.

However this is dependant upon implementation set restrictions and defaults.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.