Disclaimer: This material is provided for educational purposes and authorized security testing only.
You are solely responsible for how
you use the information. Do not use these techniques on systems without explicit permission from the owner.
We
do not encourage any kind of illegal or harmful activity
- Username and hostname
- Group memberships of the current user
- Existing users and groups
- Operating system, version, and architecture
- Network information
- Installed applications
- Running processes
- Display detailed configuration info:
systeminfo
- Show computer hostname:
hostname
- Get OS name, service pack, architecture, and version:
wmic os get Caption,CSDVersion,OSArchitecture,Version
- Fetch OS details with PowerShell:
Get-WmiObject -Class Win32_OperatingSystem
- Filter only OS name and version:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
- Retrieve comprehensive info:
Get-ComputerInfo
- Current username:
whoami
- List all user accounts:
net user
- Show RDP session users:
query user
- List all admin group members:
net localgroup administrators
- List local users with PowerShell:
Get-LocalUser
- List admin group members with PowerShell:
Get-LocalGroupMember -Group "Administrators"
- Detailed user account info:
Get-WmiObject -Class Win32_UserAccount
- Show all TCP/IP config:
ipconfig /all
- Display active connections and ports:
netstat -ano
- Show IP routing table:
route print
- Display ARP cache:
arp -a
- IP addresses (PowerShell):
Get-NetIPAddress
- Full network config (PowerShell):
Get-NetIPConfiguration
- List network adapters:
Get-NetAdapter
- Test connection:
Test-Connection -ComputerName [hostname]
List installed programs
- Enumerate installed programs:
Get-ChildItem 'C:\Program Files', 'C:\Program Files (x86)' | ft Parent,Name,LastWriteTime
- Check installed AV products:
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntivirusProduct Get displayName
- Programs via PowerShell:
Get-WmiObject -Class Win32_Product | Select-Object -Property Name,Version
- Programs via registry:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate
- List installed packages:
Get-Package
Scheduled tasks
- List all tasks (verbose):
schtasks /query /fo LIST /v
- Scheduled tasks via PowerShell:
Get-ScheduledTask | Get-ScheduledTaskInfo
- Details of a specific task:
schtasks /query /tn <taskname>
Services and drivers
- Show processes running as SYSTEM:
tasklist /v /fi "username eq system"
- List active services:
sc query
- List installed drivers:
driverquery
- Get service status (PowerShell):
Get-Service
- Detailed service info (PowerShell):
Get-WmiObject -Class Win32_Service
Check permissions on files/folders
- Show or modify ACLs:
icacls "C:\Path\to\folder"
- Retrieve ACLs (PowerShell):
Get-Acl "C:\Path\to\folder"
- Use AccessChk from Sysinternals:
AccessChk.exe -d "C:\Path\to\folder"
List user privileges
- Show current user privileges:
whoami /priv
- Local user details (PowerShell):
Get-LocalUser | Select-Object Name, Enabled, PasswordLastSet, LastLogon
- List assigned privileges (PowerShell):
Get-Privilege
Active connections and listening ports
- Show active connections:
netstat -ano
- TCP connections (PowerShell):
Get-NetTCPConnection
- UDP endpoints (PowerShell):
Get-NetUDPEndpoint
Firewall rules
- List all firewall rules:
netsh advfirewall firewall show rule name=all
- Firewall rules via PowerShell:
Get-NetFirewallRule
- Firewall profile settings:
Get-NetFirewallProfile
DNS cache
- Show DNS cache:
ipconfig /displaydns
- DNS cache via PowerShell:
Get-DnsClientCache
- Clear DNS cache:
Clear-DnsClientCache
Viewing recent documents
- List recent documents:
type %userprofile%\Recent\*.lnk
- With names and timestamps:
Get-ChildItem "$env:UserProfile\Recent" | Select-Object Name, LastAccessTime
List large files
- Find large files:
Get-ChildItem -Path C:\ -Recurse | Sort-Object Length -Descending
Check autostart entries
- Startup programs (all users):
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run
- Startup programs (current user):
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- Via PowerShell:
Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run"
Check for installed applications
- Registry method:
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
- PowerShell method:
Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*"
Clipboard contents
- Read clipboard contents:
Get-Clipboard
List loaded DLLs for processes
- List processes with loaded DLLs:
tasklist /m
- Process modules via PowerShell:
Get-Process | Select-Object Name, Modules
Windows event logs
- List all event logs:
wevtutil el
- Query system logs:
wevtutil qe /f:text System
- Latest 100 system events:
Get-EventLog -LogName System -Newest 100
- Latest 50 security events:
Get-WinEvent -LogName Security -MaxEvents 50
Running processes
- List running processes:
tasklist
- Running processes (PowerShell):
Get-Process
- Detailed system info:
Get-ComputerInfo
Network configuration
- Show network config:
Get-NetIPConfiguration
- List adapters:
Get-NetAdapter
Installed hotfixes
- List hotfixes:
wmic qfe list
- Hotfixes via PowerShell:
Get-HotFix
Environment variables
- Show environment variables:
set
- PowerShell:
Get-ChildItem Env:
Running tasks
- List scheduled tasks:
schtasks
- PowerShell:
Get-ScheduledTask
System uptime
- Show uptime with server stats:
net stats srv
- PowerShell uptime:
Get-Uptime
PowerShell execution policy
- Show current execution policy:
Get-ExecutionPolicy