diff --git a/.github/workflows/cl.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/cl.yml rename to .github/workflows/ci.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63b0612..84299cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,6 @@ jobs: goos: darwin bin: 'hack-browser-data' releaseos: osx - - os: windows-latest - goos: windows - bin: 'hack-browser-data.exe' - releaseos: windows exclude: - os: macos-latest arch: '386' diff --git a/README.md b/README.md index b371bb3..2ad1ac1 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,14 @@ Installation of hack-browser-data is dead-simple, just download [the release for #### Building from source +support `go 1.11+` + ```bash git clone https://github.com/moonD4rk/HackBrowserData -cd HackBrowserData && go mod tidy +cd HackBrowserData + +go get -v -t -d ./... go build ``` @@ -52,8 +56,7 @@ go build #### Run ```shell -✗ .\hack-browser-data.exe -h -NAME: +PS C:\hack> .\hack.exe -h NAME: hack-browser-data - Export passwords/cookies/history/bookmarks from browser USAGE: @@ -62,22 +65,20 @@ USAGE: GLOBAL OPTIONS: --verbose, --vv verbose (default: false) - --browser value, -b value available browsers: chrome|edge|360speed|qq (default: "chrome") - --results-dir value, --dir value Export dir (default: "results") + --browser value, -b value available browsers: chrome|edge|360speed|qq|firefox (default: "chrome") + --results-dir value, --dir value export dir (default: "results") --format value, -f value result format, csv|json (default: "csv") --export-data value, -e value all|password|cookie|history|bookmark (default: "all") --help, -h show help (default: false) -``` +PS C:\hack> .\hack.exe -b firefox +[x]: Get 28 bookmarks, filename is results/bookmarks_firefox.csv +[x]: Get 1 login data, filename is results/login_data_firefox.csv +[x]: Get 10 cookies, filename is results/cookies_firefox.csv +[x]: Get 33 login data, filename is results/history_firefox.csv +``` -```shell -✗ ./hack-browser-data.exe -b chrome -f json -dir results -e all -[x]: Get 538 bookmarks, filename is results/bookmarks_chrome.json -[x]: Get 1610 cookies, filename is results/cookies_chrome.json -[x]: Get 44050 history, filename is results/history_chrome.json -[x]: Get 457 login data, filename is results/login_data_chrome.json -``` @@ -102,7 +103,6 @@ GLOBAL OPTIONS: - [x] QQ browser - [x] Edge - [x] 360 speed browser -- [ ] 360 secure browser +- [x] Firefox - [ ] Safari -- [ ] Firefox - [ ] IE \ No newline at end of file diff --git a/cmd/cmd.go b/cmd/cmd.go index 33a791a..4aeb8a6 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -26,10 +26,10 @@ func Execute() { UsageText: "[hack-browser-data -b chrome -f json -dir results -e all]\n Get all data(password/cookie/history/bookmark) from chrome", Version: "0.1.0", Flags: []cli.Flag{ - &cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "verbose"}, - &cli.StringFlag{Name: "browser", Aliases: []string{"b"}, Destination: &browser, Value: "chrome", Usage: "available browsers: " + strings.Join(utils.ListBrowser(), "|")}, - &cli.StringFlag{Name: "results-dir", Aliases: []string{"dir"}, Destination: &exportDir, Value: "results", Usage: "export dir"}, - &cli.StringFlag{Name: "format", Aliases: []string{"f"}, Destination: &outputFormat, Value: "csv", Usage: "result format, csv|json"}, + &cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "Verbose"}, + &cli.StringFlag{Name: "browser", Aliases: []string{"b"}, Destination: &browser, Value: "chrome", Usage: "Available browsers: " + strings.Join(utils.ListBrowser(), "|")}, + &cli.StringFlag{Name: "results-dir", Aliases: []string{"dir"}, Destination: &exportDir, Value: "results", Usage: "Export dir"}, + &cli.StringFlag{Name: "format", Aliases: []string{"f"}, Destination: &outputFormat, Value: "csv", Usage: "Format, csv|json"}, &cli.StringFlag{Name: "export-data", Aliases: []string{"e"}, Destination: &exportData, Value: "all", Usage: "all|password|cookie|history|bookmark"}, }, HideHelpCommand: true,