Skip to content

Commit

Permalink
call function create account with according flags in net.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobarlottini committed Dec 20, 2024
1 parent 19474de commit 4f969c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def Create(self, name, new_password, new_nt_hash=''):
samr.hSamrDeleteUser(self._dce, user_handle)
raise
else:
self._hEnableAccount(user_handle)
self._hEnableAccount(user_handle, self._create_account_type | samr.USER_ACCOUNT_DISABLED)
finally:
self._close_domain()

Expand Down

0 comments on commit 4f969c6

Please sign in to comment.