this one-liner will crash your system

Sdílet
Vložit

Komentáře • 15

  • @Dan-vu3vt
    @Dan-vu3vt Před 20 dny +12

    Making that function more readable is an awesome way of teaching what it does.

  • @boas_
    @boas_ Před 20 dny +8

    So basically a nuclear bomb

  • @keshamix_
    @keshamix_ Před 20 dny +1

    Greta video, honestly. Well-spoken, confident, nice editing. Wish you look at growing big

  • @matthewperiut7508
    @matthewperiut7508 Před 20 dny +1

    Tested it on my macbook which is bsd based, and surprisingly there was a level of protection, so it didn't crash my system interestingly enough! Great video!

  • @pinkcreeper100
    @pinkcreeper100 Před 20 dny +4

    iirc most distros using systemd mitigate forkbombs by setting a ulimit

    • @MalwareCube
      @MalwareCube  Před 20 dny +1

      Yep, you can set limits on systemd unit files, and you can also set a ulimit to a smaller value in login scripts.

  • @Markadown
    @Markadown Před 20 dny +1

    This was pretty cool.

  • @ismu123_aka_best_player_of_mc

    why no comments man

  • @nikhils7583
    @nikhils7583 Před 20 dny +1

    This was nice.😅

  • @W0lfCL
    @W0lfCL Před 20 dny

    I don't get why there's a pipilne there. Like I always thought that command1 | command2 redirects the output of the command1 to the input of the command2
    Why is it :|: and not something like :&&: ???

    • @MalwareCube
      @MalwareCube  Před 20 dny +3

      Great question, and you're correct about the pipe. In this case, the actual data or output being passed through the pipe is not used. If a process takes nothing into stdin, you can still pipe to it. Using && would make the second call dependent on the successful completion of the first call, and so the pipe is used to execute both recursive calls in parallel without conditions. To your point, ":(){ :&:; }; :" will also work in most cases.

    • @W0lfCL
      @W0lfCL Před 19 dny +1

      @@MalwareCube thx for making this clear

  • @zaj5924
    @zaj5924 Před 20 dny +3

    Why make it so unnecessarily complex? Just keep it simple and run "make -j"

  • @JarppaGuru
    @JarppaGuru Před 15 dny

    one liner admin is better