[d^ctf] babyrop ( write-up )
D^3CTF babyropAnalysismain()void __fastcall __noreturn main(__int64 a1, char **a2, char **a3) { setup(); read_str(&buf, 0x100, '\n'); vm(&buf, &offset, &stack, &check); exit(0); }main함수는 위와 같습니다.setup()unsigned __int64 setup() { unsigned __int64 v0; // ST08_8 v0 = __readfsqword(0x28u); setvbuf(stdin, 0LL, 2, 0LL); setvbuf(stdout, 0LL, 2, 0LL); setvbuf(stderr, 0LL, 2, 0LL); alarm(100u); return ..