Top 10 CMD Commands used by Security Experts

Command Prompt in Windows has around 280 commands and is used to perform certain operating system tasks from the command-line interface instead of the graphical Windows interface. This article will discuss the top 10 Windows CMD commands used by security researchers and hackers.

How to lock and unlock folder using Command Prompt (CMD) in Windows

First Step: Open CMD in Administrator mode

1. Know the IP Address of any website
The ping command sends an Internet Control Message Protocol (ICMP) Request message to a remote computer to verify LAN connectivity.


2. Resolving DNS into IP


The nslookup command queries your configured DNS server to discover the IP address.

3. Displaying the route path between your computer to website


4. Show the ARP table
The arp command is used to display or change entries in the ARP cache.

C:\WINDOWS\system32>arp -a

5. Routing table, gateaway, interface and metric
The route command is used to manipulate network routing tables.

C:\WINDOWS\system32>route print

6. See IP, gateway, dns and other info
The ipconfig command is used to display detailed IP information for each network adapter utilizing TCP/IP.


7. See connection status
The netstat command is used to display all open network connections and listening ports.

C:\WINDOWS\system32>netstat -an

10 Best Free Firewalls for Windows

8. Display or set a specific path available to executable files


9. System File Checker is an automatic scan and repair tool mainly for Windows system files

C:\WINDOWS\system32>sfc /scannow

10. Wi-Fi password
If you forgot your wi-fi password, use the below command replacing SSID with the name of the network

C:\WINDOWS\system32> netsh wlan show profile SSID key=clear

If you’re not sure about the networks you’ve connected to, use the below command to find out the wi-fi network

C:\WINDOWS\system32> netsh wlan show profile

Windows Tracert Command Tutorial – Learn in 5 Minutes

Miscellaneous Commands

To check the password policy of the account

C:\WINDOWS\system32> net accounts

Display all users

C:\WINDOWS\system32> net users

To list credential

C:\WINDOWS\system32> cmdkey /list

To list all available groups and information related to the administrator (group)

C:\WINDOWS\system32> net localgroup
C:\WINDOWS\system32> net localgroup Administrators

To list all environment variables

C:\WINDOWS\system32> set

Recycle Bin

C:\WINDOWS\system32> dir C:\$Recycle.Bin /s /b

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

5 Responses

  1. Marc says:

    Clear and concise way of writing!

  2. Reena Jaiswal says:

    thank you

  3. Alexander Mutmi says:


  4. Billy Beaty says:

    Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *