Useful Things to do on CMD!
First, open your Network Connection and right click and select Properties. Then Select TCP/IP and click on Properties again. Now Click on Advanced and WINS tab. Select Default for NeBIOS.
Now back to the main Local Area Connection window, select File and Print Sharing for Mic*ft Networks and hit enter.
This is just to make sure you have NetBIOS enabled. We will have some fun with NetBIOS on CMD.
First thing you need to know is some very helpfull commands to use on CMD(Command Prompt).
In case you don’t know how to get CMD open in your box, then click on Start, then Run, then type “cmd” (no quotes, off course… you know the drill).
Back to commands:
Code:
Code:
In case you don’t know some of them, then just type the command on CMD and hit enter. A little help will show up in your screen. Read it and understand what the command does.
Lets start easy…
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:
Code:
or
Code:
OBS: Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host down.
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).
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).
Now, another really nice function of nslookup is to find out IP of specific Mail Severs.
Code:
Code:
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?
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:
Code:
or
Code:
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:
5) route : This command will show you the routing table, gateway, interface and metric.
Code:
Code:
6) ipconfig : This command will show tons of very helpful things.
Your IP, gateway, dns in use.
Your IP, gateway, dns in use.
Code:
Code:
or
Code:
Code:
this command will give all that info but for all networks you might have it.
Also, in case you have a dynamic IP and want to change it, then type…
Code:
Code:
OBS: Keep in mind that those commands will change your IP, but the new IP will still be tighed up to you. So don’t do anything stupid.
7) netstat : This command will show you connection to your box.
Code:
Code:
or
Code:
Code:
8)nbtstat : This command will show you the netbios name of the target box.
Code:
Code:
net view x.x.x.x or computername (will list the available sharing folders on the target box)
Now some hints:
Code:
Code:
(this command will allow you to connect to the target box as administrator)
Now if you want to connect to the target box and browse the entire C drive, then use this command:
Code:
Code:
(this will create a virtual drive on your “my computer” folder)
OBS: Keep in mind that this will only works if the target box doesn’t have an administrator password set.
And least but not last, the “help” command.
Code:
Code:
or
Code:
This command will help you to understand what it does and all the switchs available for each command.
Very useful if you know the command, but forgot the right switch.
Very useful if you know the command, but forgot the right switch.
TECHNO TITANS
No comments:
Post a Comment