Skip to content

Instantly share code, notes, and snippets.

@hal308
hal308 / windows_privesc
Created December 7, 2020 00:18 — forked from sckalath/windows_privesc
Windows Privilege Escalation
// What system are we connected to?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
// Get the hostname and username (if available)
hostname
echo %username%
// Get users
net users
net user [username]