Skip to content

feat(secretsdump): support -just-dc-user in VSS - #2378

Open
CobblePot59 wants to merge 1 commit into
fortra:masterfrom
CobblePot59:feat/just-dc-user-vss
Open

CobblePot59 wants to merge 1 commit into
fortra:masterfrom
CobblePot59:feat/just-dc-user-vss

Conversation

@CobblePot59

Copy link
Copy Markdown

Previously -just-dc-user was rejected when combined with -use-vss (or the WMI shadow snapshot NTDS method), even though filtering a single account out of an offline NTDS.DIT only requires a sAMAccountName match.

Add an offline equivalent of the DRSUAPI -just-dc-user targeting: a new __isRequestedUser() helper compares each datatable record sAMAccountName against the requested account (accepting DOMAIN\user, DOMAIN/user or bare user, case-insensitively) and is applied to both the cached users and the main datatable loop.

image

…ot modes

Previously -just-dc-user was rejected when combined with -use-vss (or the
WMI shadow snapshot NTDS method), even though filtering a single account
out of an offline NTDS.DIT only requires a sAMAccountName match.

Add an offline equivalent of the DRSUAPI -just-dc-user targeting: a new
__isRequestedUser() helper compares each datatable record sAMAccountName
against the requested account (accepting DOMAIN\user, DOMAIN/user or bare
user, case-insensitively) and is applied to both the cached users and the
main datatable loop.

-ldapfilter stays unsupported in these modes since it relies on a live
LDAP query against the DC, which has no offline equivalent here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant