Using Powerview

Powerview is a powershell script used popularly for enumeration of an Active Directory. The powerview script can be downloaded from the following link,

https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1arrow-up-right

Once the script is made available in the sytem being exploited, it has to be imported using the following command,

Import-Module .\PowerView.ps1

Once the import is successful the following commands can be used to extract the info,

chevron-rightGet Domain Informationhashtag
Get-NetDomain
chevron-rightList active session in DChashtag
Get-NetSession -ComputerName p42dc
chevron-rightList all usershashtag
Get-NetUser
chevron-rightList Groupshashtag
Get-NetGroup
chevron-rightList Computer Objects in Domainhashtag
chevron-rightFind User-System pair with Admin Accesshashtag
chevron-rightFind Logged in Usershashtag
chevron-rightFind SPNshashtag
chevron-rightEnumerate Domain Shareshashtag

The above command lists all active sessions present with the domain controller. The system mentioned in the command has to be the domain controller.

Last updated