Lateral Movement
01. Common commands
01.1 OS Enumerations
## ------------------| Get Basic details
systeminfo
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
whoami /all
[System.Environment]::OSVersion.Version
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion, OsHardwareAbstractionLayerVersion
(Get-ItemProperty "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion").ReleaseId
## ------------------| Get environment paths
##[Powershell]
Get-ChildItem Env: | ft Key,Value
dir env:
## ------------------| Get .Net Version (cmd/ps)
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
## ------------------| Get System Architecher 32 or 64
##[Powershell]
$env:PROCESSOR_ARCHITECTURE
[Environment]::Is64BitProcess
[Environment]::Is64BitOperatingSystem
##[cmd]
set processor
## ------------------| Extract os patchs and updates
wmic qfe
## ------------------| List all installed software with patches (
wmic product get name, version, vendor
## ------------------| List all disk
mountvol
wmic logicaldisk get caption,description,providername
## ------------------| List firewall state and current configuration
netsh advfirewall firewall dump
netsh firewall show state
netsh firewall show config
netsh advfirewall firewall show rule name=all01.2 User Enumerations
01.3 Network Enumeration
01.4 Process / Service Enumeration
01.5 Registry Enumeration
01.6 File Enumeration
01.7 Firewall / Defender
01.7.1 Firewall
01.7.2 Antivirus & Detections | Disable Defender
01.8 Default Locations
01.9 Policy Bypassing
01.10 Upload / Download / Execute
01.11 Encoding / Decoding
01.12 Dumping Credentials
01.13 Other
02. Defense Evasion Techniques
03. Scripts
Last updated
