When I use shellcode such as the ones provided here* as payload to some vulnerable program, how is the shell executed as root? I am asking about how the privileges are elevated to root? The shellcode doesn't seem to call setuid
or anything to change user.
* http://www.tenouk.com/Bufferoverflowc/Bufferoverflow5.html