Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are all the things we can do with telnet? [closed]

Tags:

networking

I would like to know all the things that can be done with telnet, currently i use it to determine if a remote machine is listening on some specific port like this telnet [machine] [port]. any ideas please

like image 817
Elias Haileselassie Avatar asked Jul 15 '09 12:07

Elias Haileselassie


2 Answers

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.

like image 105
Dave Markle Avatar answered Oct 28 '22 10:10

Dave Markle


It can be useful in debugging many application level protocols. For example:

% telnet stackoverflow.com http
HEAD / HTTP/1.1
Host: stackoverflow.com

returns the HTTP headers of stackoverflow.com front page.

Though netcat (man 1 nc) is a bit more versatile in these kinds of tasks.

like image 21
laalto Avatar answered Oct 28 '22 11:10

laalto