Hack Forums
[TUT]Send a fake email from any domain (i.e spoof the sender address)[Code included!] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: [TUT]Send a fake email from any domain (i.e spoof the sender address)[Code included!] (/showthread.php?tid=776354)

Pages: Pages 1 2


[TUT]Send a fake email from any domain (i.e spoof the sender address)[Code included!] - -Vector- - Oct 29, 2010

Here's a really simple script written in PHP (and should work on any host that supports PHP) that allows you to send an email to anyone from any domain (i.e. fake the sender address). The servers you use will determine the time it takes to reach the target user, and whether or not it ends up in spam.

PHP Code

<?php
$to
="enter target email address";
$subject="Enter subject";
$msg="Enter message. Use \n for line indentations.\n";
$msg.="This is the second line in the message.\n";
$msg.="This is the third line in the message";
$from="Enter the domain you want to impersonate e.g. [email protected]";
$header="From: ".$from; //ignore this
$r=mail($to,$subject,$msg,$header);
if (
$r==true) {
  echo 
"Mail successfully sent";
} else {
  echo 
"Delivery failed";
}
?>

I haven't debugged the code, but it should work. Note, this does not have a GUI, that's up to you to make. It can still be functional without a GUI, just that you have to edit the code every time you want to send another message.

If enough interest is shown, I can expand the tutorial and show how to make a mass spammer from this, and create a working example :D


* - thechamptmb1 - Oct 29, 2010

omg thx and looking forward to ur mass mailer


* - -Vector- - Oct 29, 2010

No problem, I'll create it when I have time :P


* - Vaflis404 - Oct 29, 2010

Old one but nice share.
TOO SHOOORTY


* - Invincible - Oct 29, 2010

it's been around for ages dude.
but thanks anyways.


* - Xerotic - Oct 29, 2010

Been here awhile. Make one with a GUI and email bomber (spoofing as well).


* - liarbasu - Oct 29, 2010

Added : It won't run on most of the free sites as sendmail() function is not on in there.

So you've to find one server that allows.


* - ibot3 - Oct 29, 2010

Thanks, cant wait for the mass mailer tutorial :D


* - lolled - Oct 29, 2010

thanks, looks nice =D

tofreakingshort


* - Ethics - Oct 29, 2010

old skool trick... but glad its still working... good share friend.... it will help many ... goodluck


* - -Vector- - Oct 29, 2010

Lol, I think everyone agrees this will be much more useful with a GUI interface and more options, including a mass bomber :D
I'll go create one then :)


* - JAEMAEJOR - Nov 2, 2010

OR YOU CAN GO TO http://emkei.cz/ and send it from there and even attach files. ENJOY GUYS!

FOLLOW ME @IAMJAYST0RM


* - -Vector- - Nov 2, 2010

Wow way to go to advertise your shit on my TUTORIAL thread. In case you haven't noticed, I made this open sourced so other members can develop their own application. LQP GTFO.


* - JAEMAEJOR - Nov 4, 2010

lmao really i was just sayin dont hate im not advertising my shit i get enough hits not to advertise on your wack ass tut. as to you "LQP GTFO" i say hi hater


* - munnabhaiu - Nov 28, 2010

this code is not working I tested.