refactor(browser): one extractor input, restore by kind (#694)

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.
This commit is contained in:
Roger authored and GitHub committed 2026-11-10 17:00:44 +08:00
1 parent b5eddf799b
commit 4363516ca4
41 files changed
+312 -316

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ func newArchiveCommand() *cobra.Command {
if err != nil {
return err
}
discovery := app.Discover(options.Target)
discovery := app.Discover(command.Context(), options.Target)
if warnIfNothingFound(command.ErrOrStderr(), discovery, "no browsers found") {
return nil
}
+1 -1
View File
@@ -45,7 +45,7 @@ func runDump(ctx context.Context, stderr io.Writer, flags app.DumpFlags, keychai
if err != nil {
return err
}
discovery := app.Discover(options.Target)
discovery := app.Discover(ctx, options.Target)
if warnIfNothingFound(stderr, discovery, "no browsers found") {
return nil
}
+1 -1
View File
@@ -26,7 +26,7 @@ func newDumpKeysCommand() *cobra.Command {
if err != nil {
return err
}
discovery := app.Discover(options.Target)
discovery := app.Discover(command.Context(), options.Target)
vaultCount, err := app.DumpKeys(command.Context(), discovery, options.Keychain, command.OutOrStdout(), outputPath)
if err != nil {
return err
+1 -1
View File
@@ -20,7 +20,7 @@ func newListCommand() *cobra.Command {
if err != nil {
return err
}
discovery := app.Discover(options.Target)
discovery := app.Discover(command.Context(), options.Target)
for _, failure := range discovery.DirFailures {
log.Warnf("%s: %v", failure.UserDataDirID, failure.Err)
}