I get Segmentation fault (core dumped)
Code:
char shellcode[] = "\xbb\x00\x00\x00\x00"           
                   "\xb8\x01\x00\x00\x00"                  
                   "\xcd\x80";                  

int main()
{

  int *ret;
  ret = (int *)&ret + 2;
  (*ret) = (int)shellcode;
}
The shellcode is an system call.

I use fedora 13. Tried to turn off randomize_va_space but no luck.

Code:
echo 0 > /proc/sys/kernel/exec-shield   #turn it off
echo 0 > /proc/sys/kernel/randomize_va_space #turn it off
Help is needed..


tnx