Wednesday, August 12, 2009

Telnet - Part 2

After giving you a basic insight into what Telnet is and why is it used, I'll introduce you to a few of the many more commands which are useful in gathering information about a network and its users. These commands need to be handled carefully and I shall not bear the responsibility of misuse of it. And before I mention the commands and their uses, let us switch to a better Telnet client. There are many of them available for free but I prefer to use Putty for the purpose of simplicity and resourcefulness.

Here are the commands:

Is
This command will list all of the files and directories within the current directory.

cd
This command will change your current directory to the directory you specify. An example would be that "cd public_html" would take you into your public_html directory.

mv
This command will move a file from its current location within the current directory to the directory you specify. For example, let's say you are in your public_html directory and you want to move the file "links.cgi" into your "cgi-local" directory. At the prompt type "mv links.cgi cgi-local.

chmod XXX
This command will set the permissions on a file or directory to whatever you specify. The "XXX" would be replaced by actual numbers, such as 644. For example, if we wanted to set the permissions on our links.cgi file in our cgi-local directory, we would first go into that directory then type "chmod 755 links.cgi" at the prompt.

rm
This command will delete the filename or directory you specify in the current directory. If we wanted to remove the directory named "user", we would type "rm user" at the prompt.

man
This is one of the most helpful commands for new users. It allows you to see all of the different options for a particular command. For example, if were were to type "man ls", we would then see all of the different options available for the list (ls) command.

traceroute/tracert
Traceroute is infact a UNIX/LINUX based command. This command will perform a traceroute on a particular virtual domain to see how many hops it takes to get from your location to the domain specified. An example would be "traceroute yahoo.com", which would show us how long it takes for packets to get to yahoo.com and how they get there.

The Windows variant for the command is tracert and is used like this:

"tracert www.google.com.pk". Analysing the addresses will tell you where the servers of a particular website are located.

whois
This is a UNIX/LINUX based command. This command will display the current InterNIC record including administrative, technical, and billing contact for a particular domain if it is already owned.

The wicked usage of these commands will be explained in the next tutorial. Till that time, just play around with these commands and discover more! :D

Related Posts

Telnet Tutorial - Part 1

0 comments:

Post a Comment