Home Domain Account
Post
Cancel

Domain Account

Domain Account

  • ID : T1087.002
  • Tactic : Discovery
  • Platforms: Windows, linux, macos

Local Account

Adversaries may attempt to get a listing of domain accounts. This information can help adversaries determine which domain accounts exist to aid in follow-on behavior.

Exploitations

Windows

Command Prompt

Users

We can list domain user accounts in windows os by executing the following command in command prompt or powershell.

1
2
3
net user /domain

localaccount

Above image shows the listing of domain user accounts.

Groups

We can list domain groups in windows os by executing the following command in command prompt or powershell.

1
2
3
net group /domain

localaccount

Above image shows the listing of domain groups.

Powerview

Users

We can use powerview to list domain user accounts in windows os. Import powerview script and execute the below command.

1
2
3

get-netuser | select name

localaccount

Above image shows the listing of domain user accounts.

Groups

We can use powerview to list domain groups in windows os. Import powerview script and execute the below command.

1
2
3

get-netgroup | select samaccountname

localaccount

Above image shows the listing of domain groups.

References

This post is licensed under CC BY 4.0 by the author.