diff --git a/README.md b/README.md index fe722f2..db01340 100644 --- a/README.md +++ b/README.md @@ -61,18 +61,20 @@ NAME: hack-browser-data - Export passwords/cookies/history/bookmarks from browser USAGE: - [hack-browser-data -b chrome -f json -dir results -e all] + [hack-browser-data -b chrome -f json -dir results -e all -cc] Get all data(password/cookie/history/bookmark) from chrome GLOBAL OPTIONS: --verbose, --vv Verbose (default: false) + --compress, --cc Compress result to zip (default: false) --browser value, -b value Available browsers: all|chrome|edge|firefox (default: "all") --results-dir value, --dir value Export dir (default: "results") --format value, -f value Format, csv|json|console (default: "json") - --export-data value, -e value all|cookie|history|password|bookmark (default: "all") + --export-data value, -e value all|password|bookmark|cookie|history (default: "all") + --help, -h show help (default: false) -PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results +PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results -cc [x]: Get 44 cookies, filename is results/microsoft_edge_cookie.json [x]: Get 54 history, filename is results/microsoft_edge_history.json [x]: Get 1 passwords, filename is results/microsoft_edge_password.json @@ -93,6 +95,7 @@ PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results [x]: Get 4 bookmarks, filename is results/chrome_bookmark.json [x]: Get 6 cookies, filename is results/chrome_cookie.json [x]: Get 6 history, filename is results/chrome_history.json +[x]: Compress success, zip filename is results/archive.zip ``` diff --git a/README_ZH.md b/README_ZH.md index ecae1fe..6906774 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -62,19 +62,20 @@ NAME: hack-browser-data - Export passwords/cookies/history/bookmarks from browser USAGE: - [hack-browser-data -b chrome -f json -dir results -e all] + [hack-browser-data -b chrome -f json -dir results -e all -cc] Get all data(password/cookie/history/bookmark) from chrome GLOBAL OPTIONS: --verbose, --vv Verbose (default: false) + --compress, --cc Compress result to zip (default: false) --browser value, -b value Available browsers: all|chrome|edge|firefox (default: "all") --results-dir value, --dir value Export dir (default: "results") --format value, -f value Format, csv|json|console (default: "json") - --export-data value, -e value all|cookie|history|password|bookmark (default: "all") + --export-data value, -e value all|password|bookmark|cookie|history (default: "all") + --help, -h show help (default: false) - -PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results +PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results -cc [x]: Get 44 cookies, filename is results/microsoft_edge_cookie.json [x]: Get 54 history, filename is results/microsoft_edge_history.json [x]: Get 1 passwords, filename is results/microsoft_edge_password.json @@ -95,6 +96,7 @@ PS C:\test> .\hack-browser-data.exe -b all -f json -e all --dir results [x]: Get 4 bookmarks, filename is results/chrome_bookmark.json [x]: Get 6 cookies, filename is results/chrome_cookie.json [x]: Get 6 history, filename is results/chrome_history.json +[x]: Compress success, zip filename is results/archive.zip ``` diff --git a/cmd/cmd.go b/cmd/cmd.go index 6b8a086..f830cd6 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -27,7 +27,7 @@ func Execute() { Version: "0.2.1", Flags: []cli.Flag{ &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"}, + &cli.BoolFlag{Name: "compress", Aliases: []string{"cc"}, Destination: &compress, Value: false, Usage: "Compress result to zip"}, &cli.StringFlag{Name: "browser", Aliases: []string{"b"}, Destination: &browser, Value: "all", Usage: "Available browsers: all|" + strings.Join(core.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: "json", Usage: "Format, csv|json|console"},