You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can leverage the ability to write the target user's `servicePrincipalName` property (`GenericAll` or `GenericWrite` access required) to create a fake SPN and Kerberoast it like a normal service account and recover the target user's password via offline cracking. However, our ability to recover the plaintext password depends on the user's password strength.
37
42
@@ -149,3 +154,29 @@ Then, we may use [Rubeus](https://github.com/GhostPack/Rubeus) to request a TGT
- If you get `KRB-ERROR (14) : KDC_ERR_ETYPE_NOTSUPP`, try setting `/enctype:aes128` or `/enctype:aes256`.
157
+
158
+
## Modify Ownership
159
+
If we are able to modify the owner object over a user account, we can change the owner to an object we control and give that object full control access, allowing us to use any of the three methods above to take control of the target user account.
160
+
161
+
### Linux Perspective
162
+
We use `owneredit.py` from Impacket to change the ownership of the user to an account we control.
The PowerView function `Set-DomainObjectOwner` may be used to change the ownership of a user object from a domain-joined Windows machine. It must be ran from a process under the context of the user who has the access to modify ownership information over the target user, or we can create a PSCredential object, alternatively.
Copy file name to clipboardExpand all lines: content/en/docs/active_directory/movement/acl_abuse/group.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,13 @@ weight: 2
9
9
Member principals within a Active Directory group automatically inherits the accesses and privileges granted to that group. If the principal we control have sufficient privileges over a group (`GenericAll`, `GenericWrite`, `AllExtendedRights` or `Self-Membership`), we can add another principal (e.g. a low-priv user) to the group so the principal inherits all access rights granted to the group.
10
10
11
11
## Linux Perspective
12
-
From a Linux attacker machine, we can use bloodyAD to add a user to a group.
12
+
From a Linux attacker machine, we can use bloodyAD or NetExec to add a user to a group.
0 commit comments