Saturday, April 14, 2012

NetState - A Command Line Tool


Dear Reader, In this tutorial I am going teach how to use a very useful command netstat. By using netstat you will be able to find out the ip address of your computer and of the remote computer connected to your computer and most importantly you will be able to know what ports are open on our computer - this will help you know if your computer is infected by a Trojan. 

What is netstate tool

* This tool is used to find out the active TCP/IPconnection between our computer and the internet.

* netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics.


Let us see how to launch netstat command. netstat is a MS-DOS based command, you can not use mouse to interact with this utility. To launch this command simply run MS-DOS prompt. To do this just click on 'Run...' after clicking on Start button and then type command or cmd and press enter key.

The practical syntax is :
netstat -n

              
After pressing enter we will get all active TCP connections created to our computer with the specific port number.

By using netstat command we can get the following details.

1. The address of any protocol control blocks associated with the sockets
2. The number of packets received, transmitted, and dropped
3. The local address which initiate the communication
4. The foreign IP address.


The common syntax for netstat command

1. netstat -n    : Displays addresses and port numbers in numerical form

2. netstat -a   :  Displays all connections and listening ports

3. netstat -b  : Displays the executable involved in creating each connection or listening port.

4. netstat -e :  Displays Ethernet statistics

5. netstat -o : Displays the owning process ID associated with each connection

6. netstat -p proto:Shows connections for the protocol specified by protocols

7. netstat r : Displays the routing table

8. netstat s : Displays per-protocol statistics


Practical uses of netstat


1. Check which program initiated the connection:
    
   netstat -b

We can use this command to check if any unwanted (malware) programs working on your computer.

2. We can check the routing table

3. Can find the IP address of a chat friend while establishing a connection.


If you like my this post then kindly Share with your friends and groups and hit like.

Connect With us on Facebook.


Thank You For Visiting..... 

Written by

Hello, My name is Ankit Bhandari You can visit and Learn Ethical Hacking from my blog. But all these hacking tricks only for educational purpose. Me and My Blog will not responsible for any wrong use of this. Enjoy it but never miss use it.

0 comments:

Post a Comment

 

© 2014 Invisible Hackers. All rights Reserved. Designed by InvisibleHackers