mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
support custom browser profile path
This commit is contained in:
@@ -3,6 +3,7 @@ package core
|
||||
import (
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"hack-browser-data/core/decrypt"
|
||||
@@ -109,6 +110,9 @@ func (c *Chromium) InitSecretKey() error {
|
||||
if c.keyPath == "" {
|
||||
return nil
|
||||
}
|
||||
if _, err := os.Stat(c.keyPath); os.IsNotExist(err) {
|
||||
return fmt.Errorf("%s secret key path is empty", c.name)
|
||||
}
|
||||
keyFile, err := utils.ReadFile(c.keyPath)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user