telnet somemailserver.somedomain.com 25
HELO somesender.somesenddomain.com
MAIL FROM: [email protected]
RECPT TO: [email protected]
DATA
Type message now.
.
You can interact with an SMTP server to send mail:
telnet somemailserver.somedomain.com 25
HELO somesender.somesenddomain.com
MAIL FROM: [email protected]
RECPT TO: [email protected]
DATA
Type message now.
.
Look at telnet as basically opening a socket to another machine on a port.
You can log into another machine (not securely) using it. If you know the SMTP protocol, you can send mail with it. If you know how to formulate an HTTP request, you can even make HTTP requests with it and get back a HTTP response stream. It's a lovely tool.
发布评论
评论(5)
您可以与 SMTP 服务器交互来发送邮件:
You can interact with an SMTP server to send mail:
FTP、HTTP 我已经尝试过。 您可以远程登录到网络服务器来处理标头本身等...
FTP, HTTP I already tried. You can telnet to a web server to work with the headers themselves etc...
您可以连接到邮件服务器并使用 telnet 发送电子邮件。
Telnet 到端口 25 上的主机名
HELO your_domain_name 或其他
邮件来自:[电子邮件受保护]
RCPT 至:them@someplace_else.com
数据
按 ENTER
辞职
You can connect to your mail server and send an email using telnet.
Telnet to hostname on port 25
HELO your_domain_name or whatever
MAIL FROM:[email protected]
RCPT TO:them@someplace_else.com
DATA
hit ENTER
QUIT
将 telnet 视为基本上在端口上打开到另一台计算机的套接字。
您可以使用它登录到另一台计算机(不安全)。 如果您了解 SMTP 协议,则可以使用它发送邮件。 如果您知道如何编写 HTTP 请求,您甚至可以使用它发出 HTTP 请求并返回 HTTP 响应流。 这是一个可爱的工具。
Look at telnet as basically opening a socket to another machine on a port.
You can log into another machine (not securely) using it. If you know the SMTP protocol, you can send mail with it. If you know how to formulate an HTTP request, you can even make HTTP requests with it and get back a HTTP response stream. It's a lovely tool.
它对于调试许多应用程序级协议很有用。 例如:
返回 stackoverflow.com 首页的 HTTP 标头。
尽管 netcat (
man 1 nc
) 在此类任务中更为通用。It can be useful in debugging many application level protocols. For example:
returns the HTTP headers of stackoverflow.com front page.
Though netcat (
man 1 nc
) is a bit more versatile in these kinds of tasks.