rupture316
rupture316

Reputation: 11

How to disable the overflow protectors

When I try to experiment on buffer overflows, I set randomize_va_space to 0 and I set the -fno-stack-protector flag but my experiments still don't work with newer kernels ?.

Upvotes: 0

Views: 166

Answers (1)

user4822941
user4822941

Reputation:

Don't work how? This question is extremely lacking in detail.

First, you can disable aslr for given process with setarch -R. Two, I suspect you have shellcode which executes itself from the stack, which is mapped non-exec. This can be remedied with -zexecstack.

I strongly suggest you get a distro prepared for beginners. https://exploit.education/ has some excellent Overflow examples that can be setup in a Virtual Environment.

Upvotes: 1

Related Questions