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.

C:\WINDOWS\system32>ping www.allabouttesting.com

2. Resolving DNS into IP

C:\WINDOWS\system32>nslookup www.allabouttesting.com

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

3. Displaying the route path between your computer to website

C:\WINDOWS\system32>tracert www.allabouttesting.com

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.

C:\WINDOWS\system32>ipconfig/all

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

C:\WINDOWS\system32>path

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  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 below command to find out wi-fi network

C:\WINDOWS\system32> netsh wlan show profile

Windows Tracert Command Tutorial – Learn in 5 Minutes

Miscellaneous Commands

To check password policy of 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 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. Deepak Kapoor says:

    very helpful

  4. Alexander Mutmi says:

    Great

  5. Billy Beaty says:

    Thank you

Leave a Reply

Your email address will not be published.