Top 15 Best CMD Commands Used for Hacking in 2022

15 cmd commands

We all know that Command Prompt is one of the most powerful tools in Windows which is well known by CMD. Today we are going to share top CMD or MS-DOS commands which you must know if you want to be a hacker. Therefore, if you have just made a mind of becoming a hacker then you could learn to utilize these ten best CMD commands used in hacking.

15 Best CMD Commands Used for Hacking in 2019

We all know that Command Prompt is one of the most powerful tools in Windows which is well known by CMD. It is the command-line interpreter on Windows OS. With the help of CMD, you can do almost anything with your PC/laptop. We can’t explain what exactly CMD can do! However, hackers or some professional users know how to make full use of Command Prompt.

Here in this article, we are going to show you the list of best CMD commands which are used by hackers. Therefore, if you have just made a mind of becoming a hacker then you could learn to utilize these ten best CMD commands used in hacking.

#1 Ping

This command uses your internet connection in order to send some packets of data to a specific web address then these packets are sent back to your PC. The test simply shows the amount of time it took to reach the specific address. In simple words, it helps you to know if the host you pinging is alive.

You can use Ping command whenever you need to verify that the host computer can connect to the TCP/IP network and its resources.

For example, you can type in Command prompt ping which belongs to Google.

You can replace “” to “” or something else which you want to ping.

#2 nslookup

It is a network administration command-line tool which helps you to obtain domain name or IP address mapping for any specific DNS record. Suppose you have a website URL but want to know its IP Address, you can simply type in CMD

nslookup (Replace with your website URL of which you want to find the IP address)

#3 tracert

You can say Trace Route like its name it allows users to trace the route than an IP packed has taken to reach a destination. The command calculates and displays the amount of time each hop took to reach a destination. You just need to type

tracert x.x.x.x (if you know the IP Address) or else you can type tracert (If you don’t know the IP address)

#4 arp

This command helps you to modify ARP cache. You can run arp-a command on each computer to see whether the computers have the correct MAC address listed for each other to ping each other succeed on the same subnet.

This command also helps users to find out if anyone has done arp poisoning in their LAN.

You can try typing arp-a in command prompt.

#5 ipconfig

This is the command which shows every useful thing. It will show you IPv6 address, temporary IPv6 address, IPv4 address, Subnet Mask, Default gateway and all other things that you want to know.

You can type in command prompt “ipconfig” or “ipconfig/all

#6 netstat

If you want to find out who is establishing a connection with your computer then you might try typing in command prompt “netstat -a” it will display all the connection and you will get to know about the active connections and listening ports.

Type in command prompt “netstat -a

#7 Route

It is a command which is used to view and manipulate the IP routing table in the Microsoft Windows operating system. This command will show you routing table, metric and interface.

You can type in command prompt “route print

#8 Net View

This command displays the whole list of resources, computers or domains that are shared by the specified computer.

You can type in command prompt “net view x.x.x.x or computername

#9 Net User

Well, this command is used to modify changes to use accounts on a computer. You can add, remove users with the help of this command

You can use these commands while using net user

net user [<UserName> {<Password> | *} [<Options>]] [/domain] net user [<UserName> {<Password> | *} /add [<Options>] [/domain]] net user [<UserName> [/delete] [/domain]]

#10 Net Use

This command is been used to connect, remove and configure connections to shared resources like network printers and other mapped drives. The use of this command is a little bit complicated. So, we recommend you to visit the Microsoft site to get full details on how to use this command.

#11 Tasklist

This command opens up an entire task manager on the command prompt. Users just need to enter tasklist on CMD and they will see the list of all running process. You can figure out all the wrongs with this commands.

Moreover, the command can also be used when you need to forcefully close any process. For example, if you want to kill PID 1532 process then you can enter the command: taskkill /PID 1532 /F

#12 iexplore

As we all know, hackers often try to execute some apps, such as web browsers. So, hackers use the iexplore option to execute apps and web pages. For example, if you enter iexplore on the command prompt, it will open the URL in Internet Explorer.

Not only these, but you can even use iexplore <IP address> to find sites running on any particular IP address. The command is used in multiple ways by the hackers.

#13 Pathping

Well, pathping command is pretty much similar to the tracert, but it shows more detailed information. The commands take a few moments to complete as it analyzes the route taken and computes packet loss. On Windows command prompt, just type in the following command

pathping (Replace with the one that you want to ping)

#14 Getmac

Getmac commands are mostly used to get the MAC Address. As we all know, MAC addresses are assigned by the manufacturer and stored on the hardware. With each network connected adapters, you get a separate MAC address. For instance, your Ethernet, WiFi would have a separate MAC address. So, getmac command is used to fetch the MAC address stored in the device’s hardware.

#15 Netsh

With netsh command, you can configure almost every part of your network adapter. The great thing about the network shell command is that it provides more detailed information about your network adapters compared to all others listed in the article.

If you just enter the netsh command, it will list all routing and DHCP related commands that you need for diagnostic purposes.

So, above are the 10 best CMD commands used in hacking. You can actually explore the lot more than this, we have listed 150+ CMD commands in one of our articles! I hope you like the post! Share it with your friends too. Leave a comment below if you want to add any command in the list.


If we continue to give you similar information in the future, then stay connected with Thank you and have a nice day!

You may also like...