mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Safari's keychain now reaches extractors through the same Input as Chromium's keys, so every base's tables are static and share one signature; restore reads a fork this build lacks under its own name.
28 lines
1.0 KiB
Go
28 lines
1.0 KiB
Go
package browser
|
|
|
|
// DiscoverOptions is everything discovery would otherwise read from the environment.
|
|
type DiscoverOptions struct {
|
|
HomeDir string // the user's home directory; tests pass a temp dir
|
|
ProfilePath string // the -p value; "" when not given
|
|
}
|
|
|
|
// UserDataDirID is Browser.Name, then "-2", "-3"... in Path order; its own type keeps it apart from that name.
|
|
type UserDataDirID string
|
|
|
|
// UserDataDir is one browser data directory found on this machine; ID also names its snapshot and archive directory.
|
|
type UserDataDir struct {
|
|
ID UserDataDirID
|
|
Browser Browser
|
|
Path string
|
|
Profiles []Profile
|
|
// VaultKind is set on a restored dir: the on-disk format its vault names. A discovered dir leaves it empty, and
|
|
// its browser's name picks the format.
|
|
VaultKind string
|
|
}
|
|
|
|
// Profile is one profile within a user data dir. Name is the output's profile value and never a path.
|
|
type Profile struct {
|
|
Name string
|
|
RelativePath string // slash-separated, relative to UserDataDir.Path; "" when the user data dir itself is the profile
|
|
}
|