Windows binary version: issues with --ntds option
Describe the bug
When I use --ntds option in the Windows compiled binary version (single .EXE file), the tools crashes with EOFError.
To Reproduce
- Compile Windows single binary, as described in the documentation.
- Run NetExec with --ntds option:
.\nxc.exe smb 192.168.144.1 -u syslogagent -H '58a478135a93ac3bf058a5ea0e8fdb71' -d gcbsec.local --ntds
Resulted in:
Expected behavior NTDS.dit extraction
Works fine on my side. Any specifics on how to reproduce the problem?
The only different thing is that I ran nxc.exe within a remote PSSession (this fact generates a double hop issue, but nxc.exe does not seem to use the kerberos session, not worrying about this matter).
The weird thing is that it presented the error only when running with --ntds option. However, if I specified the user to dump --ntds --user administrator, there was no problem:
Hmm okay sounds really weird. I will leave it open for others in the future, but it's really an edge case
Gonna close this for now, retried and i can't reproduce the issue. Probably related to pyinstaller itself