155
submitted 10 months ago by oriond@lemmy.ml to c/asklemmy@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Celediel@slrpnk.net 21 points 10 months ago* (last edited 10 months ago)
[-] waigl@lemmy.world 17 points 10 months ago

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.

[-] _s0me_guy_@lemmy.ml 6 points 10 months ago

It's a lemmy problem

[-] hangonasecond@lemmy.world 6 points 10 months ago

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

[-] Cysioland@lemmygrad.ml 2 points 10 months ago

AFAIR a simple ulimit will work

[-] ArtVandelay@lemmy.world 12 points 10 months ago

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

[-] sxan@midwest.social 10 points 10 months 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."

[-] Saigonauticon@voltage.vn 2 points 10 months ago

Came here for this one. Not the most destructive, but certainly the most elegant.

this post was submitted on 30 Dec 2023
155 points (94.8% liked)

Asklemmy

43942 readers
659 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 5 years ago
MODERATORS