Understanding Bash fork() Bomb :(){ :|:& };: code - nixCraft

Explains Linux / Unix bash fork() bomb :(){ :|:& };: which is a form of DoS attack against a Linux based computer and how to prevent fork bomb on Linux.

@nixCraft Is that some insider gag like e^(i ¶) + 1 = 0?
@herdsoft @nixCraft yes! really funny! dont run it in your termial tho

@herdsoft

It's called a fork bomb. Run it from a shell and watch your system grind itself into the ground.

@nixCraft

@mackaj @nixCraft I understand what it does if you are so silly so as to type it into a bash prompt. As I understand e^(i ¶) + 1 = 0. I just don't seem understand why this is funny.

A younger work colleague told me he was tricked into entering "format c:" into his fathers DOS PC as a juvenile. I believe that sounds funnier than it was.

My first recognition of the idea of a fork bomb was an OCL36 script with two EVOKE calls to itself on a system /36 in 1987.

@herdsoft

I found it funny because a WiFi SSID is the last place I'd expect to find it. And it also says something about the mischievous / impish nature of the person who set it 🙂

@nixCraft

@herdsoft @mackaj @nixCraft i assume some poorly designed network menus will put the name into a network configuration command in an sql injection-like way that triggers it.
@nixCraft
warning: its working on android with termux. Do not try with your phone!

@nixCraft I keep seeing memes about the fork bomb and not to run it.

Wasn't this mitigated at kernel level at some point? How come it's still crashing devices?

Casablanca (film) - Wikiquote