Jump to content

Email prank thing


god0fgod

Recommended Posts

I have this script that sends anonymous emails. It worked until i added the super spam mode. I'm not good with php by the way.

 

Here is both my html file (with the form) and my php file (does the work):

 

HTML:

<head>
<!--[if !mso]>
<style>
v\:*         { behavior: url(#default#VML) }
o\:*         { behavior: url(#default#VML) }
.shape       { behavior: url(#default#VML) }
</style>
<![endif]-->
<link rel="File-List" href="email_files/filelist.xml">
<!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]-->
</head>

<body link=blue vlink="#660099" bgcolor="#4C94FF" style='margin:0'>
<form action="simple.php" method="post">
<font face= "arial" size = "2">Fake email address:</font> <input type="text" name="fake"><p><br>
<font face= "arial" size = "2">E-mail: </font><input type="text" name = "email"></p>
<p style="word-spacing: 0px; margin-bottom: -1px"><!--[if gte vml 1]><v:shapetype id="_x0000_t202"
coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
<v:stroke joinstyle="miter"/>
<v:path gradientshapeok="t" o:connecttype="rect"/>
</v:shapetype><v:shape id="_x0000_s1025" type="#_x0000_t202" style='position:absolute;
left:-51.75pt;top:57.75pt;width:260.25pt;height:31.5pt;z-index:1' filled="f"
fillcolor="none" stroked="f" strokecolor="none">
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
	<td align="center"><font face="Arial" size="1">The victims email address 
	goes here.</font></td>
</tr>
</table>
</v:textbox>
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:-69px;top:77px;width:351px;height:46px'><img width=351
height=46 src="email4_files/image001.gif"
alt="Text Box: The victims email address goes here.&#13;&#10;" v:shapes="_x0000_s1025"></span><![endif]><!--[if gte vml 1]><v:shape
id="_x0000_s1026" type="#_x0000_t202" style='position:absolute;left:-19.5pt;
top:12.75pt;width:260.25pt;height:31.5pt;z-index:1' filled="f" fillcolor="none"
stroked="f" strokecolor="none">
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%" id="table1">
<tr>
	<td align="center"><font face="Arial" size="1">The victim should see 
	this, not you, as the email sender.</font></td>
</tr>
</table>
</v:textbox>
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:-26px;top:17px;width:351px;height:46px'><img width=351
height=46 src="email4_files/image002.gif"
alt="Text Box: The victim should see this, not you, as the email sender.&#13;&#10;"
v:shapes="_x0000_s1026"></span><![endif]><br><font face="Arial" size="2">
Subject:</font><input type="text" name = "subject"></p>
<p style="word-spacing: 0px; margin-bottom: -1px"><br>
<u><font face="arial" size="2">Email:</font></u><br>
<textarea name="comments" rows="12" cols="50"></textarea><br> </p>
<INPUT TYPE=CHECKBOX NAME="spam">
<font face="Arial" size="2">click here for super spam mode!!! (WARNING. THIS 
COULD GET YOU IN TROUBLE!!!!)</font><p>
<input type="submit" value="Submit"></p>
</form>
</body>
</html>

 

PHP:

<?
$email=$_POST['fake'];
$subject=$_POST['subject'];
$message=$_POST['comments'];
$to=$_POST['email'];
$message="$comments\n";
$spam=$_POST['spam'];
if ($spam == undefined || $spam == 0){
mail($to,$subject,$message,"From: $email\n");
}else{
$x = 1;
$y = 100;
while ($x < $y){
$x++;
mail($to,$subject,$message,"From: $email\n");
}
}
if(mail($to,$subject,$message,"From: $email\n")) {
echo "<font face=\"Arial\">Thanks for your comments.</font>";
} else {
echo "<font face=\"Arial\">There was a problem sending the mail. Please check that you filled in the form correctly.</font>";
}
?>
<body link=blue vlink="#660099" bgcolor="#4C94FF" style='margin:0'>
 <p><font face="Arial"><a href = /"http://www.godofgod.co.uk">RETURN</a></font></p>
</body>

 

I'm not using this for evil purposes and you can view it here - www.godofgod.co.uk/PHP/email.html

 

I didn't know what the checkbox would return so i used undefined and 0 as when it is unchecked.

Link to comment
https://forums.phpfreaks.com/topic/55453-email-prank-thing/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.