[me@penguin ~]$ ls not	much	minefield [me@penguin ~]$ cd minefield [me@penguin minefield]$ ls 1	6	11	16	README 2	7	12	17 3	8	13	18 4	9	14	19 5	10	15	20 [me@penguin minefield]$ cat README Welcome traveller.  You have reached The Minefield.  In this directory are a series of executables. You must choose one to run.  One of these executables will return you to your home directory. The others will erase your entire hard drive.  That one executable is your only way out. You cannot "cd" or "exit" your way out of this directory. Not even "shutdown" will work. And don't bother reaching for the power switch, it won't work either.  Choose carefully.  And good luck. [me@penguin minefield]$ cd [me@penguin minefield]$ cd ~ [me@penguin minefield]$ exit [me@penguin minefield]$ shutdown [me@penguin minefield]$

top 54 comments

sorted by: hot top controversial new old
[–] 106 points 7 months ago (13 children)

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".

  • source
  • hideshow 13 child comments
  • [–] 56 points 7 months ago (6 children)

    Genuinely my first response. What are VMs for?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 7 months ago (5 children)

    I run QubesOS BTW. My entire computer is just a bunch of VMs in a trench coat.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 5 points 7 months ago (4 children)

    Running Qubes as a daily driver is some serious level of privacy enthusiasm

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 7 months ago (3 children)

    I do it mainly cos it makes managing lots of different environments easy. I can have windows and different Linux distros and different packages and cool shit all from one display manager.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 7 months ago (2 children)

    Doesn't virtualization eat away a lot of performance? Or do you not care much about it?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 16 points 7 months ago (5 children)

    Well yeah? And you do it in a vm. But seems like a decently simple problem anyway. ls -al and compare the sizes.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 7 months ago (4 children)

    Obvioulsy whoever set this minefield thought about this

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 7 months ago (2 children)

    The greatest trick is to make your opponent think you thought of everything. Powering off might just straight up work and they're just bluffing, might as well try

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago

    I mean they didn’t, cause you can just open another terminal window or pull the plug on the computer, but like someone else said, a binary can’t change the directory for you cd is a shell built in, so I’m pretty sure this would be trivial to get past.

  • source
  • parent
  • [–] 72 points 7 months ago (4 children)
  • [–] 58 points 7 months ago

    Combat the minefield with a fork bomb. Ain’t no process surviving this engagement.

    πŸ˜† 1
  • source
  • [–] 42 points 7 months ago (1 child)

    The power cable would like to have a word.

  • source
  • hideshow 1 child comment
  • [–] 31 points 7 months ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 30 points 7 months ago (2 children)

    I can think of a way out:

    Just throw the whole PC away. It's someone else's problem now!

  • source
  • hideshow 2 child comments
  • [–] 4 points 7 months ago

    But it's on a dedicated server you have already paid for, which also hosts your own Minecraft game server with active players (mission-critical process which can never be allowed to stop).

  • source
  • parent
  • [–] 27 points 7 months ago (4 children)

    Reminder that binaries cannot change a shell's working directory, so the non-mines will do nothing.

    (cd is a shell builtin)

  • source
  • hideshow 4 child comments
  • [–] 21 points 7 months ago (2 children)
  • [–] 18 points 7 months ago (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] 13 points 7 months ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 7 months ago*

    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.

  • source
  • parent
  • [–] 16 points 7 months ago

    Has "let's play a game" vibes

  • source
  • [–] 15 points 7 months ago

    We have squid games at home.

    Squid games at home:

  • source
  • [–] 13 points 7 months ago (5 children)

    Does it have a perpetual energy source if I unplug it?

  • source
  • hideshow 5 child comments
  • [–] 34 points 7 months ago (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 17 points 7 months ago (2 children)

    FAT Table

    Can I just pay? I can go to the ATM Machine and enter my PIN Number

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago

    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"

  • source
  • parent
  • [–] 7 points 7 months ago (1 child)

    What did the minefield directory do here to hijack cd?

    Can an alias be applied upon cd?

  • source
  • hideshow 1 child comment
  • [–] 7 points 7 months ago
    [–] 5 points 7 months ago
    [–] 4 points 7 months ago

    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

  • source
  • [–] 3 points 7 months ago
    [–] 3 points 7 months ago

    Does it fry my hardware? Or can I just do another fresh install

  • source
  • 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?

  • source