'telnet' is not recognized as an internal or external command,operable program or batch file

8

1

I'm working on an InfoSec exercise, specifically sending emails in cmd that makes use of telnet. Unfortunately, I can't start it. I'm receiving the "'telnet' is not recognized as an internal or external command,operable program or batch file." from cmd when I type telnet. Can someone please tell me on what to install and its procedures for me to access telnet command in CMD. Thanks!

user311226

Posted 2014-03-28T08:20:11.843

Reputation: 101

1

Since you have also posted a question asking about port issues with telnet can we assume you have solved this problem? http://superuser.com/questions/734605/connection-on-port-25-fails

– Matthew Williams – 2014-03-28T08:42:26.520

Answers

14

I hope you are using Windows 7.

Telnet is disabled by default, so to enable it follow these steps:

  1. Open the Control Panel
  2. Go to Programs & Features
  3. In left bar select "Turn Windows features on or off"
  4. Find "Telnet Client" and tick it
  5. Click "OK"

Telnet should be working now.

newbash

Posted 2014-03-28T08:20:11.843

Reputation: 141

Great thank you! Also netstat -a is great way to discover open and connected ports. YouTube video tutorial

– SherlockSpreadsheets – 2020-01-03T22:31:43.563

It worked. Btw can you please help me with this: http://superuser.com/questions/734966/550-user-unknown-cmd-telnet-error-email-spoofing

– user311226 – 2014-03-29T02:16:51.710

6

Telnet is a Windows feature that needs to be enabled.

Control Panel > Programs & Features > Turn Windows features on or off > check the box at Telnet Client

daraos

Posted 2014-03-28T08:20:11.843

Reputation: 469

Got it. Can you please help me with this: http://superuser.com/questions/734966/550-user-unknown-cmd-telnet-error-email-spoofing

– user311226 – 2014-03-29T02:17:17.140

0

You can install telnet client by using DISM command-line tool, e.g.:

dism /online /Enable-Feature /FeatureName:TelnetClient

or using pkgmgr (deprecated in favor of above):

pkgmgr /iu:"TelnetClient"

Usage

The syntax is:

telnet example.com 80

where example.com is your destination host (can be localhost for local PC) and 80 is the port number.

When you connect, to disconnect, hit Control+], then type quit command to exit.

kenorb

Posted 2014-03-28T08:20:11.843

Reputation: 16 795