Linux AD Lab
Home
  • 💕Altered Security
  • Course Content
  • Port Scanning
    • List of Tools
    • Hands-on 1
  • 4️⃣Meta sploit
    • Page 10
    • Hands-On 2
  • 5️⃣Domain Enumeration
    • AD Module and PowerView
    • Hand-On 3
  • 6️⃣Lateral-Movement - Extracting Credential
    • 🔥Credentials
    • Hans-On 4
  • 7️⃣Lateral-Movement - Credential Spraying
    • Spraying Attack
    • Hands-On 5
  • 8️⃣Lateral-Movement - PS Remoting
    • Live of the Land
    • Hands-On 6
  • Application Whitelisting
    • AWL Bypass
    • Hand-On 7
  • Abusing-SQL Servers
    • Page 4
  • ACL Attacks
    • Page 5
  • Domain Privilege Escalation
    • Page 6
  • Domain Dominance
    • Page 7
  • Detection And Defense
    • Page 8
  • Data
    • COLA-FILESRV
    • COLA-SRV2
    • COLA-SAFE
Powered by GitBook
On this page
  • PowerView Enumeration
  • AD Module Enumeration

Was this helpful?

  1. Domain Enumeration

AD Module and PowerView

  • Generate Metasploit payloads using msfvenom

  • Using Metasploit payloads with an AMSI bypass stager from memory

Tools

Tool
GIT

AD Module

PowerView

SharpView

PowerView Enumeration

Command
Description

Get-NetDomain

Get current domain

Get-DomainSID

Get domain SID for the current domain

Get-NetDomainController

Get domain controllers for the current domain

Get-NetUser

Get-NetUser –Username fileadmin

Get a list of users in the current domain

Find-UserField -SearchField Description -SearchTerm "built"

Search for a particular string in a user's attributes

Get-NetComputer Get-NetComputer –OperatingSystem "Server 2019"

Get a list of computers in the current domain

Get-NetGroup

Get all the groups in the current domain

Get-NetGroupMember -GroupName "Domain Admins" -Recurse

Get all the members of the Domain Admins group

Get-NetGroup –UserName "fileadmin"

Get the group membership for a user

AD Module Enumeration

Command
Description

Get-ADDomain

Get current domain

(Get-ADDomain).DomainSID

Get domain SID for the current domain

Get-ADDomainController

Get domain controllers for the current domain

Get-ADUser -Filter * -Properties *

Get-ADUser -Identity fileadmin -Properties *

Get a list of users in the current domain

Get-ADUser -Filter 'Description -like "built"' -Properties Description | select name,Description

Search for a particular string in a user's attributes

Get-ADComputer -Filter * | select Name Get-ADComputer -Filter 'OperatingSystem -like "Server 2019"' - Properties OperatingSystem | select Name,OperatingSystem

Get a list of computers in the current domain

Get-ADGroup -Filter * | select Name

Get all the groups in the current domain

Get-ADGroupMember -Identity "Domain Admins" -Recursive

Get all the members of the Domain Admins group

Get-ADPrincipalGroupMembership -Identity fileadmin

Get the group membership for a user

PreviousHands-On 2NextHand-On 3

Last updated 1 year ago

Was this helpful?

5️⃣
https://github.com/samratashok/ADModule
https://github.com/PowerShellMafia/PowerSploit
https://github.com/tevora-threat/SharpView