mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-07-04 21:37:47 +02:00
refactor(keys): extract master-key package to top-level keys/
Master-key acquisition and the cross-host dump format are a concern distinct from the raw crypto primitives, so crypto/keyretriever moves to an importable top-level keys/. KeyRetriever→Retriever drops the keys.KeyRetriever stutter.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
package browser
|
||||
|
||||
import (
|
||||
"github.com/moond4rk/hackbrowserdata/crypto/keyretriever"
|
||||
"github.com/moond4rk/hackbrowserdata/keys"
|
||||
"github.com/moond4rk/hackbrowserdata/types"
|
||||
)
|
||||
|
||||
@@ -130,10 +130,10 @@ func platformBrowsers() []types.BrowserConfig {
|
||||
// Chrome profile upgraded from pre-127 carries v20 cookies alongside v10 passwords — so both
|
||||
// retrievers run independently rather than as a first-success chain.
|
||||
func newCredentialInjector(_ PickOptions) browserInjector {
|
||||
retrievers := keyretriever.DefaultRetrievers()
|
||||
retrievers := keys.DefaultRetrievers()
|
||||
return func(b Browser) {
|
||||
if km, ok := b.(KeyManager); ok {
|
||||
km.SetKeyRetrievers(retrievers)
|
||||
km.SetRetrievers(retrievers)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user