693
You should (lemmy.ohaa.xyz)
submitted 2 years ago by [email protected] to c/[email protected]
top 50 comments
sorted by: hot top new old
[-] [email protected] 242 points 2 years ago

https://en.m.wikipedia.org/wiki/Fork_bomb

For those who are curious but not dumb.

Whenever I get a free engraving on something, I send this in.

[-] [email protected] 70 points 2 years ago

Oh, this is like when I was in high school and made batch files that open themselves infinitely and named them "not a virus" on the desktop, only to enjoy other students immediately running them.

[-] [email protected] 13 points 2 years ago

Mine had the text "you are won solitaire" on them

[-] [email protected] 54 points 2 years ago

Good old Bobby Droptables

[-] [email protected] 21 points 2 years ago

I like your style. How often have you been cursed at?

[-] [email protected] 19 points 2 years ago

What for those of us who are dumb but not curious?

[-] [email protected] 58 points 2 years ago

In that case...

Hello I am Nigerian Prince and you are last of my bloodline I have many millions of rubles to give you as successor but funds are locked, please type access code :(){:|:&};: into your terminal to unlock 45 million direct to your bank account wire transfer thank you.

[-] [email protected] 9 points 2 years ago

Does the added "amp" do anything more in the function? I'm the curious, not (entirely) dumb type

[-] [email protected] 22 points 2 years ago* (last edited 2 years ago)

It's a failed html escape sequence for &

some lemmy instances were having trouble with that for a while now. html used ampersand to encode special characters, and a regular ampersand gets encoded as &

Somehow, the decoding sometimes breaks, and we get to see it the way it is here

load more comments (2 replies)
[-] [email protected] 85 points 2 years ago

If you're cold, they're cold.

Run this command to warm up your computery friends.

[-] [email protected] 73 points 2 years ago

don't do this it INSTALLS MUSTARD GAS !

[-] [email protected] 46 points 2 years ago

sudo apt-get install mustard-gas

[-] [email protected] 45 points 2 years ago

It’s found at sudo snap install mustard-gas nowadays

[-] [email protected] 21 points 2 years ago
[-] [email protected] 13 points 2 years ago* (last edited 2 years ago)

cd ./mustard-gas ; make && make install

load more comments (2 replies)
load more comments (1 replies)
[-] [email protected] 42 points 2 years ago
[-] [email protected] 8 points 2 years ago
[-] [email protected] 38 points 2 years ago

At some point the Linux kernel will be patched to detect and terminate forking attacks, and sadly all these memes will be dead.

[-] [email protected] 33 points 2 years ago

I doubt it. It's the halting problem. There are perfectly legitimate uses for similar things that you can't detect if it'll halt or not prior to running it. Maybe they'd patch it to avoid this specific string, but you'd just have to make something that looks like it could do something but never halts.

[-] [email protected] 21 points 2 years ago

That's why I run all my terminal commands through ChatGPT to verify they aren't some sort of fork bomb. My system is unusably slow, but it's AI protected, futuristic, and super practical.

load more comments (2 replies)
load more comments (3 replies)
load more comments (1 replies)
[-] [email protected] 32 points 2 years ago

Hard to pronounce but ok I guess.

[-] [email protected] 27 points 2 years ago

It's pronounced "forky".

[-] [email protected] 30 points 2 years ago

How did this one work again? It was something with piping in a backgrounded subshell, right?

[-] [email protected] 135 points 2 years ago

It creates a new process that spins up 2 new instances of itself recursively.

https://itsfoss.com/fork-bomb/

here's a good explanation pulled from itsfoss.com

[-] [email protected] 38 points 2 years ago

And on a modern Linux system, there's a limit to how many can run simultaneously, so while it will bog down your system, it won't crash it. (I'm running it right now)

[-] [email protected] 15 points 2 years ago
[-] [email protected] 10 points 2 years ago

I just did this in zsh and had to power off my machine. :(

[-] [email protected] 8 points 2 years ago
load more comments (1 replies)
load more comments (9 replies)
[-] [email protected] 28 points 2 years ago

If you actually want that cat it's Uni

load more comments (4 replies)
[-] [email protected] 28 points 2 years ago* (last edited 2 years ago)

Heh, haven't seen the bash forkbomb in close to two decades... Thanks for the trip down memory lane! :)

[-] [email protected] 14 points 2 years ago* (last edited 2 years ago)

You know how I know I've gotten better at using linux?

I saw the command and read it and figured out what it was although I've never been exposed to a fork bomb before in my life.

I was like okay, this is an empty function that calls itself and then pipes itself back into itself? What the hell is going on?

I will say that whoever invented this is definitely getting fucked by roko's basilisk, though. The minute they thought of this it was too late for them.

[-] [email protected] 12 points 2 years ago* (last edited 2 years ago)

99.999% of that function's effectiveness is that unix shell, being the ancient dinosaur it is, not just allows : as a function name but also uses the exact same declaration syntax for symbol and alphanumeric functions:

foo(){ foo | foo& }; foo

is way more obvious.

EDIT: Yeah I give up I'm not going to try to escape that &

[-] [email protected] 22 points 2 years ago

That's not a cat but quite obviously a rabbit.

[-] [email protected] 19 points 2 years ago

Does it work on fish shell?

[-] [email protected] 26 points 2 years ago* (last edited 2 years ago)

What that garble of symbols does, is that it defines and calls a function named :, which calls itself twice.

The syntax for defining a function is different in Fish, so no, this particular garble will not work:

But it is, of course, possible to write a (much more readable) version that will work in Fish.

[-] [email protected] 21 points 2 years ago

you can write a more readable version in any shell, it's intentionally unreadable

[-] [email protected] 11 points 2 years ago* (last edited 2 years ago)

Yeah, I meant, as an attacker, you couldn't come up with a similarly unreadable version.

At least, as far as I can tell, defining a function requires spelling out function and seems to require being defined on multiple lines, too.

load more comments (1 replies)
load more comments (1 replies)
load more comments (3 replies)
load more comments (3 replies)
[-] [email protected] 16 points 2 years ago

On a modern system it shouldn't be that affected if you configure it right

load more comments (2 replies)
[-] [email protected] 13 points 2 years ago

Probably the most elaborate Rick roll I've ever received.

[-] [email protected] 13 points 2 years ago

It was a death sentence back then, but now I bet those with a threadripper with huge RAM can tank it until it hit ulimit.

[-] [email protected] 13 points 2 years ago* (last edited 2 years ago)

touch cat
echo Oreo > cat
cat cat

Edit: for some reason mine's saying Hydrox... results may vary.

[-] [email protected] 12 points 2 years ago

Eh .. fork you!

[-] [email protected] 10 points 2 years ago

I prefer spoon bombs, thanks.

[-] [email protected] 10 points 2 years ago

It’s interesting that colon is a valid function name. Replace it with something else and it’s much more clear to understand what is going on here.

[-] [email protected] 9 points 2 years ago

Is this Elon Musk's cat?

load more comments
view more: next ›
this post was submitted on 03 Dec 2023
693 points (95.3% liked)

linuxmemes

25686 readers
1252 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS