Skip to main content
Impacket provides powerful tools for extracting credentials from Windows systems, both locally and remotely.

secretsdump.py

The most comprehensive credential dumping tool. Extracts SAM, LSA secrets, cached credentials, and NTDS.dit without executing code on the target.

Dump Methods

Advanced Options

Example Output

Common Use Cases

Get-GPPPassword.py

Extracts credentials from Group Policy Preferences (GPP) in SYSVOL. Finds passwords stored in Groups.xml.

Usage

Example Output

GetLAPSPassword.py

Retrieves LAPS (Local Administrator Password Solution) passwords from Active Directory.

Usage

Example Output

Additional Tools

dpapi.py

Decrypt DPAPI-protected data (credentials, certificates, keys).

mimikatz.py

Execute Mimikatz-style DPAPI operations.

ntlmrelayx.py

Relay NTLM authentication to dump credentials (advanced).

Password Cracking

After dumping credentials, crack them with John the Ripper or Hashcat:

Detection & Evasion

Credential dumping activities are heavily monitored in modern environments. These techniques generate significant logs and alerts.

Detection Indicators

  • Event ID 4688: Process creation (reg.exe, vssadmin.exe)
  • Event ID 4663: Registry access to SAM/SECURITY/SYSTEM
  • Event ID 5145: Network share access (ADMIN,C, C)
  • Event ID 4662: Directory Service Access (DCSync)
  • Event ID 4624/4672: Privileged logon
  • SMB connections to ADMIN/C/C shares
  • RPC calls to SAMR/DRSUAPI
  • Registry service activation
  • Volume Shadow Copy creation

Common Issues

Best Practices

Authorization

Only dump credentials on systems you’re authorized to test

Secure Storage

Encrypt and securely store dumped credentials

Clean Up

Remove artifacts and restore services to original state

Documentation

Document all dumps for audit trail and reporting

Next Steps

Kerberos Attacks

Use dumped credentials for Kerberos attacks

Remote Execution

Execute commands with dumped credentials

Lateral Movement

Move across the network with credentials