Important alert: (current site time 7/15/2013 9:08:02 PM EDT)
 

VB icon

Anonymous E-Mail Send

Email
Submitted on: 8/22/2002 5:54:13 AM
By: TonikGin 
Level: Beginner
User Rating: By 8 Users
Compatibility: 5.0 (all versions), Active Perl specific, 4.0 (all versions), 3.0 (all versions), Pre 3.0
Views: 27502
 
     Sends e-mail 'anonymously' to another user. By anonymous, i mean that your IP is still in the header, but you can make the e-mail address make it look like it was from ANYONE! (eg. georgebush@whitehouse.gov) You CAN hide yoru IP, but your going to have to find a mailserver that will let you do that ;)

 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
=**************************************
= Name: Anonymous E-Mail Send
= Description:Sends e-mail 'anonymously' to another user. By anonymous, i mean that your IP is still in the header, but you can make the e-mail address make it look like it was from ANYONE! (eg. georgebush@whitehouse.gov) You CAN hide yoru IP, but your going to have to find a mailserver that will let you do that ;)
= By: TonikGin
=
= Inputs:Mail server ($server), Who e-mail is from ($sender), Who to send the e-mail to ($recpt)
=
= Returns:Program returns status of e-mail sending as it progresses
=
= Assumes:None really.. look and learn =D
=
= Side Effects:none that i know of
=
=This code is copyrighted and has= limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=357&lngWId=6=for details.=**************************************

#! /usr/bin/perl
# Program to connect to mail server
# and send mail to a specified user
# Pray to god this works
use IO::Socket; #tell perl to use IO *Input Output) Internet Socket
if (!$ARGV[2]) { #if nothign is entered, start this routine
print "Program intended to send mail anonymously\n"; #message to user
print "Usage: perl anonsend.pl [server] [sender] [recepient]\n"; #more message =)
exit; # finish this routine
} #end this routine
# Time to define some variables!
$server = $ARGV[0]; # what server to use to send the mail
$sender = $ARGV[1]; # who the e-mail is from
$recpt = $ARGV[2]; # who the e-mail is to
{ # start new routine 
print"Type message to send: "; #asks user for message
$message = <STDIN>; # saves the input as string message
$remote = IO::Socket::INET->new( PeerAddr => "$server", Proto => "tcp", PeerPort => "25");
print "Connecting...\n"; # update user with status
sleep(1);# tells program to stop and wait
print $remote "HELO computer\n"; # telling mailserver hello
sleep(1); 
print "Sending E-Mail Header Information\n"; # update user with status again
print $remote "MAIL FROM: $sender\r\n"; # Tells server who mail is spoofed from
sleep(1);
print $remote "RCPT TO: $recpt\n"; # Tells server who to send the email to
sleep(1); 
print $remote "DATA\n"; # Tells server to start process off receiving our email message
sleep(1);
print "Sending Message\n"; # Update user of status again
print $remote "$message\n"; # Sends the string we entered earlier into the server
sleep(1);
print $remote ".\n"; # Tells SMTP server to stop receiving data, and send message
sleep(1);
print "Anonymous E-Mail Sent!\n"; # tells user program is finished
exit; # stop this subroutine
}


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
8/22/2002 6:11:19 AMRobert Wolfe

6 ppl have looked at this, and no votes? Com'on ppl.. gimme a sympathy vote at least! =D
(If this comment was disrespectful, please report it.)

 
9/11/2002 11:55:28 AM

Just what possible legitimate use would this have. Sure, nice code, works, but for what purpose other then to spam ppl.
(If this comment was disrespectful, please report it.)

 
2/27/2003 11:05:59 AMserpent

no it might not be for spamming u might want to just send an email to some1 and pretend it was from som1 else as a jok
(If this comment was disrespectful, please report it.)

 
2/27/2003 11:06:26 AMserpent

very nice code and i like the idea

(If this comment was disrespectful, please report it.)

 
3/23/2003 4:32:22 AM

Can i use LOCALHOST for $server?
i have my own webserver, and this looks nice!

if you could, email me the answer:
webmaster@neester.com
(If this comment was disrespectful, please report it.)

 
3/23/2003 4:33:41 AM

actually...
pfft dont worry.
i have a much easier way :D
(If this comment was disrespectful, please report it.)

 
3/22/2004 8:29:51 PM

very excellent code, i find it very useful fo0r practical jokes and to edit my email adress to whatever i feel. Very good code, but very messy to transport so ican use it ;)
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.