Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Sending Mail Via Telnet, mail commands for telnet
mastercomputers
post Mar 10 2005, 07:10 AM
Post #1


BUG.SWAT.PATROL
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



This is just the basics of sending email using telnet. First you'll need to find a SMTP server that you can telnet into, me, I'm using my localhost server for this. So here's the commands prefixed with a $:

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Thu 10 Mar 2005 20:02:09 +1300
$ HELO localhost.localdomain
250 localhost.localdomain Hello localdomain [127.0.0.1], pleased to meet you
$ MAIL FROM: from_who@domain.com
250 2.1.0 from_who@domain.com... Sender ok
$RCPT TO: to_who@domain.com
250 2.1.5 to_who@domain.com... Recipient ok
$ DATA
354 Enter mail, end with "." on a line by itself
$ Subject: subject goes here
$
$ Message goes here and ends with a dot
$ .
250 2.0.0 <some random message ID> Message accepted for delivery
$ QUIT
221 2.0.0 localhost.localdomain closing connection
Connection closed by foreign host.

Remember the $ signs are not included and just mark when the commands you enter happen.
The other shown messages, are the usual OK messages produced by the SMTP to say everything is ok, and going correctly.

You can also use this method, by using PHP sockets, so you can connect to an SMTP server, pass the commands, and hopefully the mail will be checked. PHP Mail function maybe easier to use though.

Subject: needs two enters after it, to be valid else it won't work. e.g. Subject: this subject\n\n

Once you've finished with the DATA you end it with a single dot on a line by itself and that's it, quit the connection and it'll be sent.

Cheers,


MC
Go to the top of the page
 
+Quote Post
jipman
post Mar 10 2005, 03:19 PM
Post #2


Pretty please?
Group Icon

Group: Members
Posts: 733
Joined: 28-November 04
From: Holland
Member No.: 1,552



Dude, if you can find a smtp server which allows you to do that, you're good, because almost every server has disabled that sort of thing.
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Mar 11 2005, 07:53 AM
Post #3


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



Not really.. you can mess around with your ISP's SMTP server - it will work for sure if your ISP gives out SMTP access to all its users. In fact as long as you connect to the SMTP server through your ISP's connection - there's a major fun thing that you can do: Set your originating email address to WHATEVER YOU WANT. i.e., you can have a lot of fun sending an email to your friend from say: me@whitehouse.gov ... lol.. i mean ANY address you care to type in after that MAIL FROM: <address> part.

When I'd learnt this trick I used to send mails to my friends stating their own address as the originating address. That way I convinced quite a few of them that I'd actually hacked into their mailbox and sent a mail to them from their own account. Lol.... biggrin.gif biggrin.gif biggrin.gif It sounds real stupid now (this was almost 10 yrs back) - but it DID manage to fool quite an impressive bunch wink.gif
Go to the top of the page
 
+Quote Post
jipman
post Mar 11 2005, 12:05 PM
Post #4


Pretty please?
Group Icon

Group: Members
Posts: 733
Joined: 28-November 04
From: Holland
Member No.: 1,552



tongue.gif.

If i want to spoof around i usually get myself an smtp account and use my own built mail spoofer with it wink.gif.

What age are you anyway M^E ?

I'm 17 smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics


 



- Lo-Fi Version Time is now: 30th August 2008 - 09:50 AM