Showing posts with label Telnet. Show all posts
Showing posts with label Telnet. Show all posts

Wednesday, 14 December 2011

TCP/IP Utilities

You can use several utilities to verify TCP/IP function on Windows workstations:

Using the arp utility:
  1. Choose Start--->Run and enter cmd to open the MS-DOS Prompt window.
  2. type "arp -a", you'll get.


The arp utility is primarily useful for resolving duplicate IP addresses. For example, your workstation receives its IP address from a DHCP server, but it accidentally receives the same address as another workstation. Your workstation is trying to determine the MAC address, and it can't do so because two machines are reporting that they have the sane IP address. To display the entire current ARP table, use arp command with -a switch.

Using the netstat Utility:
  1. Open MS-DOS Prompt window
  2. enter "netstat /?", it will show all its coll switches and its functions.
'netstat' with switch '-a' is normally used to get a list of open ports on your own system, i.e. on the local system. This can be particularly useful to check and see whether your system has a Trojan installed or not. Remember, port numbers over 1024 are used by your system to connect to remote computers.
Trojans:  Netbus uses port number 12345 (TCP) and Back Orifice uses port number 31337(UDP)
"netstat -n" is numerical form of -a, its shows ip address of local and remote systems.


Using the ping Utility: We use ping utility for two primary puurposes; to find out if you can reach a host, to find out if a host is responding.
open MS-DOS window
ping hostname or IP address


Using tracert utility : It will show you every router interface a TCP/IP packet passes through on its way to a destination.
  1. open MS-DOS window
  2. enter "tracert hostname( or host's ip address)"
  3. It will respond with a list of DNS names and IP address of routers that the packet is passing through on its way.

 Using Telnet utility:: It  is used to open terminal sessions from remote system to server, it has evolved into a troubleshooting tool.
  1. open MS-DOS, type telnet hostname(or host ip address), make sure this facility is installed in your system. If installed then jump to  4 , otherwise follow the steps.
  2. Control Panel----> Programs-----> "Turn Windows features on or off", a dialog box will appear.
  3. Select telnet client and server or any other service which you want to install.
  4. It will ask for login name and password.
  5. Once login name and password is being verified, a telnet session get established.
  6. If the host supports SSH then use putty.
  7. If the telnet service is not running at the default port number on the host, then use telnet hostname:port number command.

Using nslookup Utility: It allows you to query a name server and quickly find out which name resolves to which IP address.
  1. open MS-DOS window.
  2. enter nslookup example.com 
















Tuesday, 13 December 2011

Appication Protocols

Application layer protocols are built on top of and ito the TCP/IP protocol suite and are available on most implementations. Some of application protocols have been discussed below:

File Transfer Protocol : It provides a mechanism for single or multiple file transfers between computer systems; when written in lower case as "ftp". The FTP package provides all the tools needed to look at files and directories, and transfer text and binary files from one system to another. FTP uses TCP to actually move files.
accessing files on remote machine:
  1. ftp machine_name(or machine address)
  2. FTP responds by asking login_name and password.
  3. once authentication is being done, it will prompt
  4. ftp> 
  5. ftp> ? (help), "explore different commands by yourself".
Simple Mail Transfer Protocol: It allows for a simple e-mail service and is responsible for moving messages from one e-mail server to another.


Post Office Protocol (POP): It provides a storage mechanism for incoming mail, the latest version of the standard is known as POP3. When a client connects to a POP3 server, all the messages addressed to that client are downloaded; there is no way to download messages selectively.Once messages are downloaded, we can delete or modify without any interaction with server.
gmail e-mail pop server: pop.gmail.com (Port 995 with SSL) 
yahoo e-mail pop server: pop.mail.yahoo.com

Internet Message Access Protocol (IMAP): It allows users to download mail selectively, look at the message header, download just a part of a message, store message on the e-mail server in a hierarchical structure, and link to documents.The current version of IMAP is version 4.
gmail e-mail imap server: imap.gmail.com (port 993 with ssl)
yahoo e-mail imap server : imap.mail.yahoo.com (port 993 with ssl).


Telnet: Telnet is a terminal emulation protocol that provides a remote logon to another host over the network. It allows a user to connect to a remote host over a TCP/IP connection as if they were sitting at that host. Keystroke typed into a Telnet program will be transmitted over a TCP/IP network to the host and the visual reponses are sent back by the host to the client's screen.


Hypertext Transfer Protocol (HTTP): HTTP is the command and control protocol used to manage communications between a web browser and a web server. HTTP is the mechanism that opens the related document when you select a link, no matter where that document is actually located. Secure version of HTTP is known as HTTPS.


Lightweight Directory Access Protocol (LDAP): In large network, most administrator have set uo some kind of directory that keeps track of users and resources. LDAP allows client to perform object lookups with a directory using a standard method.