FZT level13
-
[FTZ Level13 풀이]System/FTZ 2018. 2. 16. 01:21
[Level13 Code]1234567891011121314151617#include main(int argc, char *argv[]){ long i=0x1234567; char buf[1024]; setreuid( 3094, 3094 ); if(argc > 1) strcpy(buf,argv[1]); if(i != 0x1234567) { printf(" Warnning: Buffer Overflow !!! \n"); kill(0,11); }} Colored by Color Scriptercs Level13은 BOF공격을 좀 힘들게 만들어놨다.변수 i가 buf보다 먼저 선언되어 있으므로, 일반적인 BOF공격을 시도한다면 i의 저장되어 있는 값이 변조될 것이다. [Level13 Stack] buf[1024..