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
When requesting for the ticket, the
sendReceive()
function was called with thekdcHost
argument set to None, preventing the script to work when not having DNS resolution set properly on the host.