Sometimes, one can redirect execution to LoadLibraryA such that the parameter points to an area on the stack that is under your control, so that you can specify the name of a DLL without executing any shellcode, but it's uncommon.
As far as I know, ELF does not have an option to specify if the program is compatible with DEP. This option exists only on Windows.
Ya, but that would be almost next to impossible. And even if you did get it to work on your computer it probably wouldn't work on somebody else computer...
So where in what header is the DEP settings for the PE .exe windows version.
I guess what I am asking is does anybody know where the complier sets this DEP option in the PE file.
And if ELF doesn't support DEP then how does OpenBSD have this ability since on BSD systems correct me if I am wrong.
They use a.out , coff , or elf or some variant of them. none of these exe file formats contains any security parameter for making the stack r/w but not executable... that I know of (looking at the formats I don't see any of them)
Seems to me bufferoverflows are dieing out..... But their are still exploits that give people viruses and I thought 90% of exploits (other then DOS attacks ) relied on bufferoverflows.
I mean how else does those virus writers ,...etc ect get exe to randomly execute on your machine without you clicking run. ( has to be some bufferoverflow exploit ) And it seems viruses are not really dieing out for microsoft computers.
You still see them poping up here and their but with DEP I would think they should be completely gone.......
I have to ask how long ago was DEP being used in windows os's because once every application/compiler has the DEP on by default I would think bufferoverflows would be pretty much died.
I am using this gcc
Code: Select all
gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So is this DEP on by default or not if so how do I turn it off?
Also do they use DEP on the heap as well? because if not then their is still the ability to do heap overflows (however they are usually harder to do because the heap is not as predictable as the stack.)