I think everyone already know how to send an email especially the conventional email, that is why I made this tutorial about how to send email using telnet in kali linux.
The way we sending email in this tutorial is a little different than sending email using Gmail or Yahoo, because we will try to sending email by using a command prompt or terminal.
Do not confused with the title How to send email using telnet in kali linux, because the telnet protocol was same for all operating system.
First, we need to know about what is SMTP. According to Wikipedia:
Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks. SMTP was first defined by RFC 821 (1982, eventually declared STD 10),[1] and last updated by RFC 5321 (2008)[2] which includes the Extended SMTP (ESMTP) additions, and is the protocol in widespread use today. SMTP uses TCP port 25.
Before we start:
Make sure we have access to a SMTP server. Usually when you subscribe the internet connection to ISP, they will give you access to their SMTP server or they give you one email address for you to use (In Indonesia some internet provider usually will give you 1 email account when you subscribe, that's my experience ). The good and also the bad thing is their SMTP(Simple Mail Transfer Protocol) server doesn't need an authentication if you are inside the ISP network.
Let's start the tips and trick
Step by step how to send email using telnet:
Below is the information I will use in this tips and trick:
SMTP server address: mail.vishnuvalentino.lan
SMTP server IP address: 192.168.160.174
SMTP port: 53
If you try this tutorial on windows 7 and your telnet client is disabled by default, you can enable it by read the tutorial how to enable telnet on windows 7.
1. In this tips and trick, the case is we are inside the ISP network. Let me show you the network topology where we do this.
We will do from client 1 because from this client we can send email anonymously.
2. From the intro we know that SMTP use port 25. Open the terminal or command prompt. and run the telnet command to connect to the mail server.
telnet mail.vishnuvalentino.lan 25
or
telnet 192.168.160.174 25
25 is the SMTP port, most of email server use this port to sending email.
3. Yes we can connect to that mail server(message 220). Now let's greet this mail server.
HELO mail.vishnuvalentino.lan
After we greet the mail server, we need to make sure that the server replying 250 or OK
4. After get reply message 250 from the mail server, we can start define the email sender and email recipient.
MAIL FROM: hacking-tutorial@vishnuvalentino.lan
if the sender was OK, it should replied 250.
The next step is create the recipient.
RCPT TO: v4l@vishnuvalentino.com
This recipient also should return the 250 message or OK
5. If email sender and email recipient already OK, we can compose the message. type DATA and press <enter>
DATA
then create the subject of our email.
SUBJECT: Hi v4L, this is hacking-tutorial.com
and continue with the email body content…
to end the message, put the only dot (.) in a single line and press <enter>, it mean that we already finish composing the message and ready to send it.
6. The picture in step 5 shows an error, because I only use a dummy local SMTP and I'm a little lazy to configure it
But in this step if you success to send the email, the server will reply a message "Message accepted for delivery".
7. To quit the telnet, just type QUIT
QUIT
Conclusions:
1. Usually this method used by spammer to sending mass/bulk email since there is no authentication.
2. When you use the fake sender email address(the mail server not recognize the address), your email will go to spam folder.
3. The client 2 (see the topology) cannot send email by using the SMTP, because they outside the ISP local network, but if client 2 can own the client 1 PC, he also can send the email
hope you found it useful…
0 Comments