This was a lot of fun. Thanks for making and sharing.
The "find" command would be very helpful for the last step (to get the passcode).
I found that you can do "ls 0/0/0/0 0/0/0/1 ..."
So I wrote a python program to print out the ls command that shows all directory contents :)