• TabbsTheBat (they/them)@pawb.social
      link
      fedilink
      English
      arrow-up
      27
      ·
      23 天前

      If you’re referring to the cat, it’s a fork bomb. IIRC your system should realize what’s going on and terminate the process before your PC commits seppuku, unless your system is really old. Either way I wouldn’t recommend running it

      • atomicbocks@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        11
        ·
        23 天前

        A similar attack used to be able to be done in Windows by creating a batch file that calls itself at the end.

        We used to do it where it would open the command prompt several times and then call itself, so after a couple seconds you would have dozens or hundreds of command prompt windows opening. On a system that only had 128 megs of RAM it didn’t take long for the system to become unresponsive.

          • atomicbocks@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            22 天前

            Pulling the script out of the vague recesses of my brain, what we did was more like:

            ECHO pwned!
            start /c start.bat
            start /c start.bat
            start /c start.bat
            start.bat
            

            Then make a shortcut, call it Internet Explorer with the blue E, and wait.

            I also wrote a script that would create 1000 folders in your network drive and then change the owner so you couldn’t delete them. We used that one when people left their machine unlocked.

    • Junan@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      23 天前

      Curious if f(){;f|f&};f works in fish. The version in the image is bash specific, but iirc fish isn’t posix compliant so idk if posix version works

      • Parafaragaramus@infosec.pub
        link
        fedilink
        English
        arrow-up
        5
        ·
        23 天前

        Nope. Still doesn’t work.

        fish: command substitutions not allowed in command position. Try var=(your-cmd) $var ...
        f(){;f|f&};
         ^^
        
      • skrunkek@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        22 天前

        Fish has a more explicit syntax so we would need something like function :;:&;:&;end;: But sadly it notices and stops it

  • Junan@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    23 天前

    That’s actually a bashism (defining : as a function name). For maximum damage, use f(){;f|f&};f