Telnet tutorial

What is Telnet ?
TelNet or TELecommunication NETwork is a network protocol which is used to connect two computers . It is Based on Client-Sever relationship that means there must be a server to connect to for the client . also it is available with every OS .

If it still seems confusing here is a quick example

Open Command prompt (win key+r ->cmd -> enter) or bash shell (linux users)
Type telnet google.com 80
you should see connecting to google.com -> then a blank screen
what to do next
type GET / HTTP/1.1
But i can't see what i am typing --- well it happens for windows users -- you can get a third party telnet client like putty

you must be seeing lot of rubbish on the screen -> this is actually to source code of index page of google.com

What actually has happened is
Step 1:- telnet google.com 80
you connected to google.com on port 80 or you can say you connected to google's webserver/computer(webserver is also a computer) on port 80

Step 2:- GET / HTTP/1.1
you requested the foreign computer/google.com to send you "/" or home page through Hypertext Transfer Protocol (HTTP) version 1.1.

Step:- Google sends the home page or index page but since command prompt cannot parse it it displayes it as such .

Your web-browser does the same but it has the ability to parse html formatting so it displayes a beutifully parsed page

Now what else :-
You can try telneting to differnet ports like
port 7 -> echo port -> displayes whatever you typed in
port 23 -> default telnet sever port -> gives you remote command line access to machine
port 25 -> SMTP port -> helps you send mails
port 80 ,443 -> HTTP and HTTPS ports
etc. there are hell lot of other important ones (you can telnet to any port if it is open or is not blocked by firewall) where you can telnet but i am leaving the list

Ok I know ports to telnet but where can i telnet on -> i mean computer

here is a long list from
http://www.telnet.org/htm/places.htm which shows different places where you can telnet alog with port nos

for example for " telnet towel.blinkenlights.nl 666"

Fun Stuff!

From www.blinkenlights.nl:

Star Wars asciimation -- telnet://towel.blinkenlights.nl (port 23)
Marvin (eliza-like bot) -- telnet://towel.blinkenlights.nl:42
The Bofh Excuse Server -- telnet://towel.blinkenlights.nl:666

Directories

Hytelnet is an old (an now unmaintained) directory:
http://www.lights.com/hytelnet/

Muds

For the moment, we will not attempt to give a complete listing of Mud's or Moo's. Instead, check out:

http://www.mudconnect.com/

Some muds that have been submitted by readers:
shadow-lands.com -- port 4000
shiva.ml.org -- port 4300
dr.nostrum.com -- port 2000

Libraries

Go forth and gather knowledge. We present libraries:
(Some addresses are followed by a login and password)

CANADA
calcna.ab.ca guest
access.cn.camriv.bc.ca
chebucto.ns.ca guest
ciao.trail.bc.ca guest
clias.org guest
wtp1.eastman.freenet.mb.ca guest %guest
freenet.edmonton.ab.ca guest
freenet.hamilton.on.ca guest
telnet.ncf.carleton.ca guest
strider.pgfn.bc.ca guest
freenet.sfn.saskatoon.sk.ca guest
sea-to-sky-freenet.bc.ca guest
infonet.st-johns.nf.ca guest ENTER(key)
torfree.net guest
vcn.bc.ca guest
victoria.tc.ca guest

FINLAND
login.freenet.hut.fi visitor

GERMANY
freenet-a.fim.uni-erlangen.de

NETHERLANDS
dds.nl gast

UNITED STATES
locis.loc.gov (Library of Congress)
freenet.akron.oh.us visitor
aztec2.asu.edu guest visitor
bigsky.bigsky.dillon.mt.us bbs
bcn.boulder.co.us bcn
freenet.buffalo.edu freeport
capaccess.org guest visitor
sawdust.cvfn.org guest
freenet-in-a.cwru.edu visitor
telnet.coin.missouri.edu guest
freenet.vcu.edu guest visitor
danenet.wicip.org guest
128.175.63.164
telnet.efn.org guest ENTER(key)
www.fortnet.org guest
genesee.freenet.org guest
grfn.org visitor
glfn.org
detroit.freenet.org visitor
gnofn.org visitor
heartland.bradley.edu1 bbguest ENTER(key)
grex.cyberspace.org newuser
jackson.freenet.org visitor
clarion.korrnet.org visitor
telnet.llion.org guest
freenet.lcfn.org guest
lafn.org opt. #2
macatawa.org visitor visitor
midnet.csd.scarolina.edu visitor
omnifest.uwm.edu visitor
ns1.maf.mobile.al.us visitor
gator.naples.net guest guest
omahafreenet.org visitor
telnet.orion.org guest
prairienet.org visitor
rain.gen.mo.us VISITOR
rgfn.epcc.edu visitor
scn.org visitor
bcfreenet.seflin.lib.fl.us visitor
dc.seflin.org visitor
bc.seflin.org visitor
pb.seflin.org visitor
sendit.nodak.edu bbs
seorf.ohiou.edu guest
scfn.thpl.lib.fl.us visitor
tlcnet.muohio.edu visitor
tfn.net visitor
fnet.cc.utoledo.edu visitor visitor
traverse.lib.mi.us visitor
tso.uc.edu visitor
freenet.msp.mn.us guest
vergin.usvi.net
pen1.pen.k12.va.us guest guest

Talkers

Here are a few talkers to get you started chatting:

Abbes === chardonnay.niagara.com:3000
Blackhawk === ouabache.abcs.com:6000
Elgin === step.jbu.edu:7000
Enchanted Village === user1.megalinx.net:5000
Eye of the World === jordan.megalinx.net:9001
Promised Land, The === zeek.murlin.com:4321
Seventh Heaven === lod.com:1998
SpauMUSH === spice.per.iap.net.au:9999
Speedway Talker === funcity.ml.org:6500
Utopia Parkway === blacktape.cs.uchicago.edu:3000

Telnet is that all Huh??

Not telnet also have a no of syntaxes
type telnet /? in the command prompt to get the list some important ones are
-a to perform autologin with current username
-f to log your telnet session to a file
-t to determine the type of terminal to be used (vt100 ,vtnt ,vt52 ,ansii)

Usage:
in the command prompt :

telnet [host(google.com) r ip address][port no.][-a][-f log.txt][-t vt100]

substitute them with appropriate values without the brackets

for eg :- telnet google.com 80 -f log.txt
it connects google.com on port 80 and logs the activity on log.txt file

Other info:
telnet is called queen of hacker commands
you can only telnet to open ports so first scan a machine for open ports with nmap if you want to connect to it
telnet basically reflets what kind of service is running on a particular port so it is very useful tool for banner grabbing

Article written by AUTHOR_NAME

WRITE_ABOUT_YOURSELF