exploit.c 228 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include<stdio.h> #include<string.h> int main(){ char buf[40]; char temp; printf("buf = (%p)\n", buf); temp = fgetc(stdin); FILE* fp = fopen("input.text","r"); fread(buf,100,1,fp); printf("%s, \n",buf); return 0; }