FSB(32bit, 64bit) 연습(feat.mytool)
FSB예제 32bit //gcc fsb32.c -o fsb32 -m32 -mpreferred-stack-boundary=2 #include #include int main(int argc, char **argv){ char buf[128] = {0, } ; int ret_addr = (int)buf ; for(int i = 0 ; i < 2 ; i++){ fgets(buf, 128, stdin) ; printf(buf) ; memset(buf, 0, 128) ; } return 0 ; } 64bit //gcc fsb64.c -o fsb64 -mpreferred-stack-boundary=4 #include #include int main(int argc, char **argv){ char buf[1024..