In this article, I am going to make a list of some important Windows CMD commands used in Hacking.
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.
For Example, You can try ping 188.8.131.52 which belongs to Google
(www.google.com is the website you want to ping, but you don’t know the IP)
This command has many functionalities. One is for resolving DNS into IP. Let’s say you know the website URL but you don’t know its IP but you want to find it out.
(www.google.com is the website for which you want to find out the IP)
Now, another really nice function of nslookup is to find out IP of specific Mail Servers
set type=mx (enter)
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? You can send a spoofed email to your friends using the IP address of the mail server. You can check the tutorial here for sending spoofed email.
This command will give you the hops that a packet will travel to reach its final destination. This command is really helpful if you know the route a packet takes before it goes to the target box.
(x is the IP address)
(www.google.com is the website you don’t know the IP)
This command will show you the arp table. You can find out if anyone has done arp poisoning in your LAN using this command.
This command will show you the routing table, gateway, interface, and metric.
This command will show you a lot of useful things like your IP, Gateway, DNS in use, etc. 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…
(this will release your IP)
(this will renew your iP)
This command will show you connection stats
(this will show you all the listening ports and connection with DNS names)
(this will show you all the open connection with IP addresses)
(this will combine both of the above)
net view x.x.x.x or computername (will list the available sharing folders on the target box)
This command reset Windows User Password without Knowing Old Password.
net user yourusername *
Change yourusername with your PC user name and press Enter. Now type the new password.