Files
HackBrowserData/browser/browser_windows.go
T
Roger b655afd054 refactor: merge the browser tables into internal/browser (#654)
One Def per browser carries every OS's user data dirs, keychain label, and Windows ABE target,
so the per-OS lists and the abeTargets join go away and today's configs derive from it;
a test parsing com_iid.c keeps the payload's table in step with the ABE rows.
2026-10-27 16:06:57 +08:00

27 lines
765 B
Go

//go:build windows
package browser
import (
ibrowser "github.com/moond4rk/hackbrowserdata/internal/browser"
"github.com/moond4rk/hackbrowserdata/internal/masterkey"
)
// newCredentialInjector hands each ABE browser its executable and dialect; RetrieveAll runs v10 (DPAPI) and,
// when the Locator carries an ABE kind, v20 (reflective injection) — both, since an upgraded profile mixes them.
func newCredentialInjector(_ DiscoverOptions) browserInjector {
return func(b Browser) {
km, ok := b.(KeyManager)
if !ok {
return
}
def, ok := ibrowser.Lookup(km.BrowserKey())
if !ok {
return
}
if p := def.Platform(); p.ABE != masterkey.ABENone {
km.SetLocator(masterkey.Locator{Exe: p.Exe, ExeFallbacks: p.ExeFallbacks, ABE: p.ABE})
}
}
}