Documentation
¶
Overview ¶
Package safari is the Safari base: default and named profiles under ~/Library, their files, and the login keychain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discover ¶
func Discover(safariBrowser browser.Browser, options browser.DiscoverOptions) ([]browser.UserDataDir, error)
Discover makes the Safari directory the default profile's Dir; -p names another, whose parent replaces ~/Library.
func Extractors ¶
func Extractors(dir browser.UserDataDir, profile browser.Profile, loginKeychain LoginKeychain) browser.Extractors
Extractors builds a named profile's file specs from Profile.Dir; its files sit under two dirs named for its UUID. The keychain, Bookmarks.plist, and the extension plists carry no profile tag, so only the default profile reads them.
Types ¶
type LoginKeychain ¶
type LoginKeychain interface {
InternetPasswords(ctx context.Context) ([]keychainbreaker.InternetPassword, error)
}
LoginKeychain is the one method the password extractor reads from the run's login keychain.