Cmd and PowerShell Commands for Cybersecurity Analysts in/harunseker/
No Category Command Description
Displays detailed network configuration, including IP
1 Networking Information ipconfig /all addresses and MAC addresses
Open and Listening Ports
(to detect backdoors and Lists all active connections and listening ports with their
2 beaconing) netstat -ano associated process IDs (PIDs)
Running Processes
3 (to detect malware or backdoors) tasklist Displays all running processes along with their PIDs
User Accounts
4 (to identify unusual accounts) net user Lists all user accounts on the local system
Startup Programs
5 (to detect malicious files) wmic startup get caption, command Lists programs that start at boot
Running Services
6 (to identify malicious services) net start Lists currently running services
7 All Services sc query state=all Lists all services, including their status
Get-NetIPConfiguration and Provides network-related information similar to ifconfig in
8 Network Configuration (PowerShell) Get-NetIPAddress CMD
9 Local Users (PowerShell) Get-LocalUser Lists all local users on the system
Retrieves detailed information about a specific user
10 Specific User Info (PowerShell) Get-LocalUser -Name Seker | select * account
Get-Service | Where Status -eq
11 Running Services (PowerShell) "Running" | Out-GridView Displays running services in a grid view window
Get-Process | Format-Table -View
12 Process Priority (PowerShell) priority Groups running processes by their priority value
13 Specific Process Info (PowerShell) Get-Process -Id 'idhere' | Select * Retrieves all properties for a specific process by ID
14 Scheduled Tasks (PowerShell) Get-ScheduledTask Lists all scheduled tasks on the system
Specific Scheduled Task Info Get-ScheduledTask -TaskName
15 (PowerShell) 'PutANameHere' | Select * Retrieves all properties for a specific scheduled task
Get-FileHash -Path 'C:\path\to\file' Calculates the hash of a specified file using the SHA256
16 File Hash (PowerShell) -Algorithm SHA256 algorithm