Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

PHP Mail Spoofer


PHP Mail Spoofer

By ghostghost | 6375 Reads |
0     0

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

Ok so that finishes the form now for the easy part ;p the PHP

There you have it a PHP anonymous emailer Enjoy! (any bugs leave a comment)

Comments
ghost's avatar
ghost 18 years ago

err i thought i fixed the form oh well.. i'll re submit maybe..

ghost's avatar
ghost 18 years ago

Doesnt work lol

ghost's avatar
ghost 18 years ago

Dude I cant get this to work

ghost's avatar
ghost 18 years ago

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.

ghost's avatar
ghost 18 years ago

using it without the php bit works too i used it when i re wrote the code and it works

ghost's avatar
ghost 18 years ago

i couldnt get it to work either. :o

ghost's avatar
ghost 18 years ago

it dosent send the mail

ghost's avatar
ghost 18 years ago

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>

&lt;head&gt;
	&lt;title&gt;Mail Spoofer&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

<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 ?>

&lt;/body&gt;

</html>

ghost's avatar
ghost 18 years ago

sorry, that was dumb, I've got it now :p

ghost's avatar
ghost 18 years ago

I can't find any hosts that allow me to do this. Geocities won't. Anyone know of one?

ghost's avatar
ghost 18 years ago

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?

ghost's avatar
ghost 18 years ago

<!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

ghost's avatar
ghost 18 years ago

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

ghost's avatar
ghost 17 years ago

Parse error: syntax error, unexpected $end in /home/kayos/public_html/mailer.php on line 9

ghost's avatar
ghost 17 years ago

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. :)

ghost's avatar
ghost 17 years ago

"From: $email); You're missing a bracket -_-

ghost's avatar
ghost 16 years ago

Not anonymous…User can still find your ip, no point in spoofing big businesses like hotmail since the admin can get your ip…