Spyke
pawb.social

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

113
Alleroreply
lemmy.today

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

5
Alleroreply
lemmy.today

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

2

And for GPU? For all I understand, everything but dom0 should still require GPU Passthrough to have any decent GPU performance. Does passthrough perform well? Also, am I right in understanding that if you have 2 GPUs or APU/GPU mix, you can only have GPU passed through to one VM, leaving other VMs on the mercy of the same device that renders dom0?

1
tylerreply
programming.dev

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

17
Denvilreply
lemmy.ml

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

8
assa123reply
lemmy.world

What if it encrypts the disk when entering the dir and the only way to decrypt it is by winning? Decryption keys will be provided via API at the end.

2

oh, and the endpoint key is on ram, to be lost forever after shutdown.

2

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.

2
corsicanguppyreply
lemmy.ca

When people don't know normal things we learned in '92, I get worried.

18
threereply

Instead of acting like an asshole, teach us.

15

Oof. I consider myself a fairly decent Linux Sysadmin (~15 years experience ~10 years professionally) but I actually didn't know about that. :/

6

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

63

it removed your disc encryption keys and the only way to recover it is finding it in memory through the minefield

4
gruereply

Magic, I guess, 'cause nothing in the sceenshot would do it, unless the attacker had already replaced cat with a trojan or something.

20
hperrinreply

AFAIK, there’s no way to without modifying the system tools and shell.

16
gegilreply
sopuli.xyz

How can you prevent a shutdown using a power key?

11

There's an Emacs command to do that

C-x M-c M-minefield

23
Unleaded8163reply
fedia.io

You could probably install a handler for the event that's triggered when the power button is pressed. Most OSes do that and pop up a graceful shutdown options window. Most hardware will have a hard shutdown option when you hold the power button for a few seconds. You would probably have to overwrite the BIOS or something at that level to prevent that way out.

11

alt+sysrq+b bypasses this handler, also switching to another vt should just drop you in a normal shell it as well as long the login shell isn't modified. There are a lot of ways that can be used to break out.

3

Encrypt hard drive and keep the key in RAM. Could be recovered with a cold boot attack but that's very advanced. The DOS virus ONEHALF would run as a daemon encrypring a block on the drive on each boot and intercept reads/writes to the encrypted part as if nothing ever happened. Only after encrypting Β½ of the disk, it would reveal itself with an ominous

Dis is one half.
Press any key to continue...

The decryption was eventually cracked by ESET and they developed a tool to recover the drive.

4
lemmy.world

I can think of a way out:

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

34

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

4
lemmy.world

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.

33
pawb.social

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

(cd is a shell builtin)

28

Technically they could if run as root by modifying the parent process

9

Good point. Also it wouldn’t stop you from just opening another terminal window haha.

4
tetris11reply
feddit.uk

*a single cat is hurled unceremoniously through the window onto your lap*

3

while this is not real, something similar in principal very much was! (but not too widespread)

see here or look up "casino dos malware"

uh in short it erases "the disk's" (unsure which) file allocation table (pretty much the dos/windows version of a superblock). apparently some versions did copy it to memory and give the user a chance though!

22
sh.itjust.works

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.

18
piefed.zip

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.

13

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.

3
stoyreply
lemmy.zip

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.

36
RustySharpreply
programming.dev

FAT Table

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

18

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"

2
sh.itjust.works

What did the minefield directory do here to hijack cd?

Can an alias be applied upon cd?

7

on termux it works:

~ $ alias 'cd=echo'
~ $ cd

~ $ cd hi
hi
~ $
1

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

4

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?

2