~/d4nnyX

← CPTS

Password Attacks

Credentials · CPTS

  • Credentials
  • Hashcat
  • Spraying

The idea

Most compromises are a credential problem, not an exploit. This module is about three distinct moves: guessing weak passwords safely, cracking hashes I have captured, and looting passwords that are already stored on a box I control.

How I work through it

Spraying over brute force. Against a domain I try one likely password across many users, not many passwords against one user — that avoids lockouts:

nxc smb 10.10.10.10 -u users.txt -p 'Winter2026!' --continue-on-success

Cracking captured hashes. Identify the type, then run a wordlist with rules before anything heavier:

hashcat -m 1000 ntlm.hashes rockyou.txt -r rules/best64.rule

Looting the host. Once I have a foothold I search for credentials in config files, history, and credential stores — on Windows that means the SAM/LSASS and DPAPI, on Linux it is config files, .bash_history and SSH keys.

Pitfalls I watch for

  • Check the account-lockout policy before spraying. One careless run can lock out a whole domain and end the test early.
  • Match the Hashcat mode to the hash exactly — NTLM, NetNTLMv2 and Kerberos hashes look similar but need different modes.
  • Reuse is everything: a password cracked on one service should be tried everywhere before moving on.

Takeaway

Spray quietly, crack efficiently, and always loot a new host for stored secrets — the next set of credentials is usually sitting on the machine you just landed on.