Sinisterly
Beginners Guide to Telnet - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Tutorials (https://sinister.ly/Forum-Tutorials)
+--- Thread: Beginners Guide to Telnet (/Thread-Beginners-Guide-to-Telnet)

Pages: 1 2


Beginners Guide to Telnet - Ex094 - 07-15-2013

Telnet

- What is Telnet?

Telnet is a Network Protocol and the tool which uses that protocol (i.e Telnet) is also known as Telnet.

- What is its usage?

Well Telnet is used to connect to an External or a Remote Computer via Port 23. You'll need to enter the Login and Password in order to connect to that remote PC. After connecting to your remote PC you can carry out commands to preform your task on your Remote PC for example you want to create a text file or you want to check how your system is working or you want to check the directory of your remote PC.

- What's in it for Hackers?

Using Telnet we can preform Banner Grabbing,, it's infact a method to get a hint or some information about the Host computer like What's it actually running. Telnet can be used to preform banner grabbing on insecure PC and Servers but we are going to discuss it after discussing it's usage.

- Telnet Commands

Telnet offers a bunch of commands, here are some:

Code:
close close current connection logout forcibly logout remote user and close the connection display display operating parameters mode try to enter line or character mode ('mode ?' for more) open connect to a site quit exit telnet send transmit special characters ('send ?' for more) set set operating parameters ('set ?' for more) unset unset operating parameters ('unset ?' for more) status print status information toggle toggle operating parameters ('toggle ?' for more) slc set treatment of special characters z suspend telnet

- Connecting using Telnet

There are two ways to connect using telnet, one is the direct way and the other is using Telnet commands.

Direct Way:

Code:
telnet 192.168.1.1 23

Telnet Way:

First type telnet in console then you'll enter the Telnet session, type

Code:
open 192.168.1.1

The first way is rather easier and I recommend using it, The syntax for Telnet usage is:

Code:
telnet IP_ADDRESS PORT

Note: The commands mentioned at the top of this topic are to be used only when using the Telnet way!

- Banner Grabbing

To get the banner of a Server or a Remote PC, we will use telnet to connect to it, so the syntax is same as before:

Code:
telnet IP_ADDRESS PORT

Now lets create a sample senario, I want to get a banner of a site I'm trying to exploit but First I want to know something about it, either it uses Apache, NGINX or a FTP etc which might be weak towards my exploit so we'll try some ports.

Test for Server Banner:
Code:
telnet HOST 80

I get
Code:
Connection closed by foreign host
so it's a fail

Second is I test for FTP

Code:
telnet HOST 21

And my luck just kicked in, I get this:

[Image: tjWYxxt.png]

But this is not success because still we didn't get to know the version of that FTP that we can know the exploit about, lets try another host to see if we get a good and clear banner:

Now we try the second host, Lets do the same thing again but I want to check for SSH too this time.

Test For Server:

Code:
telnet HOST 80
-> Failed

Test For FTP:

Code:
telnet HOST 21
-> Got the same result as before

Test For SSH:

Code:
telnet HOST 22

And We got:

[Image: 2evb8n5.png]

We've successfully got the Banner and we know the SSH version of that site/server is using:
Code:
SSH-2.0-OpenSSH_4.3

We shall add this to our Information Gathering list about that host Smile as banner grabbing is a part of Information Gathering

Security on Linux and Windows:

Most users recommend disabling Telnet on Linux and Windos to avoid hackers skipping in to your system or getting information. Disabling Telnet can be a bonus to security. This is where your programming skills come in, Learn Network Programming, and make a tool alternative to Telnet to do the stuff you want.

This is my last tutorial for Linux because I have migrated to Windows again

Regards,
Ex094


RE: Beginners Guide to Telnet - The Real Slim Shady - 07-15-2013

Well, the tutorial is well written... and 100% correct. but i have to say the subject matter is sooo old and done with. You can find essentially the same tutorials written back in the 90's. there really is nothing even remotely new or original in this topic. Not to mention that there are better tools/ways to performing all these functions. For example SSH provides everything needed to connect to a remote device, and its infinitely more secure.And tools like netcat are just as good with additional functionality that telnet doesnt have... like the ability to test UDP ports. not to mention telnet is disabled by default in many modern operating systems.

Im only bringing this up because i thought HC had specified a standard for tutorials. Anything that wasnt original or just reconstituted information was to be deleted?


RE: Beginners Guide to Telnet - noize - 07-15-2013

I have disabled the Telnet server and enabled the client, "a bonus to security" but still I can use Telnet.

Why back to Windows though?


RE: Beginners Guide to Telnet - noize - 07-15-2013

I have disabled the Telnet server and enabled the client, "a bonus to security" but still I can use Telnet.

Why back to Windows though?


RE: Beginners Guide to Telnet - clik - 07-15-2013

At first, I too was somewhat surprised to see a Telnet tutorial on HC 2013(Ahhh Telnet my first flirtation with hacking all those years ago).

However after some thought I feel its worthy of a place here. Yes; it's an old hat method and yes, its not original, never the less it is still a working network protocol and therefore surely worth learning as well as it being a significant hacking method historically.

@Ex094 As @Geoff mentioned telnet needs to be enabled on most OS's these days. Perhaps you could include a quick mention or description of this. It would save beginners a lot of time and frustration.

Thanks for taking the time to write this tutorial.


RE: Beginners Guide to Telnet - clik - 07-15-2013

At first, I too was somewhat surprised to see a Telnet tutorial on HC 2013(Ahhh Telnet my first flirtation with hacking all those years ago).

However after some thought I feel its worthy of a place here. Yes; it's an old hat method and yes, its not original, never the less it is still a working network protocol and therefore surely worth learning as well as it being a significant hacking method historically.

@Ex094 As @Geoff mentioned telnet needs to be enabled on most OS's these days. Perhaps you could include a quick mention or description of this. It would save beginners a lot of time and frustration.

Thanks for taking the time to write this tutorial.


RE: Beginners Guide to Telnet - Ex094 - 07-15-2013

(07-15-2013, 11:27 AM)clik Wrote: At first, I too was somewhat surprised to see a Telnet tutorial on HC 2013(Ahhh Telnet my first flirtation with hacking all those years ago).

However after some thought I feel its worthy of a place here. Yes; it's an old hat method and yes, its not original, never the less it is still a working network protocol and therefore surely worth learning as well as it being a significant hacking method historically.

@Ex094 As @Geoff mentioned telnet needs to be enabled on most OS's these days. Perhaps you could include a quick mention or description of this. It would save beginners a lot of time and frustration.

Thanks for taking the time to write this tutorial.

Thanks for your reply, well I must say enabling Telnet is easy and can be done from the Control Panel. The reason why I didn't explain it is that the more beginners are spoon fed the more lazy they get so in the end even easiest things get hard for them.


RE: Beginners Guide to Telnet - Ex094 - 07-15-2013

(07-15-2013, 11:27 AM)clik Wrote: At first, I too was somewhat surprised to see a Telnet tutorial on HC 2013(Ahhh Telnet my first flirtation with hacking all those years ago).

However after some thought I feel its worthy of a place here. Yes; it's an old hat method and yes, its not original, never the less it is still a working network protocol and therefore surely worth learning as well as it being a significant hacking method historically.

@Ex094 As @Geoff mentioned telnet needs to be enabled on most OS's these days. Perhaps you could include a quick mention or description of this. It would save beginners a lot of time and frustration.

Thanks for taking the time to write this tutorial.

Thanks for your reply, well I must say enabling Telnet is easy and can be done from the Control Panel. The reason why I didn't explain it is that the more beginners are spoon fed the more lazy they get so in the end even easiest things get hard for them.


RE: Beginners Guide to Telnet - Ex094 - 07-15-2013

(07-15-2013, 11:27 AM)clik Wrote: At first, I too was somewhat surprised to see a Telnet tutorial on HC 2013(Ahhh Telnet my first flirtation with hacking all those years ago).

However after some thought I feel its worthy of a place here. Yes; it's an old hat method and yes, its not original, never the less it is still a working network protocol and therefore surely worth learning as well as it being a significant hacking method historically.

@Ex094 As @Geoff mentioned telnet needs to be enabled on most OS's these days. Perhaps you could include a quick mention or description of this. It would save beginners a lot of time and frustration.

Thanks for taking the time to write this tutorial.

Thanks for your reply, well I must say enabling Telnet is easy and can be done from the Control Panel. The reason why I didn't explain it is that the more beginners are spoon fed the more lazy they get so in the end even easiest things get hard for them.


RE: Beginners Guide to Telnet - Psycho_Coder - 07-15-2013

Very good tutorial, you have explained the things very well and kept it simple too.