Added /u2u option for S4U attack#137
Open
snovvcrash wants to merge 2 commits intoGhostPack:masterfrom
Open
Conversation
Contributor
|
The reason I didn't automate this myself is because I don't see the benefit of automating something that can be performed easily without full automation that causes changes that could disrupt client infrastructures. IMO automating this only benefits people that don't understand what is actually happening, and those people shouldn't be performing this in the first place. Resetting the RC4 key on an account makes the RC4 and AES keys out of sync, which could cause disruption on the network. Anyone that understands what is going on here could easily implement the full automation themselves, so I'd be for leaving this out of the main Rubeus, but ultimately it's up to @HarmJ0y |
Thanks to @waldo-irc for spotting the issue!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey!
In this PR I'd like to bring automatic RBCD exploitation when using a normal user account (i. e., UPNs instead of SPNs). The original research was presented by @tyranid.
One way of abusing RBCD with UPNs without modifying Rubeus goes like this.
msDS-AllowedToActOnBehalfOfOtherIdentityproperty of the SRV01 machine:/ticketand/tgsoptions and specifying the user to impersonate within the/targetuseroption (an S4U2self request):/ticketoption and the forwardable TGS (got from the U2U request) within the/tgsoption (an S4U2proxy request):After merging @vletoux's SetNTLM.ps1 code (which utilizes SamrChangePasswordUser API call) into Rubeus, the NT hash change can be performed automatically providing the
/u2uoption ins4ucommand:I will be happy to update README if you find this addition desirable 😬