HackBrowserData/main.go

31 lines
536 B
Go
Raw Normal View History

2020-06-19 12:43:31 +00:00
package main
import (
"fmt"
"hack-browser-data/core/common"
"hack-browser-data/log"
"hack-browser-data/utils"
2020-06-20 15:20:01 +00:00
"os"
2020-06-19 12:43:31 +00:00
"runtime"
)
func main() {
osName := runtime.GOOS
switch osName {
case "darwin":
2020-06-20 15:20:01 +00:00
chromePath, err := utils.GetDBPath(utils.LoginData)
if err != nil {
log.Error("can't find chrome.app in OS")
}
err = utils.CopyDB(chromePath, utils.LoginData)
if err != nil {
log.Println(err)
}
2020-06-19 12:43:31 +00:00
utils.InitChromeKey()
common.ParseDB()
case "windows":
fmt.Println("Windows")
}
2020-06-20 15:20:01 +00:00
os.Remove(utils.LoginData)
2020-06-19 12:43:31 +00:00
}