Situational Awareness

In this section we will show basic commands to gather enough information about our current situation and how we can use it to escalate privilege.

Current User

Privileges

whoami /priv

Groups Member

whoami /groups

Command History

Get-History
(Get-PSReadlineOption).HistorySavePath

Saved Credentials

cmdkey /list
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

Users

cmd.exe

net user

powershell.exe


Groups

cmd.exe

powershell.exe


System Information


Network Information


Processes

cmd.exe

powershell.exe


Installed Programs

32-bit

64-bit


Files


Winpeas.exe

Last updated