Basic Windows Commands
Basic enum commands
Enumeration from Windows HostCommand | 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
cmd
powershell
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) / RPCLast updated