haveibeenpwned-downloader 0.5.21

dotnet tool install --global haveibeenpwned-downloader --version 0.5.21                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local haveibeenpwned-downloader --version 0.5.21                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=haveibeenpwned-downloader&version=0.5.21                
nuke :add-package haveibeenpwned-downloader --version 0.5.21                

What is haveibeenpwned-downloader?

haveibeenpwned-downloader is a dotnet tool to download all Pwned Passwords hash ranges and save them offline so they can be used without a dependency on the k-anonymity API.

An alternative to running this tool is to use Zsolt Müller's cURL approach in https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader/issues/79 that makes use of a glob pattern and parallelism.

Installation

Prerequisites

You'll need to install the latest LTS (Long Term Support) version of the .NET SDK to be able to install the tool.

How to install

  1. Open a command line window
  2. Run dotnet tool install --global haveibeenpwned-downloader

Troubleshooting

If the installer is unable to resolve the package, then you can run the following and then try again.

dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

Usage Examples

Windows

Download all SHA1 hashes to a single txt file called pwnedpasswords.txt

haveibeenpwned-downloader.exe pwnedpasswords

Download all SHA1 hashes to individual txt files into a custom directory called hashes

haveibeenpwned-downloader.exe pwnedpasswords -s false

Download all NTLM hashes to a single txt file called pwnedpasswords_ntlm.txt

haveibeenpwned-downloader.exe -n pwnedpasswords_ntlm

Linux

Download all SHA1 hashes to a single txt file called pwnedpasswords.txt :

haveibeenpwned-downloader pwnedpasswords

Download all SHA1 hashes to individual txt files into a custom directory called hashes:

haveibeenpwned-downloader pwnedpasswords -s false

Download all NTLM hashes to a single txt file called pwnedpasswords_ntlm.txt :

haveibeenpwned-downloader -n pwnedpasswords_ntlm

Additional parameters

Parameter Default value Description
-s/--single true Determines wether to download hashes to a single file or as individual .txt files into another directory
-p/--parallelism Same as Environment.ProcessorCount Determines how many hashes to download at a time
-o/--overwrite false Determines if output files should be overwritten or not
-n (none) When set, the downloader fetches NTLM hashes instead of SHA1

Additional usage examples

Download all hashes to individual txt files into a custom directory called hashes using 64 threads to download the hashes

haveibeenpwned-downloader.exe hashes -s false -p 64

Download all hashes to a single txt file called pwnedpasswords.txt using 64 threads, overwriting the file if it already exists

haveibeenpwned-downloader.exe pwnedpasswords -o -p 64

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.5.21 1,422 11/4/2024
0.5.20 7,466 5/29/2024
0.5.15 7,888 11/14/2023
0.4.14 472 11/14/2023
0.3.12 9,430 3/19/2023
0.3.11 749 3/19/2023
0.3.10 1,215 3/9/2023
0.2.8 1,446 2/7/2023
0.2.7 2,124 5/19/2022
0.1.5 960 5/11/2022
0.1.4 926 5/11/2022
0.1.3 824 5/11/2022
0.1.2 896 5/11/2022
0.1.1 1,080 5/10/2022