PHP Mail Spoofer
PHP Mail Spoofer
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)
ghost 19 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 19 years ago
using it without the php bit works too i used it when i re wrote the code and it works
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>
<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>
ghost 18 years ago
I can't find any hosts that allow me to do this. Geocities won't. Anyone know of one?
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 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 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 17 years ago
Parse error: syntax error, unexpected $end in /home/kayos/public_html/mailer.php on line 9
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 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…