I want to use ptrace to write a piece of binary on the stack of a running process. However, this causes a loss of segmentation (signal 11).
I can make sure that the% eip list contains a pointer to the first command that I want to execute on the stack. I assume that there is some kind of mechanism that linux protects the stack data that will be executable.
So, does anyone know how to disable such protection for the stack. In particular, I'm trying to use Fedora 15.
Thanks a lot!
After reading all the answers, I tried execstack, which really makes the code on the stack executable. Thanks everyone!
source share