this post was submitted on 30 Dec 2023
139 points (96.0% liked)

Asklemmy

43810 readers
1 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[โ€“] cupcakezealot@lemmy.blahaj.zone 166 points 1 year ago* (last edited 1 year ago) (4 children)

sudo apt install microsoft-edge-stable

[โ€“] Urist@lemmy.ml 19 points 1 year ago

Look, a heretic!

[โ€“] nixcamic@lemmy.world 17 points 1 year ago (1 children)

I actually like Edge more than Chrome.

I don't use either, die-hard Firefox user for decades but if I'm forced to pick one...

load more comments (1 replies)
[โ€“] psmgx@lemmy.world 6 points 1 year ago (1 children)

Is it really available in a Debian or Ubuntu repo?

[โ€“] wetferret@lemmy.world 73 points 1 year ago (3 children)

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.

[โ€“] Wes_Dev@lemmy.ml 32 points 1 year ago

Calm down there Satan.

[โ€“] Appoxo@lemmy.dbzer0.com 14 points 1 year ago

So basically malware by a sadistic internet troll?

[โ€“] Motorheadbanger@lemmy.world 6 points 1 year ago (1 children)

It'll just write a new Shakespeare play

load more comments (1 replies)
[โ€“] otter@lemmy.ca 68 points 1 year ago (1 children)

Some generative AI is going to swallow this thread and burp it up later

[โ€“] dandroid@dandroid.app 17 points 1 year ago (3 children)

My wife's job is to train AI to not do that. It's pretty interesting, actually.

[โ€“] MDKAOD@lemmy.ml 10 points 1 year ago (2 children)

A bad actor doesn't care what your wife does. :)

[โ€“] Goun@lemmy.ml 10 points 1 year ago

I too choose this guys wife

[โ€“] psmgx@lemmy.world 5 points 1 year ago (1 children)

Most orgs doing AI research should be assumed to be bad actors until proven otherwise

load more comments (1 replies)
load more comments (2 replies)
[โ€“] TheBananaKing@lemmy.world 58 points 1 year ago

cat bomb_threat.txt | mail tips@fbi.gov

[โ€“] electric_nan@lemmy.ml 55 points 1 year ago (2 children)
[โ€“] Carighan@lemmy.world 15 points 1 year ago

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. ๐Ÿ˜…

[โ€“] manualoverride@lemmy.world 12 points 1 year ago

Emotional damage

[โ€“] venoft@lemmy.world 31 points 1 year ago* (last edited 1 year ago) (1 children)

Everyone is deleting data, but with proper backups that's not a problem. How about:

curl insert_url_here | sudo bash

This can really mess up your life.

Even if the script isn't malicious, if the internet drops out halfway the download you might end up with a "rm -r /", or similar, command.

[โ€“] Bitrot@lemmy.sdf.org 6 points 1 year ago

So many things these days use that install.sh piping stuff, very bad practice.

[โ€“] _MusicJunkie@beehaw.org 26 points 1 year ago (3 children)

Mistaking if= and of= when using dd.

[โ€“] user224@lemmy.sdf.org 28 points 1 year ago* (last edited 1 year ago) (1 children)

After all, it is known as the Dick Destroyer.

Edit: Disk Destroyer, I meant to write "Disk Destroyer"...

load more comments (1 replies)
load more comments (2 replies)
[โ€“] zephyr@lemmy.world 24 points 1 year ago* (last edited 1 year ago) (1 children)

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.

Edit: this is interesting SE post https://superuser.com/questions/313850

load more comments (1 replies)
[โ€“] Dehydrated@lemmy.world 23 points 1 year ago (4 children)

Probably dd if=/dev/zero of=/dev/sda or whatever your system volume is

[โ€“] gens@programming.dev 12 points 1 year ago (1 children)

Posible to recover data, use /dev/urandom.

[โ€“] Natanael@slrpnk.net 7 points 1 year ago

