I'm trying to exploit the following code with a buffer overflow to get a shell:
int main()
{
char str[64]
gets(str);
return(0);
}
The platform is Ubuntu 64 bit, arch i686.
The program is segfaulting on the 76th byte. Next four bytes are the return address.
But when i implement a x86_64 execveat("/bin//sh") 29 bytes shellcode the return address is not correct and the shell doesn't spawn.
The return address :
Have you any tracks ?