Smashing the Stack in the 21st Century(1):栈溢出漏洞利用(32位程序,64位机器)
1.背景考虑如下的简单c程序#include#include#includevoidfirst128(char*str){charbuffer[128];strcpy(buffer,str);printf("%s\n",buffer);}intmain(intargc,char**argv){staticcharinput[1024];while(read(STDIN_FILENO,input,1