lemmy.ohaa.xyz

AeonFelis, to linuxmemes in You should

Is this Elon Musk’s cat?

possiblylinux127, to linuxmemes in You should

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

Bizarroland,
@Bizarroland@kbin.social avatar

Sudo fuck my system. There. Got it.

possiblylinux127,

You laugh but you can configure a hard limit on forks.

CosmicTurtle, to linuxmemes in You should

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

MonkderZweite, to linuxmemes in You should

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

huginn,

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

itsfoss.com/fork-bomb/

here’s a good explanation pulled from itsfoss.com

cupcakezealot,
@cupcakezealot@lemmy.blahaj.zone avatar

tom jones lesser known single

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

Goodness, gracious, fork bomb in bash

hexabs,

Thanks friend. One question, is it necessary to pipe to itself? Wouldnt : & in the function body work with the same results?

itslilith, (edited )
@itslilith@lemmy.blahaj.zone avatar

I may be wrong, but you could use : &;: & as well, but using the pipe reduces the amount of characters by two (or three, counting whitespace)

kablammy, (edited )

That would only add one extra process instance with each call. The pipe makes it add 2 extra processes with each call, making the number of processes grow exponentially instead of only linearly.

Edit: Also, Im not at a computer to test this, but since the child is forked in the background (due to &), the parent is free to exit at that point, so your version would probably just effectively have 1-2 processes at a time, although the last one would have a new pid each time, so it would be impossible to get the pid and then kill it before it has already replaced itself. The original has the same “feature”, but with exponentially more to catch on each recursion. Each child would be reparented by pid 1, so you could kill them by killing pid 1 i guess (although you dont want to do that… and there would be a few you wouldn’t catch because they weren’t reparented yet)

MonkderZweite,

Thanks, nice Infographic!

huginn,

Not mine, grabbed it from the link, but it’s a great explanation!

cashews_best_nut,

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

AnarchistsForDemocracy,
@AnarchistsForDemocracy@lemmy.world avatar

does this constitute a quine? I wrote a couple quines using bash but nothing as elegant as this

hikaru755, (edited )
@hikaru755@feddit.de avatar

Maybe I’m missing something, but I think this doesn’t print or otherwise reproduce its own source code, so it’s not a quine afaict.

AnarchistsForDemocracy,
@AnarchistsForDemocracy@lemmy.world avatar

thank you,

MacNCheezus,
@MacNCheezus@lemmy.today avatar

Correct. A quine is a program that prints its own source code. This one doesn’t print anything.

KISSmyOS,

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)

TheWoozy,

man ulimit

bighatchester, to linuxmemes in You should

Should I try this in a VM ?

Oha, (edited )

only thing this command does is slowly killing your pc

baatliwala, to linuxmemes in You should

If you actually want that cat it’s Uni

dream_weasel, to linuxmemes in You should

Hard to pronounce but ok I guess.

ultra,

It’s pronounced “forky”.

Sprokes, to linuxmemes in You should

Does it work on fish shell?

Public_Tumbleweed,

There is only 1 way to find out

auf,

and nushell?

dukk,

Doesn’t work in nushell, function syntax is different.

Probably still possible, just written differently.

Knusper, (edited )

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:
https://feddit.de/pictrs/image/65a6bb53-312f-401a-8823-ba94ada93433.png

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

ReveredOxygen,
@ReveredOxygen@sh.itjust.works avatar

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

cashews_best_nut,

Unfortunately it works in zsh. I just had to kill my laptop after curiosity got the better of me.

Knusper, (edited )

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.

ReveredOxygen,
@ReveredOxygen@sh.itjust.works avatar

Oh, I see. That’s very nice then

affiliate,

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

the gentleman hacker

Karyoplasma,

The ampersand looks very weird in that font. It would bug me.

Knusper, (edited )

It hails back to the early days of the ampersand, from when it was basically still just Latin “et”: https://commons.wikimedia.org/wiki/File:Trebuchet_MS_ampersand.svg

Personally, I do like this font (Fira Mono+Sans), because it still looks professional, without being so boring that I get depression from looking at it.
But yeah, that ampersand is pushing it a bit, as I’m not sure everyone else knows that’s an ampersand…

Ooops, to linuxmemes in You should
@Ooops@kbin.social avatar

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

savvywolf, to linuxmemes in You should
@savvywolf@pawb.social avatar

If you’re cold, they’re cold.

Run this command to warm up your computery friends.

Manifish_Destiny, to linuxmemes in You should

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.

eating3645,

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

Pyroglyph,
@Pyroglyph@lemmy.world avatar

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.

MrShankles,

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

itslilith, (edited )
@itslilith@lemmy.blahaj.zone avatar

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

eating3645,

😂

WeLoveCastingSpellz,

What if I am dumb but not greedy?

caseyweederman,

Good old Bobby Droptables

LetterboxPancake,

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

Flax_vert,

Does this damage the computer? Or can it be fixed with a restart

hglman,

You just have to restart somehow.

acockworkorange,

Invoke Palpatine to restart somehow.

WhiskyTangoFoxtrot,

Execute order shutdown -r now?

MacNCheezus,
@MacNCheezus@lemmy.today avatar

No, it’ll just lock it up but shouldn’t cause any damage or data loss unless you have unsaved work open. A restart should fix it.

ABeeinSpace,

No. The effects of a fork bomb are temporary and are fixed with a restart

Cyv_,
@Cyv_@kbin.social avatar

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.

HeyThisIsntTheYMCA,
@HeyThisIsntTheYMCA@lemmy.world avatar

Mine had the text “you are won solitaire” on them

ShunkW, to linuxmemes in You should

I ty…

phorq, (edited ) to linuxmemes in You should

touch cat
echo Oreo > cat
cat cat

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

vankappa, to linuxmemes in You should

don’t do this it INSTALLS MUSTARD GAS !

auf, (edited )

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

TheWoozy,
pewgar_seemsimandroid,

appimage?

ultra,

nix run nixpkgs#mustard-gas

konalt,
@konalt@lemmy.world avatar

sudo apt-get install mustard-gas

magic_lobster_party,

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

TheGreenGolem,

NO

bort, to memes in I want to believe
outer_spec,
@outer_spec@lemmy.blahaj.zone avatar

It turns out that there was actually a lot of time that already happened before the dark ages

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #