#include #include #include #include #include void print_flag(void) { char flag[256]; FILE *flag_file = fopen("flag.txt", "r"); fgets(flag, sizeof flag, flag_file); puts(flag); } const char *const responses[] = {"L", "amongus", "true", "pickle", "GINKOID", "L bozo", "wtf", "not with that attitude", "increble", "based", "so true", "monka", "wat", "monkaS", "banned", "holy based", "daz crazy", "smh", "bruh", "lol", "mfw", "skissue", "so relatable", "copium", "untrue!", "rolled", "cringe", "unlucky", "lmao", "eLLe", "loser!", "cope", "I use arch btw"}; int main(void) { setbuf(stdout, NULL); srand(time(NULL)); char input[64]; puts("hello"); while (1) { gets(input); char *s = strstr(input, "i'm"); if (s) { printf("hi %s, i'm aplet123\n", s + 4); } else if (strcmp(input, "please give me the flag") == 0) { puts("i'll consider it"); sleep(5); puts("no"); } else if (strcmp(input, "bye") == 0) { puts("bye"); break; } else { puts(responses[rand() % (sizeof responses / sizeof responses[0])]); } } }