Windows Privesc Flashcards
What is the command for systeminfo?
systeminfo
What is the command for the hostname?
hostname
What is the command for the user context?
whoami
What is the command for the user context and privs (potato exploits)?
whoami /priv
Once we have the username, what command produces more information?
net user “username”
How do we discover other users on the system?
net user
How do we enumerate the operating systems architecture?
systeminfo | findstr /B /C:”OS Name” /C:”OS Version” /C:”System Type”
How do we enumerate running services and processes?
tasklist /SVC
How do we enumerate Networking Information?
ipconfig /all
How do we enumerate routing tables?
route print
How do we enumerate active network connections?
netstat -ano
How do we enumerate active firewall status?
netsh advfirewall show currentprofile
How do we enumerate active firewall rules?
netsh advfirewall firewall show rule name=all
How do we enumerate scheduled tasks?
schtasks /query /fo LIST /v
How do we enumerate installed applications?
wmic product get name, version, vendor