Really fun, kind of trains you to when the situation happens IRL, whether you're thinking about how to escape a shell or if you really did it by mistake. I love showing this screenshot to people: https://imgur.com/a/ziHqJxB . I was having problems trying to create a jailed shell, so I decided to bind mount /bin. That of course was a bad idea. I gave up and rm -rf'd the mountpoint without unmounting it. The screenshot…
The top of the image is unreadable due to excessive lossy image compression.
Show HN: Oops I deleted my bin/ dir
21–23 of 23 posts
Re: Show HN: Oops I deleted my bin/ dir
#22Hello HN: This is a a modification to an old side-project that explores what is possible when you are left with a shell and no utilities on a Linux machine.
It's not really that educational tbh. I am not a bash guru, nor do I wish to be one, so the second question left me cold with no desire to proceed any further. It's a fun game for those with the skills, but an instructional tool it is not.
Re: Show HN: Oops I deleted my bin/ dir
#23Earlier quoted context omitted.
It's not really that educational tbh. I am not a bash guru, nor do I wish to be one, so the second question left me cold with no desire to proceed any further. It's a fun game for those with the skills, but an instructional tool it is not.
It's an algebra game. Given a set of operations, can you get to state X? Usually requires a lot of searching and/or expertise, however the solutions will break pretty easily depending on which shell you're using, etc. So doesn't really teach you anything aside from iterating over a set of all possible operation combinations.