Skip to main content

Unit 6 · Services, Ports, and Software · Lesson 15 of 25

Services That Send Passwords in the Clear

A small family of services that are a finding no matter how they are configured.

Some services are wrong no matter what

These were written before anyone assumed the network was hostile, and they send your password across it as readable text. No setting fixes that, so the answer is to remove them.

ServiceWhat it sends in the clear
telnetthe username and password, exactly as typed
FTPthe username, password and the files
rsh, rlogineverything, and it trusts whoever connects
  a telnet login, as anyone on the network sees it:

     t  o  d  o     M  y  P  a  s  s  w  0  r  d
     └──────────┘   └───────────────────────────┘
       username               password

Check whether they are installed

dpkg -l | grep telnet
dpkg -l | grep ftp

dpkg -l lists everything installed, and grep keeps only the lines containing that word.

Remove them

sudo apt purge -y PACKAGENAME

Use purge, not remove. remove takes out the program but leaves its settings behind, and a check looking for whether the service is present can still find it.

💡 A telnet client is not a telnet server. The client is harmless. The server is what accepts logins on this machine. They are separate packages, so read the name before you remove it: telnetd and inetutils-telnetd are servers.

Try it yourself

dpkg -l | grep telnet        # is a telnet server installed?
dpkg -l | grep ftp           # what about a file server?

Do this lesson for real

With a free account you get the terminal, the challenges and the checks that go with every lesson in CyberPatriot Linux: Tokyo Jujutsu High, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.