Closed Signum21 closed 8 months ago
Hi @Signum21, thanks for your report!
Tried in my environment here and was able to replicate the issue when the user with which I'm authenticating is not administrator. Tried with administrator, and the example worked fine.
Checking the net.py
implementation I found that we are asking a different DesiredAccess for that call.
https://github.com/fortra/impacket/blob/fa59178fe5631100d5ccaf5d71132310699e02cf/examples/net.py#L103-L106
(While for the other objects we are asking for samr.MAXIMUM_ALLOWED
)
Later today will create a PR changing the needed access and will let you know so you can also validate those changes.
thank you!
Configuration
impacket version: Impacket v0.11.0 Python version: Python 3.11.7 Target OS: Windows Server 2019
Debug Output With Command String
Not working example specifying username
Working example without specifying username
PCAP
None
Additional context
Tested on https://tryhackme.com/room/resetui