feat: add yandex browser for macOS

pull/116/head
ᴍᴏᴏɴD4ʀᴋ 3 years ago
parent c92e067ccc
commit 0f2a541fa2
  1. 2
      cmd/cmd.go
  2. 8
      core/browser_darwin.go

@ -26,7 +26,7 @@ func Execute() {
Name: "hack-browser-data", Name: "hack-browser-data",
Usage: "Export passwords/cookies/history/bookmarks from browser", Usage: "Export passwords/cookies/history/bookmarks from browser",
UsageText: "[hack-browser-data -b chrome -f json -dir results -cc]\n Get all data(password/cookie/history/bookmark) from chrome", UsageText: "[hack-browser-data -b chrome -f json -dir results -cc]\n Get all data(password/cookie/history/bookmark) from chrome",
Version: "0.3.6", Version: "0.3.7",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "verbose"}, &cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "verbose"},
&cli.BoolFlag{Name: "compress", Aliases: []string{"cc"}, Destination: &compress, Value: false, Usage: "compress result to zip"}, &cli.BoolFlag{Name: "compress", Aliases: []string{"cc"}, Destination: &compress, Value: false, Usage: "compress result to zip"},

@ -24,6 +24,7 @@ const (
operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/" operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/"
vivaldiProfilePath = "/Users/*/Library/Application Support/Vivaldi/*/" vivaldiProfilePath = "/Users/*/Library/Application Support/Vivaldi/*/"
coccocProfilePath = "/Users/*/Library/Application Support/Coccoc/*/" coccocProfilePath = "/Users/*/Library/Application Support/Coccoc/*/"
yandexProfilePath = "/Users/*/Library/Application Support/Yandex/YandexBrowser/*/"
) )
const ( const (
@ -35,6 +36,7 @@ const (
operaStorageName = "Opera" operaStorageName = "Opera"
vivaldiStorageName = "Vivaldi" vivaldiStorageName = "Vivaldi"
coccocStorageName = "CocCoc" coccocStorageName = "CocCoc"
yandexStorageName = "Yandex"
) )
var ( var (
@ -124,6 +126,12 @@ var (
Storage: coccocStorageName, Storage: coccocStorageName,
New: NewChromium, New: NewChromium,
}, },
"yandex": {
ProfilePath: yandexProfilePath,
Name: yandexName,
Storage: yandexStorageName,
New: NewChromium,
},
} }
) )

Loading…
Cancel
Save