Buffer Overflow and Fedora Core 3

I was trying some buffer overflow examples in my Fedora Core 3, and after hitting the wall for about 3 hours i found that fedora core 3 has a stack proctection (exec-shield) enabled, so one way to disable it is "sysctl -w kernel.exec-shield=0" or "echo 0 > /proc/sys/kernel/exec-shield".
(beware that now you machine is vulnerable to Buffer overflows).
Note: This also apply to Fedora Core 2.

2 comentarios:

JoniDeRiper said...

y como se activa?

a8888b. a8888b.
d888888b. d888888b.
8P"YP"Y88 8P"YP"Y88
8|o||o|88 8|o||o|88
8' .88 8' .88
8`._.' Y8. 8`._.' Y8.
d/ `8b. d/ `8b.
.dP . Y8b. dP . Y8b.
d8:' " `::88b. d8:' " `::88b
d8" `Y88b d8" 'Y88b
:8P ' :888 :8P ' :888
8a. : _a88P 8a. : _a88P
._/"Yaa_ : .| 88P| ._/"Yaa_: .| 88P|
jgs \ YP" `| 8P `. jgs \ YP" `| 8P `.
a:f / \._____.d| .' a:f / \.___.d| .'
`--..__)888888P`._.' `--..__)8888P`._.'

laramies said...

To enable it "sysctl -w kernel.exec-shield=1" or "echo 1 > /proc/sys/kernel/exec-shield"