-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I see somewhere, if there is a new version? #29
Comments
I would also like to be able to detect that new passwords were added before re-downloading and re-importing the entire 30GB blob of data. I supposed that it's likely that new data is added frequently, however if we could access this corpus with something like rsync which could only pull down new data instead of the whole shebang, that would certainly be a time savings. |
you have closed this one and not answered it. Issue #31 is also closed and unanswered even though you've marked it a duplicate of this bug, so there is no clear answer to this issue? |
This issue seems open to me. |
This issue also seems to be open to me.
Von: Chris ***@***.***>
Gesendet: Samstag, 18. März 2023 11:17
An: HaveIBeenPwned/PwnedPasswordsDownloader ***@***.***>
Cc: jobifis ***@***.***>; Author ***@***.***>
Betreff: Re: [HaveIBeenPwned/PwnedPasswordsDownloader] Can I see somewhere, if there is a new version? (Issue #29)
This issue seems open to me.
—
Reply to this email directly, view it on GitHub <#29 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6AYK3B57BV5Y5HNMZ5EYS3W4WDSZANCNFSM6AAAAAAV2IYXBA> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/A6AYK3ANCSBEIOL6QYN5ZXLW4WDSZA5CNFSM6AAAAAAV2IYXBCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSX466S4.gif> Message ID: ***@***.*** ***@***.***> >
|
We don't currently have incremental updates. Hash ranges do return ETags but we haven't added support for that to the downloader yet. |
We are just in the middle of migrating our downloading tasks from the old cloudflare single version ( We would also be very happy to receive incremental updates. @stebet or @troyhunt My question is, will the For example with powershell: # specific range
$Url = 'https://api.pwnedpasswords.com/range/9A674'
# example date 30 days ago
$DBLastModifiedDate = (Get-Date).AddDays(-30)
$Request = Invoke-WebRequest $url
# get last-modified timestamp from response header as powershell datetime
$RemoteLastModifiedDate = [datetime][string]$Request.Headers.'Last-Modified'
# if last-modified timestamp is newer than the specified date start a new download
if ($RemoteLastModifiedDate -gt $DBLastModifiedDate) {
....
} Thanks for your help |
It should only update on the affected range. We also have ETags that you can use to detect changes. |
@stebet Thanks! Then currently for my purpose the only way would be to trigger the update on a regular basis, e.g. every 30 days because I have no way to detect general changes in the database, right? |
Correct |
Same problem for me. Blindly downloading 30 GB without knowing if updates are available is unacceptable for me. |
I think a new api endpoint is needed. e.g. curl https://api.pwnedpasswords.com/count Where the first number is how many hashes contain that prefix and the second number is the sum of the occurrences of each hash. |
Hello All, I have created a tool that does the same job using PHP: I hope someone finds it useful. Thanks. |
Nice one, gave you a shout-out here: https://twitter.com/troyhunt/status/1803413986785870323 |
I have updated my downloader tool with a lot of options. You can now download, update, sort, cache, index hash files with the tool. I have also added a password lookup tool from CLI, which you can integrate into your PHP code. Also, regarding this issue, read this wiki page: I hope the tool helps someone. Cheers! |
It seems that https://hibp-downloader.readthedocs.io/en/latest/ manages to only download ranges that have changed based on the etag. https://github.com/threatpatrols/hibp-downloader |
Update: hibp-downloader takes days for the initial download (the same connection and the official downloader takes about 1hour) and resume is broken at least on windows. |
Hi, can I see somewhere if there is a new version of password database before I download 30 GByte or above?
The text was updated successfully, but these errors were encountered: