First, get more info on system.
-
systeminfo
,whoami /priv
*,set
orecho %username%
- check for Hotfixes, OS name, version, arch, environment variables & system (vm). Then look for vulns respective of system.
-
reg query HKLM /f password /t REG_SZ /s
,wmic
orsc query
- check for PS version, see if we can run reg query, wmic or sc commands for further info on system.
*Privilege escalation by abusing token privilege (foxglovesecurity blog). Required permission to escalate:
- SeImpersonatePrivilege