Based on the responses in this thread, I feel like you could present this screenshot with a "I bet you couldn't find your way out of this!" and a zip of the directory, and a significant number of users would voluntarily download it and extract it just to "prove that they could".
post
what does this change?
When people don't know normal things we learned in '92, I get worried.
Combat the minefield with a fork bomb. Ainβt no process surviving this engagement.
The power cable would like to have a word.
Reminds me of gameshell, which is a rogue-like game designed to teach you the unix shell. So instead of navigating with NESW, you cd to locations. At one point you search the "garden", which is an unmanageable tangle of directories, with find.
I can think of a way out:
Just throw the whole PC away. It's someone else's problem now!
Reminder that binaries cannot change a shell's working directory, so the non-mines will do nothing.
(cd is a shell builtin)
Maybe something like find ./ -type f | xargs md5sum, then avoid the one directory where the executable has a different checksum. Heck, even find | ls might suffice.
This could be trivially defeated by a program which erases the hard drive unless run using a particular executable name. Then, all twenty entries could simply be hard links to the same executable file on disk, but one of the names would trigger different behavior.
So then you either cat the executable and hope itβs a shell script, you output the binary with a hex viewer and compare, you modify the executable so itβs in a lower permission group and thus wouldnβt have access to erase the drive, thereβs like a hundred ways to solve this.
Does it have a perpetual energy source if I unplug it?
There was an old virus that would copy your FAT table to ram, erase it from disk, and preset you with a slot machine UI where you would gamble to get the FAT back, if you won, great, the virus would write the FAT back to the drive, if not, you lost everything.
Rebooting without playing meant loosing everything.
FAT Table
Can I just pay? I can go to the ATM Machine and enter my PIN Number
Despite having Table in the name, FAT isn't a table, but rather uses a table, and FAT itself is a filesystem. Thus, it's different from a machine with "machine" being in the name or a number with "number" in the name, and it seems entirely reasonable to refer to the crucial index table in the FAT filesystem as the "FAT table"
What did the minefield directory do here to hijack cd?
Can an alias be applied upon cd?
i had a school colleague who could write small programs in bytecode, so i think someone who really knows their shit can get out without issues with cat and ls, as long as there isn't much obfuscation
I wonder if we could bash -n -v the source code? π€ Since -n should error check without execution.
Edit: maybe that only works on scripts?

top 54 comments