Skip to main content

secretsdump-ng

Credential dumping tool that uses DSInternals for extracting credentials from Windows systems, using any available command-execution port (rather than relying on 445).

Massive props to DSInternals & Impacket; this tool really isn't anything revolutionary and uses the impressive work already completed by Michael Grafnetter and the Fortra team.

Features

  • NTDS.DIT extraction using DSInternals on Domain Controllers
  • Registry hive dumping (SAM, SYSTEM, SECURITY) on Windows Servers
  • Multi-threaded operations for dumping from multiple hosts
  • Secure transfer of credentials via HTTPS
  • Filtered extraction - dump only specific users with --just-dc-user
  • --skip-portscan to bypass AuthFinder's port check when ports are filtered but accessible

Usage

# Dump all credentials from a single host
secretsdump-ng 192.168.1.10 username password

# Dump from multiple hosts using IP range
secretsdump-ng 192.168.1.10-20 username password

# Dump only a specific user
secretsdump-ng 192.168.1.10 username password --just-dc-user administrator

# Use more threads for faster scanning
secretsdump-ng 192.168.1.1-254 username password --threads 20

# Skip portscan (useful when ports appear filtered but are accessible)
secretsdump-ng 192.168.1.10 username password --skip-portscan

# Verbose output
secretsdump-ng 192.168.1.10 username password -v

How It Works

  1. Sets up HTTPS server on port 1338 to receive credential dumps
  2. Executes PowerShell remotely on target systems using AuthFinder
  3. Extracts registry hives (SAM, SYSTEM, SECURITY) from all Windows systems
  4. Extracts NTDS.DIT using DSInternals on Domain Controllers
  5. Processes and formats credentials using impacket-secretsdump
  6. Saves output to ./secretsdump_ng_out/[IP]/secretsdump.out

Admin accounts are highlighted with (admin) tag. Machine accounts are sorted to the bottom.

Security Notes

  • Uses temporary SSL certificates for HTTPS transfers
  • Temporary files on target systems are stored in $env:TEMP and cleaned up after extraction

License

MIT License - see LICENSE file for details

Disclaimer

This tool is intended for authorized security assessments only. Ensure you have proper authorization before using this tool on any systems.

Metadata

Release files for secretsdump-ng 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secretsdump-ng 1.1.3
File Size Uploaded Provenance Actions
secretsdump_ng-1.1.3.tar.gz 11.9 kB Without provenance Details for secretsdump_ng-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secretsdump-ng 1.1.3
File Interpreter ABI Platform Actions
secretsdump_ng-1.1.3-py3-none-any.whl Python 3 none any Details for secretsdump_ng-1.1.3-py3-none-any.whl

Total release size: 23.3 kB

Release files / secretsdump_ng-1.1.3.tar.gz

Download URL secretsdump_ng-1.1.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
47b5549cfdf94ddf327a70df633247c4ff55640ccbd11c4737f4a4b428accb80
BLAKE2b-256 checksum
How to use checksums
df65d0b53be3cf26ec1fbaf188cfaaf90cb81dac7daa354ea6c6370cabae8eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / secretsdump_ng-1.1.3-py3-none-any.whl

Download URL secretsdump_ng-1.1.3-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afd2e42c848ef89d71cc1957b8c14fa27cf6780ae30809a9610e651a0a70df04
BLAKE2b-256 checksum
How to use checksums
887247ec8f8a8a78d90744a735a7400f7923889ec7490cadda09617cb16b7502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for secretsdump-ng 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page