dirkjanm / PKINITtools

Tools for Kerberos PKINIT and relaying to AD CS
MIT License
610 stars 76 forks source link

Fixed kdcHost set to None #1

Closed ShutdownRepo closed 3 years ago

ShutdownRepo commented 3 years ago

When requesting for the ticket, the sendReceive() function was called with the kdcHost argument set to None, preventing the script to work when not having DNS resolution set properly on the host.

python3 getnthash.py -key "2ddb [...] 9969" -dc-ip "192.168.56.101" "domain.local/user2"
Impacket v0.9.24.dev1+20210706.140217.6da655ca - Copyright 2021 SecureAuth Corporation

[*] Using TGT from cache
[*] Requesting ticket to self with PAC
[-] [Errno Connection error (DOMAIN.LOCAL:88)] [Errno -2] Name or service not known
dirkjanm commented 3 years ago

good catch, thanks!