Windowsofopportunity
WindowsOfOpportunity
TL;DR
Description
You've located a zombie hideout and are trying to peek inside. Suddenly, a window opens a crack and a zombie peers out - they want a password...Challenge scenario
undefined8 main(void)
{
char local_38 [43];
char local_d;
uint local_c;
puts("A voice comes from the window... \'Password?\'");
fgets(local_38,0x2a,stdin);
local_c = 0;
while( true ) {
if (0x24 < local_c) {
puts("The window opens to allow you passage...");
return 0;
}
local_d = local_38[(int)(local_c + 1)] + local_38[(int)local_c];
if (local_d != arr[(int)local_c]) break;
local_c = local_c + 1;
}
puts("The window slams shut...");
return 0xffffffff;
}Solution


Last updated