can anyone explain this code to me???

Posted by Abed on Stack Overflow See other posts from Stack Overflow or by Abed
Published on 2010-04-24T19:36:00Z Indexed on 2010/04/24 19:43 UTC
Read the original article Hit count: 181

Filed under:

char shellcode[] =




int main() { 

int *ret; //ret pointer for manipulating saved return.

ret = (int *)&ret + 2; //setret to point to the saved return
//value on the stack.

(*ret) = (int)shellcode; //change the saved return value to the
//address of the shellcode, so it executes.


can anyone give me a better explanation

© Stack Overflow or respective owner

Related posts about c

    Related posts about stack-overflow