Powerview
Powerview is a powerful powershell script from powershell empire that can be used for enumerating a domain after you have already gained a shell in the system. Powerview is a script part of PowerSploit, which is not a supported project anymore, but still a powerfull post-exploitation tool.
Load Powerview module in powershell
. .\Downloads\PowerView.ps1Next, we can use powerview to get domain users for example:
Get-NetUser | select cnBy piping the output of Get-NetUser to select cn, we only select the cnames of the users:
**PS C:\Users\Administrator> Get-NetUser | select cn**
cn
--
Administrator
Guest
krbtgt
Machine-1
Admin2
Machine-2
SQL Service
POST{P0W3RV13W_FTW}
sshdWe can also find every domain group with the word “Admin” in it:
List all network shares:
Find OS in network:
More commands & cheatsheet:
https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993#file-powerview-3-0-tricks-ps1-L7
Last updated