Windows Commands
Basic enum commands
EnumerationCommand | Result |
| Prints the PC's Name |
| Prints out the OS version and revision level |
| Prints the patches and hotfixes applied to the host |
| Prints out network adapter state and configurations |
| Displays a list of environment variables for the current session (ran from CMD-prompt) |
| Displays the domain name to which the host belongs (ran from CMD-prompt) |
| Prints out the name of the Domain controller the host checks in with (ran from CMD-prompt) |
List Local Admins
Privileges
net localgroup
Once connected, we can check to see what privileges bwilliamson
has. We can start with looking at the local group membership using the command:
net user username
- Checking User Account Privileges including Domain
whoami /priv
Add user to admin local group
net user mark Password123 /add && net localgroup administrators mark /add
Mount SMB share
SMB (445, 139)Last updated