csababarta / ntdsxtract

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

Error in sys.excepthook: #31

Open chukytron opened 3 years ago

chukytron commented 3 years ago

hi i have tried to run the following in my kali vm by aws, and found the following issue:

/usr/share/doc/python3-impacket/examples/ntdsxtract# python3 dsusers.py /usr/local/bin/ntds.dit.export/datatable.4 /usr/local/bin/ntds.dit.export/link_table.6 --lmoutfile lm.out --ntoutfile nt.out --syshive SYSTEM.bin --passwordhashes --pwdformat john Error in sys.excepthook: Traceback (most recent call last): File "/usr/share/doc/python3-impacket/examples/ntdsxtract/ntds/init.py", line 31, in simple_exception sys.stderr.write("[!] Error!", value, "\n") TypeError: write() takes exactly one argument (3 given)

Original exception was: Traceback (most recent call last): File "dsusers.py", line 27, in from ntds.dsdatabase import * File "/usr/share/doc/python3-impacket/examples/ntdsxtract/ntds/dsdatabase.py", line 370 else: ^ TabError: inconsistent use of tabs and spaces in indentation

can someone please help on solving this ? thanks so much.

ConsT27 commented 2 years ago

use python2