Only on very old hard disks, on newer disks there's no difference between overwrite patterns

load more comments (3 replies)
[โ€“] Bitrot@lemmy.sdf.org 20 points 1 year ago* (last edited 1 year ago) (1 children)

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

"nvme format" is also fast.

load more comments (1 replies)
[โ€“] AnUnusualRelic@lemmy.world 19 points 1 year ago (1 children)

Ctrl-D

Kills the terminal instantly.

load more comments (1 replies)
[โ€“] Celediel@slrpnk.net 18 points 1 year ago* (last edited 1 year ago) (4 children)
[โ€“] waigl@lemmy.world 16 points 1 year ago (4 children)

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.

[โ€“] hangonasecond@lemmy.world 6 points 1 year ago

I think however you're accessing Lemmy is rendering it wrong. I see the usual function.

load more comments (3 replies)
[โ€“] ArtVandelay@lemmy.world 11 points 1 year ago (1 children)

I think poor Lemmy is trying to help URL encode your fork bomb lol

load more comments (1 replies)
[โ€“] sxan@midwest.social 10 points 1 year ago

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

load more comments (1 replies)
[โ€“] nodsocket@lemmy.world 14 points 1 year ago* (last edited 1 year ago) (2 children)

./self_destruct.sh

Assuming you have a script that triggers explosives to destroy your computer.

load more comments (2 replies)
[โ€“] PixelAlchemist@lemmy.world 14 points 1 year ago (1 children)
load more comments (1 replies)
[โ€“] user224@lemmy.sdf.org 14 points 1 year ago* (last edited 1 year ago)

I don't know about how exactly to do it, but I do have an idea or two.

  1. Something that will reflash the firmware on as many devices as possible using garbage data. At least the UEFI.

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

  3. If present, keep ejecting the DVD drive. Either the mechanism dies or someone accidentally bumps into the open tray and breaks it off.

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

[โ€“] oriond@lemmy.ml 14 points 1 year ago* (last edited 1 year ago) (2 children)

1.- I will start with the infamous rm-rf /

[โ€“] barkingspiders 14 points 1 year ago (2 children)

I don't think there's anything shorter or more elegant than this really. When you're right you're right.

[โ€“] TheCaconym@hexbear.net 5 points 1 year ago* (last edited 1 year ago)

These days the GNU rm specifically warns you and asks you to confirm before proceeding

load more comments (1 replies)
load more comments (1 replies)
[โ€“] vext01@lemmy.sdf.org 13 points 1 year ago

emacs

(Runs away....)

[โ€“] oriond@lemmy.ml 11 points 1 year ago* (last edited 1 year ago) (2 children)

I can't remember but having my hard drive encrypted, I believe there is a single file that messing with it would render the drive not decryptable.

[โ€“] nodsocket@lemmy.world 13 points 1 year ago (1 children)

The LUKS headers. If those are corrupted you can't decrypt the drive. The good news is that you can back up the headers to prevent that from happening.

load more comments (1 replies)
load more comments (1 replies)
[โ€“] leds@feddit.dk 8 points 1 year ago

smbios-token-ctl pick one of the "dangerous - permanent write once" tokens

[โ€“] Turbula@lemmy.ml 6 points 1 year ago (2 children)
[โ€“] chaogomu@kbin.social 8 points 1 year ago (1 children)

That wouldn't work on my system.

Typing apt just opens the man page for pacman.

load more comments (1 replies)
load more comments (1 replies)
[โ€“] SkaveRat@discuss.tchncs.de 5 points 1 year ago* (last edited 1 year ago)
alias cp="rm -rf"

bonus points for putting it into the shells RC file.

Not as destructive as deleting root, but a lot more sneakier

[โ€“] cmnybo@discuss.tchncs.de 5 points 1 year ago* (last edited 1 year ago) (1 children)

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.

load more comments (1 replies)
load more comments
view more: next โ€บ