There's so many good features in Edge. It genuinely sucks that Microsoft is ruining their stuff with popups and forced defaults because Edge and their other software have a lot of thought and care put into them.
Many people have given great suggestions for the most destroying commands, but most result in an immediately borked system. While inconvenient, that doesn't have a lasting impact on users who have backups.
I propose writing a bash script set up to run daily in cron, which picks a random file in the user's home directory tree and randomizes just a few bytes of data in the file. The script doesn't immediately damage the basic OS functionality, and the data degradation is so slow that by the time the user realizes something fishy is going on a lot of their documents, media, and hopefully a few months worth of backups will have been corrupted.
Now alias ls= all that. And throw it in a background process. And actually return the value of ls so it doesn't look like anything nefarious is going on.
I bet you could chroot into a ram disk so you're not tearing the floor out from under you.
The victim would find this prank hilarious and everyone would like you and think you're super cool.
The trick is that you loose access to every file on the system. chmod is also a file. And ls. And sudo. You see where it's going. System will kinda work after this command, but rebooting (which by a coincidence is a common action for "fixing" things) will reveal that system is dead.
Yep. You could run chmod again to fix it (from a different OS / rescue USB), but that would leave all the permissions in a messy state - having everything set to 777 is incredibly insecure, and will also likely break many apps/scripts that expect more restrictive permissions. So the only way to fix this properly would be to reinstall your OS/restore from backups.
Everyone else talking about how to shred files or even the BIOS is missing a big leap, yeah. Not just destroying the computer: destroying the person in front of it! And vim is happy to provide. 😅
True, just entering vim on a pc for a user who doesn't know about vim's existence is basically a prison sentence. They will literally be trapped in vim hell until they power down their PC.
I once entered vim into a computer. I couldn't exit. I tried unplugging the computer but vim persisted. I took it to the dump, where I assume vim is still running to this very day.
Everyone is talking about rm -rf / and damage to storage drives, but I read somewhere about EFI variables having something to do with bricking the computer. If this is possible, then it's a lot more damage than just disk drives.
I did have RH Linux die while updating core libs a very long time ago. It deleted them and the system shut down. No reboot possible. I eventually (like later that day) copied a set of libs from another rh system and was able to boot and recover.
That 'amp;' does not belong in there, it's probably either a copy-paste error or a Lemmy-error.
What this does (or would do it it were done correctly) is define a function called ":" (the colon symbol) which recursively calls itself twice, piping the output of one instance to the input of the other, then forks the resulting mess to the background. After defining that fork bomb of a function, it is immediately called once.
It's a very old trick that existed even on some of the ancient Unix systems that predated Linux. I think there's some way of defending against using cgroups, but I don't know how from the top of my head.
I was going to suggest a fork bomb, but it is recovered easily. Then I thought about inserting a fork bomb into .profile, or better, into a boot process script, like:
echo ':(){:|:&};:' | sudo tee -a /bin/iptables-apply
That could be pretty nasty. But still, pretty easy to recover from, so not really "destructive."
"wipefs -a" instantly removes filesystem signatures. It's fast, doesn't actually delete data but is just as effective in most cases where you're not worried about someone trying to recover it. Much faster than rm on /. As far as the OS is concerned the drive is then empty.
I don't know about how exactly to do it, but I do have an idea or two.
Something that will reflash the firmware on as many devices as possible using garbage data. At least the UEFI.
Filling most of the drive space, leaving let's say 50MB, then overwriting those 50MB repeatedly to damage the hardware itself. I suppose you could do the same with RAM. If we're dealing with PMR/CMR HDD, then you should just be able to write to specific sectors without doing it by filling the rest.
If present, keep ejecting the DVD drive. Either the mechanism dies or someone accidentally bumps into the open tray and breaks it off.
Keep hard rebooting the laptop after some time. It may corrupt some data, and put the blame on hardware. The hard reboot can be done by echo b > /proc/sysrq-trigger This will need magic SysRq compiled into the kernel, and power off/reboot enabled. The latter can be done by enabling all magic SysRq functions echo 1 > /proc/sys/kernel/sysrq or just reboot/power off with "128".
Here is the command that will render a LUKS encrypted device un recoverable
From the documentation.
5.4 How do I securely erase a LUKS container?
For LUKS, if you are in a desperate hurry, overwrite the LUKS header and
key-slot area. For LUKS1 and LUKS2, just be generous and overwrite the
first 100MB. A single overwrite with zeros should be enough. If you
anticipate being in a desperate hurry, prepare the command beforehand.
Example with /dev/sde1 as the LUKS partition and default parameters:
Modern disks have encryption enabled in disk level. This will change the encryption key on the disk, meaning that in seconds all data in the disk is in unrecoverable state.
This is way better than writing the whole disk 0's or rm -fr /
dd if=/dev/urandom of=/dev/sdx will overwrite every single byte of /dev/sdx with random data. Replace /dev/sdx with the drive you want to wipe. Optionally, specify a larger block size to speed it up more.
I was a newbie user, telling a friend of mine about rm -rf /*. I typed it in a hit Enter, telling him it doesn't harm since I didn't enter sudo. But I'd forgotten that I have still permission to delete my home directory. 🥲😂