Basic CMD for Pentesters
System info
Version and Patches info
wmic os get osarchitecture || echo %PROCESSOR_ARCHITECTURE% #Get architecture
systeminfo
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" #Get only that information
wmic qfe get Caption,Description,HotFixID,InstalledOn #Patches
hostname
DRIVERQUERY #3rd party driver vulnerable?Environment
set #List all environment variablesMounted disks
AV
Recycle Bin
Processes, Services & Software
Domain info
Logs & Events
Users & Groups
Users
Groups
List sessions
Password Policy
Persistence with users
Network
Interfaces, Routes, Ports, Hosts and DNSCache
Firewall
Shares
Wifi
SNMP
Network Interfaces
ARP table
Download
Misc
Listen address ACLs
Manual DNS shell
Victim
Calling CMD from C code
Alternate Data Streams CheatSheet (ADS/Alternate Data Stream)
Last updated