mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor(browser): simplify credential storage config (#593)
This commit is contained in:
@@ -35,9 +35,9 @@ const (
|
||||
|
||||
// Entry is the per-browser Windows metadata record.
|
||||
//
|
||||
// Key must match browser.BrowserConfig.Storage so retrievers and path
|
||||
// resolvers share a single lookup identifier. CLSID/IID bytes are *not*
|
||||
// stored here; see the package doc for why.
|
||||
// Key must match browser.BrowserConfig.Key for every config that sets
|
||||
// WindowsABE: true, so retrievers and path resolvers share a single lookup
|
||||
// identifier. CLSID/IID bytes are *not* stored here; see the package doc for why.
|
||||
type Entry struct {
|
||||
Key string
|
||||
ExeName string
|
||||
|
||||
@@ -29,7 +29,7 @@ var ErrExecutableNotFound = errors.New("browser executable not found")
|
||||
// is not running and the registry is missing the entry).
|
||||
//
|
||||
// browserKey must match an Entry in Table; keys align with
|
||||
// browser.BrowserConfig.Storage.
|
||||
// browser.BrowserConfig.Key (for configs that set WindowsABE: true).
|
||||
func ExecutablePath(browserKey string) (string, error) {
|
||||
entry, ok := Table[browserKey]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user