Saturday, 21 July 2012

Network Hacking Useful Commands

Ping: -Ping is a command used to test the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time for messages sent from the originating host to a destination computer. Ping is part of ICMP (Internet Control Message Protocol) which is used to troubleshoot TCP/IP networks. So, Ping is basically a command that allows you to check whether the host is alive or not. Ping is also helpful to get ip address of domain name. You can able to see ip address of domain name in [x.x.x.x] .

To ping a particular host the syntax is (at command prompt)--
c:/>ping hostname.com

example:- c:/>ping google.com
Various switches used with 'Ping' command and their usage can be viewed by just typing c:/>ping at the command prompt.
I recommend you to remember them all.

Netstat :- Netstat is a dos command used to check the current network connection of our system to other Systems.it displays both incoming and outgoing connections.it is also used for finding network problems.
c:/>netstat -n


Telnet :-
Telnet is a program which runs on TCP/IP. Using it we can connect to the remote computer on particular port. When connected it grabs the daemon running on that port.
The basic syntax of Telnet is (at command prompt)--

c:/>telnet hostname.com

By default telnet connects to port 23 of remote computer.
So, the complete syntax is-

c:/>telnet www.hostname.com port

example:- c:/>telnet www.yahoo.com 21 or c:/>telnet 192.168.0.5 21


Tracert :- It is used to trace out the route taken by the certain information i.e. data packets from source to destination. traceroute is a computer network diagnostic tool for displaying the route (path) and measuring transit delays of packets across an Internet Protocol (IP) network.

It's syntax is (at command prompt)--

c:/>tracert
www.hostname.com

example:- c:/>tracert facebook.com

Here "*    *    *    Request timed out." indicates that firewall installed on that system block the request and hence we can't obtain it's IP address.

various switches used with tracert command can be viewed by just typing c:/>tracert at the command prompt.

No comments:

Post a Comment