// gcc ./checkin_pwn.c -o ./pwn #include #include void init() { setvbuf(stdin, 0LL, 2, 0LL); setvbuf(stdout, 0LL, 2, 0LL); setvbuf(stderr, 0LL, 2, 0LL); } int main () { init(); long long key = 0xf61df61df61df61d; long long input; puts("Please input the key to login:"); read(0, (char *) &input, 8); if(input == key) { system("/bin/sh"); } }