Friday, May 27, 2011

cmd useful trick

1) ping : This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the "ping" command.

Code:ping x.x.x.x (x is the IP address)

or
ping www.whatever.com (www.whatever.com is the website you want to ping, but you don't know the IP)

2) nslookup : This command has many functionalities.
One is for resolving DNS into IP.
Lets say you know the website URL but you don't know its IP(and you want to find out).

nslookup www.whatever.com (www.whatever.com is the website you want to find out the IP)

Now, another really nice function of nslookup is to find out IP of specific Mail Severs.
Code:
nslookup (enter) set type=mx (enter) yahoo.com
This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isn't it?

OK, now why would you want to have an IP of a mail server?
To send spoofed mail to your friends or even for SE.
In case you looking for "How to spoof email", then look for my "How to spoof email tutorial" http://www.infowar.com/forums/showth...&threadid=2360

3) tracert : This command will give you the hops that a packet will travel to reach its final destination.

OBS: This command is good to know the route a packet takes before it goes to the target box.


Code:
tracert x.x.x.x (x is the IP address)
tracert www.whatever.com (www.whatever.com is the website you don't know the IP)
4) arp : This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.

Code:
Code:
arp -a
5) route : This command will show you the routing table, gateway, interface and metric.

Code:
Code:
route print
6) ipconfig : This command will show tons of very helpful things.
Your IP, gateway, dns in use.

Code:
Code:
ipconfig
Also, in case you have a dynamic IP and want to change it, then type...

Code:
Code:
ipconfig /release (this will release your IP) ipconfig /renew (this will renew your iP)

No comments:

Post a Comment