mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
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:
1 parent
b5eddf799b
commit
4363516ca4
41 files changed
+312
-316
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user