mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
support chrome beta
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ type Chromium struct {
|
||||
name string
|
||||
profilePath string
|
||||
keyPath string
|
||||
storage string // use for linux browser
|
||||
storage string // storage use for linux and macOS, get secret key
|
||||
secretKey []byte
|
||||
}
|
||||
|
||||
|
||||
+22
-5
@@ -10,10 +10,18 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
chromeProfilePath = "/Users/*/Library/Application Support/Google/Chrome/*/"
|
||||
edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/"
|
||||
fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/"
|
||||
braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/"
|
||||
chromeProfilePath = "/Users/*/Library/Application Support/Google/Chrome/*/"
|
||||
chromeBetaProfilePath = "/Users/*/Library/Application Support/Google/Chrome Beta/*/"
|
||||
edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/"
|
||||
fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/"
|
||||
braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/"
|
||||
)
|
||||
|
||||
const (
|
||||
chromeStorageName = "Chrome"
|
||||
chromeBetaStorageName = "Chrome"
|
||||
edgeStorageName = "Microsoft Edge"
|
||||
braveStorageName = "Brave"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -32,16 +40,25 @@ var (
|
||||
"chrome": {
|
||||
ProfilePath: chromeProfilePath,
|
||||
Name: chromeName,
|
||||
Storage: chromeStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"edge": {
|
||||
ProfilePath: edgeProfilePath,
|
||||
Name: edgeName,
|
||||
Storage: edgeStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"brave": {
|
||||
ProfilePath: braveProfilePath,
|
||||
Name: braveName,
|
||||
Storage: braveStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"chrome-beta": {
|
||||
ProfilePath: chromeBetaProfilePath,
|
||||
Name: chromeBetaName,
|
||||
Storage: chromeBetaStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
}
|
||||
@@ -53,7 +70,7 @@ func (c *Chromium) InitSecretKey() error {
|
||||
stdout, stderr bytes.Buffer
|
||||
)
|
||||
// ➜ security find-generic-password -wa 'Chrome'
|
||||
cmd = exec.Command("security", "find-generic-password", "-wa", c.name)
|
||||
cmd = exec.Command("security", "find-generic-password", "-wa", c.storage)
|
||||
cmd.Stdout = &stdout
|
||||
cmd.Stderr = &stderr
|
||||
err := cmd.Run()
|
||||
|
||||
+15
-7
@@ -11,16 +11,18 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
fireFoxProfilePath = "/home/*/.mozilla/firefox/*.default-release/"
|
||||
chromeProfilePath = "/home/*/.config/google-chrome/*/"
|
||||
edgeProfilePath = "/home/*/.config/microsoft-edge*/*/"
|
||||
braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/"
|
||||
fireFoxProfilePath = "/home/*/.mozilla/firefox/*.default-release/"
|
||||
chromeProfilePath = "/home/*/.config/google-chrome/*/"
|
||||
edgeProfilePath = "/home/*/.config/microsoft-edge*/*/"
|
||||
braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/"
|
||||
chromeBateProfilePath = "/home/*/.config/google-chrome-beta/*/"
|
||||
)
|
||||
|
||||
const (
|
||||
chromeStorageName = "Chrome Safe Storage"
|
||||
edgeStorageName = "Chromium Safe Storage"
|
||||
braveStorageName = "Brave Safe Storage"
|
||||
chromeStorageName = "Chrome Safe Storage"
|
||||
edgeStorageName = "Chromium Safe Storage"
|
||||
braveStorageName = "Brave Safe Storage"
|
||||
chromeBetaStorageName = "Chrome Safe Storage"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -54,6 +56,12 @@ var (
|
||||
Storage: braveStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"chrome-beta": {
|
||||
ProfilePath: chromeBateProfilePath,
|
||||
Name: chromeBetaName,
|
||||
Storage: chromeBetaStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user