Commit Graph

8 Commits

Author SHA1 Message Date
Gabriel Gonzalez ae0ec300f8 Techdebt examples bootstrapping v2 (#1928)
* Standardized examples logger init method

* Fixing missing import

* Standardized examples init_ldap_session function #1

* Calling new shared function _ldap3_kerberos_login from example addcomputer

* Removed considering -debug in each example. Now it's handled in utils.

* Standardized EMPTY_LM_HASH in impacket.examples.utils

* Unify parse_identity function (phase 1)

* Standardized parse_identity

* Renamed "_ldap3_kerberos_login" to "ldap3_kerberos_login" (as it is called from outside)

* Standardize "logger" init in regsecrets.py

* Standardized LDAP login into a single function in utils.py:ldap_login
2025-03-26 22:58:39 -03:00
marcobarlottini c1a53aaa13 feat in net.py: add functionality to enable and disable user accounts (#1801)
* feat in net.py: add functionality to enable and disable user accounts

* fix: do not overwrite flags when enabling/disabling accounts

* call function create account with according flags in net.py

* refactor keep uac flags out of parameters of enable,disable function definitions
2024-12-20 16:36:08 -03:00
gabrielg5 27e7e7478d Updating copyright banner... 2024-08-28 17:52:57 -03:00
marcobarlottini 9956d4529e bugfix in net.py: show user account enabled or not enabled (#1797) 2024-08-27 17:47:40 -03:00
Gabriel Gonzalez 3ee3bb46d7 Change desiredAccess to MAXIMUM_ALLOWED when getting user_handle in net.py. We could receive ACCESS_DENIED if authenticated user was not admin with previous value (USER_ALL_ACCESS) (#1708) 2024-03-04 18:22:37 -03:00
Cyber Celt 3aa037d9d9 Update net.py (#1616)
Fixed the join and unjoin text as it was the wrong way around
2023-10-04 19:20:09 -03:00
Gabriel Gonzalez 9b4a139405 Updated Copyright to 2023 2023-07-31 11:48:28 -03:00
Alex Romero fdbd25684f add net.py to examples (#1382)
* add net.py

* Update net.py

* Update file banners to reflect Fortra ownership

---------

Co-authored-by: Alexio2 <colorain@protonmail.com>
Co-authored-by: Alexio2 <110637492+Alexio2@users.noreply.github.com>
2023-07-18 10:05:45 -03:00