Important alert: (current site time 7/15/2013 9:27:28 PM EDT)
 

VB icon

Anonymous Mailer (Rev. 2)

Email
Submitted on: 8/24/2002 10:19:23 AM
By: TonikGin 
Level: Beginner
User Rating: By 3 Users
Compatibility: 5.0 (all versions), Active Perl specific, 4.0 (all versions), 3.0 (all versions), Pre 3.0
Views: 10421
 
     sends e-mail spoofed from any domain! the last one i submitted, everythign had to be on one line. this new revison, simplifies everything, asking the user each field seperately. also supports a subject in the e-mail now =D
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
=**************************************
= for :Anonymous Mailer (Rev. 2)
=**************************************
free to use for anyone! =D
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 Mailer (Rev. 2)
= Description:sends e-mail spoofed from any domain! the last one i submitted, everythign had to be on one line. this new revison, simplifies everything, asking the user each field seperately. also supports a subject in the e-mail now =D
= By: TonikGin
=
= Inputs:mail server, recepient, sender, subject, and message.
=
= Returns:status of connecting
=
= Assumes:no error handling, one day i'll learn how though =D
=
= Side Effects:program only checks to see if mail server exits, and if it has port 25 open (smtp port), then it goes about it's business. no real error handling.
=
=This code is copyrighted and has= limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=363&lngWId=6=for details.=**************************************

#! /usr/bin/perl
# Program to connect to mail server
# and send mail to a specified user
# Robert Wolfe 8-24-2002
# Pray to god this works
###################################
use IO::Socket;
if (!$ARGV[0]) { 
print "Program intended to send mail anonymously\n";
print "Usage: perl $0 [server]\n";
exit; # finish this routine
}
# Time to define some variables!
$server = $ARGV[0]; # what server to use to send the mail
{ 
print"Senders E-Mail Address: ";
$sender = <STDIN>;
print"Receipents E-Mail Address: ";
$recpt = <STDIN>;
print"Subject: ";
$subject = <STDIN>;
print"Type message to send: ";
$message = <STDIN>;
$remote = IO::Socket::INET->new( PeerAddr => "$server", Proto => "tcp", PeerPort => "25") || die "[Unable to Connect!]\n";;
print "Connecting...\n";
sleep(1);
print $remote "HELO computer\n";
sleep(1); 
print "Sending E-Mail Header Information...\n";
print $remote "MAIL FROM: $sender\r\n"; 
sleep(1);
print $remote "RCPT TO: $recpt\n"; 
sleep(1); 
print $remote "DATA\n"; 
sleep(1);
print "Sending Message...\n";
print $remote "Subject: $subject\n";
print $remote "$message\n";
sleep(1);
print $remote ".\n";
sleep(1);
print "Anonymous E-Mail Sent!\n";
exit;
}


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/29/2002 8:33:53 AMSerge

Look here for a list with many other nice message headers.
(If this comment was disrespectful, please report it.)

 
7/28/2006 3:24:20 PMNice

great work!

code is a little messy though
(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.