We all use CMD commands every day in our life, but we don’t notice them. Do you want to know why? Because we use a graphical user interface. CMDs are used in the command line interface otherwise known as the CLI. You must type these in order to complete a task. In this page, you will learn about all the important and Top 9 CMD commands used for Hacking in Windows. These commands for Windows CMD can also be used for network security and configuration. You do not need any specific level of skill or knowledge to use these, they are simple you can just copy and paste them into the CLI.
- 1 What are Command Prompt Commands and what is CMD?
- 2 Top 9 Windows CMD Commands that are used for Hacking and Security (Latest 2019 List)
- 3 Tracert
- 4 Ping
- 5 Arp-a
- 6 Nslookup
- 7 Ipconfig
- 8 Route
- 9 Netstat
- 10 Nbtstat
- 11 Net use
- 12 Tasklist
- 13 If you need help with any of these networking or hacking commands use ‘Help’
- 14 How to open Command Prompt in Microsoft Windows 7/8/10?
- 15 Windows Command Prompt Facts
- 16 Which CMD for Windows do you use in Hacking/Networking?
What are Command Prompt Commands and what is CMD?
Command Prompt (CMD.exe) is the interpreter for Microsoft Windows. In some older versions of Windows, it is known as MS-DOS Prompt. This is not a GUI but its CLI based. It is very useful for System Administrators and Network Administrators because they can remotely run commands on PCs they manage. This saves them a lot of time.
Commands are basically order’s or jobs that you give to your computer to complete. It like giving an order to your PC.
Top 9 Windows CMD Commands that are used for Hacking and Security (Latest 2019 List)
Below is a list of all the CMD commands you need for Windows that are used in Ethical Hacking.
Note/disclaimer: Please use the commands below only if you know what you are doing. Not knowing how these CMDs act on networks and devices can result in inaccurate results. These are shared only for increasing your knowledge of security and CLI.
This cmd shows how many hops it took a packet to reach the destination point. It does this by sending an ICMP (Internet Control Message Protocol) packet to the destination. It is used a lot for network diagnostics and troubleshooting problems. You can use an IP address or domain with this command.
Cmd: tracert www.youtube.com and tracert 126.96.36.199 (for an IP address)
This is one of the most commonly used commands out there. It also works in other operating systems such as Linux. This command allows you to check if a host or anything with an IP address is live. Pinging cmd will tell you in an instant all the details you need including how long is it taking to ping in milliseconds and seconds. Below is how this cmd should be used:
Cmd: Ping example.com
This cmd is used to display the arp table (Address Resolution Protocol). It includes showing your MAC Addresses. This table includes IP addresses of the hosts and which MAC address they belong to.
This command has lots of features. You can query DNS with nslookup. You can also convert domain names into IP addresses. For example, if you do a nslookup of Google.com it will show you the IP address of that URL in this example it’s 188.8.131.52.
This command shows you all of you network configurations including default gateway, IP address, mac address, and DNS information.
It can also be used to change your IP address and renew it, this will give you a new address.
- ipconfig /renew
- ipconfig /release
This command can be used to display the IP routing table. You can also change the routes manually with this cmd with the routes of your choice.
Cmd: route print
This command will show you all the active connections of your computer. It will show you a list of all connections over TCP along with their IP address and port number. This includes both outgoing and incoming connections to your computer.
Cmd: netstat, netstat-a, netstat-n and netstat -an
This is a pretty useful command that is used by the hackers to show the name of the netbios of their target. Network admins and security researchers also use it to troubleshoot NetBIOS issues. If you are having issues with entries this cmd will remove preloaded one’s for you once you run it.
- nbstat -A (enter the PC name) or IP address.
- nbstat -c
- nbstat -n
If you want to remotely remove a PC from your network’s shared resources this is the go-to command in Windows. You will not need physical access to remove that PC from using a shared resource like printers or storage.
Cmd: net use
Recommended read: 8 Best Free Software Firewalls for Windows 10/8/7 PC 2019.
This command does the same function as the ‘top’ command does in Unix! It shows you the currently running processes running in your Windows 7/8/10 PC. It basically opens up a task manager in your command prompt, but it is CLI-based rather than Gui-based.
Cmd: tasklist, taskkill
If you need help with any of these networking or hacking commands use ‘Help’
If you ever find yourself stuck while entering any of the commands from our list above always come back to the help cmd. This command gives you detailed information about the functions and tasks a command can do.
Cmd: examplecmd /help or /?
How to open Command Prompt in Microsoft Windows 7/8/10?
There are few ways to launch a command prompt in Windows below are some of them:
- Press the Windows icon key on your keyboard and type ‘CMD’ then press ‘Enter‘. After this, it will ask you to give it administrator permission and click on ‘Yes’ from that prompt.
- Ask Cortana the virtual assistant that Microsoft launched with Windows 10 to open it up for you. Easy right?
- Press the Win + R key on your keyboard. This will open run, now type cmd/cmd.exe and hit enter.
Windows Command Prompt Facts
- There is no hacker mode in CMD, this does not exist please do not believe sources that claim this.
- It is not directly a tool for such purposes and rather for security testing and finding vulnerabilities in networks and Windows.
Important note: The commands above should work in the following versions:
- Windows 10
- Windows 8
- Windows 7
Visit Microsoft’s list of all Windows commands. This is a huge list which can also be saved as a PDF file that contains every code that you can run.
More guides for making the most out of Windows 10:
- 5 Best Free Virtualization Software for Windows 10 (Download).
- How to Hack ISP for Free Internet via PPPoE Freenet
- Best Windows 10 Themes Free Download in 2019
- How to Fix the Most Common Issues in Windows 10
- How to Find EXE File of any Program
Which CMD for Windows do you use in Hacking/Networking?
Enough explaining from our side, it’s your turn now. Above we have shared with you the best list of Windows CMD hacking commands that are used for hacking. These commands are used by all types of people and can also help you diagnose and fix network problems. We will also share a list of cmd commands for hacking WiFi as requested by our readers.
These codes above are even very easy to remember because they are only a word or two max. This article would be a perfect bookmark for security analysts and white-hat hackers. Some of these commands can also help you find wifi passwords.
If you know any other Command Prompt CMDs that are used for Hacking in Windows, please do share them with us below in the comments section.