Skip to content

Commit

Permalink
Add UserResetInformation to samr.py in USER_INFORMATION_CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamkadaban committed May 8, 2024
1 parent 4e3e668 commit 7b4611d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions impacket/dcerpc/v5/samr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,12 @@ class SAMPR_USER_INTERNAL5_INFORMATION_NEW(NDRSTRUCT):
('PasswordExpired', UCHAR),
)

class SAMPR_USER_RESET_INFORMATION(NDRSTRUCT):
structure = (
('ExtendedWhichFields', ULONG),
('ResetData', RPC_UNICODE_STRING),
)

# 2.2.7.28 USER_INFORMATION_CLASS
class USER_INFORMATION_CLASS(NDRENUM):
class enumItems(Enum):
Expand All @@ -1093,6 +1099,7 @@ class enumItems(Enum):
UserInternal5Information = 24
UserInternal4InformationNew = 25
UserInternal5InformationNew = 26
UserResetInformation = 30

# 2.2.7.29 SAMPR_USER_INFO_BUFFER
class SAMPR_USER_INFO_BUFFER(NDRUNION):
Expand Down Expand Up @@ -1120,6 +1127,7 @@ class SAMPR_USER_INFO_BUFFER(NDRUNION):
USER_INFORMATION_CLASS.UserInternal5Information : ('Internal5', SAMPR_USER_INTERNAL5_INFORMATION),
USER_INFORMATION_CLASS.UserInternal4InformationNew: ('Internal4New', SAMPR_USER_INTERNAL4_INFORMATION_NEW),
USER_INFORMATION_CLASS.UserInternal5InformationNew: ('Internal5New', SAMPR_USER_INTERNAL5_INFORMATION_NEW),
USER_INFORMATION_CLASS.UserResetInformation : ('Reset', SAMPR_USER_RESET_INFORMATION),
}

class PSAMPR_USER_INFO_BUFFER(NDRPOINTER):
Expand Down

0 comments on commit 7b4611d

Please sign in to comment.