fortra/impacket

Samba secretsdump.py not working

Open

#991 opened on Nov 11, 2020

View on GitHub
 (15 comments) (0 reactions) (0 assignees)Python (3,421 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (12,244 stars)
PR merge metrics
 (Avg merge 30d 8h) (10 merged PRs in 30d)

Description

Configuration

impacket version: latest (from git) Target OS: Ubuntu 16.04 Samba Version : 4.3.8

Debug Output With Command String

Password:
[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
[-] DRSR SessionError: code: 0x20e4 - ERROR_DS_CANT_FIND_EXPECTED_NC - The naming context could not be found.
[*] Something wen't wrong with the DRSUAPI approach. Try again with -use-vss parameter
[*] Cleaning up... ```

Additional context

Hi,

When trying to secretsdump.py -no-pass -just-dc Domain/'DC_NETBIOS_NAME$'@DC_IP_ADDR into my SAMBA AD DC I face an error message. I Wanted to know if it was related to the implementation of secretdump or If I could have missed something during my samba configuration.

Thanks and have a great week 👍

Contributor guide