MCPcopy
hub / github.com/moonD4rk/HackBrowserData / newCredentialInjector

Function newCredentialInjector

browser/browser_windows.go:130–137  ·  view source on GitHub ↗

newCredentialInjector wires the Windows Chromium retrievers: v10 (DPAPI) and v20 (ABE). The two tiers are orthogonal — a pre-127-upgraded profile carries v20 cookies alongside v10 passwords — so both run independently, not as a chain.

(_ DiscoverOptions)

Source from the content-addressed store, hash-verified

128// newCredentialInjector wires the Windows Chromium retrievers: v10 (DPAPI) and v20 (ABE). The two tiers are orthogonal
129// — a pre-127-upgraded profile carries v20 cookies alongside v10 passwords — so both run independently, not as a chain.
130func newCredentialInjector(_ DiscoverOptions) browserInjector {
131 retrievers := masterkey.DefaultRetrievers()
132 return func(b Browser) {
133 if km, ok := b.(KeyManager); ok {
134 km.SetRetrievers(retrievers)
135 }
136 }
137}

Callers

nothing calls this directly

Calls 2

DefaultRetrieversFunction · 0.92
SetRetrieversMethod · 0.65

Tested by

no test coverage detected