kronicd's ctf / ctf solution