Follow us on Twitter!
The important thing is not to stop questioning. - Albert Einstein
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 28
Guests Online: 22
Members Online: 6

Registered Members: 82895
Newest Member: kevy90
Latest Articles

PHP Mail Spoofer

Arrow Image Anonymous Emailer in PHP



Ok. Before we start you should know about the mail() function in PHP and what it does other wise you should just be able to pick it up in this Article.

So to begin with we want to create the form right? Right. so.
Depending on what you prefer for the method POST or GET is good

<form method=\"post\" action=\"mailer.php\">
To:<input type=\'text\' name=\'to\'><br />
From:<input type=\'text\' name=\'from\'><br />
Subject:<input type=\'text\' name=\'subject\'><br />
Message:<br />
<textarea rows=\"5\" columns=\"40\" name=\"message\"></textarea><br />
<input type=\"submit\" name=\"submit\" value=\"send it\">
</form>

Ok so that finishes the form now for the easy part ;p the PHP
<? //Starts PHP
$to = $_POST[\'to\'];
$from = $_POST[\'from\'];
$subject = $_POST[\'subject\'];
$message = $_POST[\'message\'];
mail(\"$to\", \"$subject\" ,
\"$comments $url\" ,
\"From: $email);
//Line below ends PHP
?>
There you have it a PHP anonymous emailer Enjoy! (any bugs leave a comment)

Comments

Darth_Pengoon June 05 2005 - 00:41:50
err i thought i fixed the form oh well.. i'll re submit maybe..
wolfmankurdon June 05 2005 - 13:22:27
Doesnt work lol
dyzlexikon June 05 2005 - 17:23:04
Dude I cant get this to work
accoon June 08 2005 - 04:35:46
did you people open the PHP tag with a <?php then type $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['subject']; $message = $_POST['message']; mail("$to", "$subject" , "$comments $url" , "From: $email); //Line below ends PHP ?> if you did type it and it dosent work then ok. you aren't idiots.
Darth_Pengoon June 12 2005 - 06:47:30
using it without the php bit works too i used it when i re wrote the code and it works
BlackAce227on June 23 2005 - 23:44:12
i couldnt get it to work either. Shock
aenman123on November 17 2005 - 03:04:19
it dosent send the mail
Pepeon November 23 2005 - 01:59:38
So if I upload this to a server that does PHP, then it'll work? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN"> <html> <head> <title>Mail Spoofer</title> </head> <body> <form method="post" action="mailer.php"><br /> To:<input type='text' name='to'><br /><br /> From:<input type='text' name='from'><br /><br /> Subject:<input type='text' name='subject'><br /><br /> Message:<br /><br /> <textarea rows="5" columns="40" name="message"></textarea><br /><br /> <input type="submit" name="submit" value="send it"><br /> </form> <?php $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['subject']; $message = $_POST['message']; mail("$to", "$subject" , "$comments $url" , "From: $email); //Line below ends PHP ?> </body> </html>
Pepeon November 23 2005 - 02:04:58
sorry, that was dumb, I've got it now Pfft
Pepeon November 23 2005 - 02:06:31
I can't find any hosts that allow me to do this. Geocities won't. Anyone know of one?
Pepeon November 23 2005 - 02:18:18
http://www.hestersway.pwp.blueyonder.co.uk/baptist/msp.html I've put it up there, along with mailer.php Can someone please explain what I've done wrong and why it doesn't work?
dexxa9on December 14 2005 - 21:11:50
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN"> <html> <head> <title>Mail Spoofer</title> </head> <body> <form method="post" action="mailer.php"><br /> To:<input type='text' name='to'><br /><br /> From:<input type='text' name='from'><br /><br /> Subject:<input type='text' name='subject'><br /><br /> Message:<br /><br /> <textarea rows="5" columns="40" name="message"></textarea><br /><br /> <input type="submit" name="submit" value="send it"><br /> </form> <?php $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['subject']; $message = $_POST['message']; mail("$to", "$subject" , "$comments $url" , "From: $email); //Line below ends PHP ?> </body> </html> i saved this as mail.html but when i run it it says it cannot find mailer.php. plaese explain thanks adam
Darth_Pengoon January 16 2006 - 03:16:05
People that cant get this to work save it as 'mailer.php' or if you change the name change it in the <form> tag as well
Kayoson December 24 2006 - 05:57:52
Parse error: syntax error, unexpected $end in /home/kayos/public_html/mailer.php on line 9
Der Heiligenon March 21 2007 - 21:47:07
Eh-hem, I think I know what some of you are doing. First of all, you put the form in some html file called whatever.html, then you put the php in mailer.php or whatever else you put the action as, then it should work. You can't have the stuff on the same page if you leave the code as is. So use one page for the form, and one page for the php, and hopefully it'll work then. Smile
kocdorianon April 28 2007 - 13:35:08
"From: $email); You're missing a bracket -_-
heftyon January 05 2008 - 19:53:50
Not anonymous...User can still find your ip, no point in spoofing big businesses like hotmail since the admin can get your ip...
Post Comment

Sorry.

You must have completed the challenge Basic 1 and have 100 points or more, to be able to post.