#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int check_authentication(char *password) {
int auth_flag = 0;
char password_buffer[16];
strcpy(password_buffer
, password
);
if(strcmp(password_buffer
, "brillig") == 0) auth_flag = 1;
if(strcmp(password_buffer
, "outgrabe") == 0) auth_flag = 1;
return auth_flag;
}
int main(int argc, char *argv[]) {
char pwd[100];
if(check_authentication(pwd)) {
printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); } else {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IGNoZWNrX2F1dGhlbnRpY2F0aW9uKGNoYXIgKnBhc3N3b3JkKSB7CglpbnQgYXV0aF9mbGFnID0gMDsKCWNoYXIgcGFzc3dvcmRfYnVmZmVyWzE2XTsKCglzdHJjcHkocGFzc3dvcmRfYnVmZmVyLCBwYXNzd29yZCk7CgkKCWlmKHN0cmNtcChwYXNzd29yZF9idWZmZXIsICJicmlsbGlnIikgPT0gMCkKCQlhdXRoX2ZsYWcgPSAxOwoJaWYoc3RyY21wKHBhc3N3b3JkX2J1ZmZlciwgIm91dGdyYWJlIikgPT0gMCkKCQlhdXRoX2ZsYWcgPSAxOwoKCXJldHVybiBhdXRoX2ZsYWc7Cn0KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsKCWNoYXIgcHdkWzEwMF07CglzY2FuZigiJXMiLCBwd2QpOwoJaWYoY2hlY2tfYXV0aGVudGljYXRpb24ocHdkKSkgewoJCXByaW50ZigiXG4tPS09LT0tPS09LT0tPS09LT0tPS09LT0tPS1cbiIpOwoJCXByaW50ZigiICAgICAgQWNjZXNzIEdyYW50ZWQuXG4iKTsKCQlwcmludGYoIi09LT0tPS09LT0tPS09LT0tPS09LT0tPS09LVxuIik7Cgl9IGVsc2UgewoJCXByaW50ZigiXG5BY2Nlc3MgRGVuaWVkLlxuIik7CiAgIH0KfQ==