feat: add Safari password extraction from macOS Keychain (#568)

This commit is contained in:
Roger authored and GitHub committed 2026-04-13 21:34:40 +08:00
1 parent d105a1f488
commit 370c5882c4
18 files changed
+493 -132

No files matched your search

+12
View File
@@ -3,6 +3,7 @@
package browser
import (
"github.com/moond4rk/hackbrowserdata/crypto/keyretriever"
"github.com/moond4rk/hackbrowserdata/types"
)
@@ -118,3 +119,14 @@ func platformBrowsers() []types.BrowserConfig {
},
}
}
// newPlatformInjector returns a closure that injects the Chromium master-key
// retriever chain into each Browser.
func newPlatformInjector(_ PickOptions) func(Browser) {
retriever := keyretriever.DefaultRetriever()
return func(b Browser) {
if s, ok := b.(retrieverSetter); ok {
s.SetRetriever(retriever)
}
}
}