Commit Graph

8 Commits

Author SHA1 Message Date
shellinvictus bf2d749f49 dacledit.py: -mask added + bugfix (#1912)
* examples/dacledit.py: added parameter -mask for custom rights

* examples/dacledit.py: fix bad mask parsing

---------

Co-authored-by: shellinvictus <shellinvictus@localhost>
2025-07-10 09:20:41 -03:00
Gabriel Gonzalez fde4265abd Adding "-dc-host" parameter to dacledit.py, owneredit.py, rbcd.py. Reintroduced SessionError:"STATUS_NOT_SUPPORTED" in function _get_machine_name now that all these examples have "-dc-host" parameter. (#1940) 2025-05-08 10:48:19 -03:00
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
Jannik Vieten 835e17550b Fixed warnings with Python 3.12 (#1695)
* fixed SyntaxWarnings due to invalid escape sequence

* fixed DeprecationWarning since datetime.datetime.utcnow() is deprecated in Python 3.12+

* fixed DeprecationWarning since datetime.datetime.utcfromtimestamp() is deprecated in Python 3.12+
2024-10-24 09:00:11 -03:00
gabrielg5 27e7e7478d Updating copyright banner... 2024-08-28 17:52:57 -03:00
adrian manrique 269ce69872 updated copyright notice 2024-05-17 09:16:10 -03:00
adrian manrique 4a42d5c405 Update copyright notice 2024-04-26 16:11:56 -03:00
Charlie Bromberg 65f440774e [dacledit.py] New example script for DACL manipulation (#1291)
* Laying ground

* adding base for DACL parsing

* Read Write and Remove now work partially, GenericAll issue left to deal with

* Slightly improved printing and populated GUIDs

* Refactored some bits, read/write/remove fully functional

* Added backup and restore

* Add comments, improve logging and Exception handling corrections

* Typo error

* Improving restore logic

* Adding exception for read filtering

* Denied ACE now handled

* Fixed Kerberos authentication error.

* Fixing incomplete access mask parsing

* Fix principal & target arg descriptions

* Removing debug code

* Fixing and clarifying access masks and descriptions

* Clarifying debug message

* Description update of dacledit.py

* Fixing logic error that was overwriting files

* Fixed Logging Output

* Add the possibility to specify inheritance in the ACE flag

* Explicitly indicating flags instead of hardcoded value

* adding log: adminCount=1 will prevent ACE inheritance

* Changing ACE mask for WriteMembers as it's not an extended right

---------

Co-authored-by: BlWasp <blwasp@github.com>
Co-authored-by: TahiTi <flo.boud@gmail.com>
Co-authored-by: synzack <zachinfosec@gmail.com>
2024-04-26 10:50:25 -03:00