QWXFB-2024/正式赛/Pwn/checkin_pwn/attachment/checkin_pwn.c

13 lines
281 B
C
Raw Normal View History

2024-09-16 11:35:04 +08:00
// gcc ./checkin_pwn.c -o ./pwn
#include <stdio.h>
#include <stdlib.h>
int main () {
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");
}
}