csababarta / ntdsxtract

Active Directory forensic framework
http://www.ntdsxtract.com
GNU General Public License v3.0
311 stars 109 forks source link

python3 ERROR #39

Open hi2hi2 opened 2 years ago

hi2hi2 commented 2 years ago

Hi, when trying to run dsusers in python3 , i got an error "_CM_KEY_NODE" has no attribute "SubKeyLists",What can I do? thanks so much.

marksteward commented 1 year ago

That'll be caused by this line. I'd capture the exception and log out what it actually is (maybe this, for example).

ixd704 commented 1 year ago

if sys.version_info < (3,): def has_key (self, k: _KT) -> bool:... is the problem. object.py line 146 elif not types.has_key(current_type): is using a builtin sys def that is not available in python 3+ so it pukes.

marksteward commented 4 months ago

I think you must be running someone else's patch for Python 3 support. The current code looks nothing like that.