4 ms·
How can you download the entire dataset?
by ekjhgkejhgk 1y ago
How can you download the entire dataset?
- MattSteelblade 1y agoSeveral open source tools can be found on GitHub, but here’s the “official” one https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader
- windsurfer 1y agoYou can download the entire dataset using curl (will be 40+ GB) curl -s --retry 10 --retry-all-errors --remote-name-all --parallel --parallel-max 150 "https://api.pwnedpasswords.com/range/{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}"
- ekjhgkejhgk 1y agoIt's not that I couldn't have written that oneliner, it's that I assumed you'd get blocked very quickly.
- windsurfer 1y agoIt is officially recommended by the Troy Hunt: https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader/issues/79#issuecomment-2407963141 https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader/i...
- ekjhgkejhgk 1y agoThat's crazy, thank you.
- ErroneousBosh 1y agoThat speaks to a certain confidence in one's servers ability to hold up under load, doesn't it? "Oh you want your own copy? Sure, just thrash seven shades of shit out of the database. Here's how."
- ekjhgkejhgk 1y agoConfidence in Cloudflare, for sure.
- rjmunro 1y agoIt's not a database, it's just files. And they are hosted by Cloudflare so they can cope with a lot of downloads. I think he should make the files smaller my removing the second half of the hashes, i.e. reduce it from 40 hex digits to 20. This increases the change of a false positive (i.e. I enter my password, it says it was compromised but it wasn't, it just has the same hash as one that did) from 1 in 10^48 to 1 in 10^24 (per password), but that's still a huge number. (There's less than 10^10 people in the world, they only have a few passwords each). This will approximately halve the download, maybe more because the first half of each hash is more compressible (when sorted) the second half is totally random.
- ekjhgkejhgk 1y ago> It's not a database, it's just files. And they are hosted by Cloudflare so they can cope with a lot of downloads. Database: a usually large collection of data organized especially for rapid search and retrieval (as by a computer) [1] It is a database. Stop nitpicking. [1] https://www.merriam-webster.com/dictionary/database https://www.merriam-webster.com/dictionary/database
- junon 1y agoYou are being purposefully obtuse here. HIBP is a very, very well established site with a long history of operating in good faith.
- ekjhgkejhgk 1y ago> > It's not that I couldn't have written that oneliner, it's that I assumed you'd get blocked very quickly. > junon https://news.ycombinator.com/user?id=junon https://news.ycombinator.com/user?id=junon > You are being purposefully obtuse here. HIBP is a very, very well established site with a long history of operating in good faith. Allowing people to query and someone downloading the entire dataset is normally considered abuse, so being blocked is the expectation here. You're so dense you're bending light around you.