mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-07-04 21:37:47 +02:00
style: fix typo and update readme
This commit is contained in:
@@ -23,10 +23,6 @@ jobs:
|
|||||||
goos: darwin
|
goos: darwin
|
||||||
bin: 'hack-browser-data'
|
bin: 'hack-browser-data'
|
||||||
releaseos: osx
|
releaseos: osx
|
||||||
- os: windows-latest
|
|
||||||
goos: windows
|
|
||||||
bin: 'hack-browser-data.exe'
|
|
||||||
releaseos: windows
|
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
arch: '386'
|
arch: '386'
|
||||||
|
|||||||
@@ -41,10 +41,14 @@ Installation of hack-browser-data is dead-simple, just download [the release for
|
|||||||
|
|
||||||
#### Building from source
|
#### Building from source
|
||||||
|
|
||||||
|
support `go 1.11+`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/moonD4rk/HackBrowserData
|
git clone https://github.com/moonD4rk/HackBrowserData
|
||||||
|
|
||||||
cd HackBrowserData && go mod tidy
|
cd HackBrowserData
|
||||||
|
|
||||||
|
go get -v -t -d ./...
|
||||||
|
|
||||||
go build
|
go build
|
||||||
```
|
```
|
||||||
@@ -52,8 +56,7 @@ go build
|
|||||||
#### Run
|
#### Run
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
✗ .\hack-browser-data.exe -h
|
PS C:\hack> .\hack.exe -h NAME:
|
||||||
NAME:
|
|
||||||
hack-browser-data - Export passwords/cookies/history/bookmarks from browser
|
hack-browser-data - Export passwords/cookies/history/bookmarks from browser
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
@@ -62,23 +65,21 @@ USAGE:
|
|||||||
|
|
||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
--verbose, --vv verbose (default: false)
|
--verbose, --vv verbose (default: false)
|
||||||
--browser value, -b value available browsers: chrome|edge|360speed|qq (default: "chrome")
|
--browser value, -b value available browsers: chrome|edge|360speed|qq|firefox (default: "chrome")
|
||||||
--results-dir value, --dir value Export dir (default: "results")
|
--results-dir value, --dir value export dir (default: "results")
|
||||||
--format value, -f value result format, csv|json (default: "csv")
|
--format value, -f value result format, csv|json (default: "csv")
|
||||||
--export-data value, -e value all|password|cookie|history|bookmark (default: "all")
|
--export-data value, -e value all|password|cookie|history|bookmark (default: "all")
|
||||||
--help, -h show help (default: false)
|
--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] QQ browser
|
||||||
- [x] Edge
|
- [x] Edge
|
||||||
- [x] 360 speed browser
|
- [x] 360 speed browser
|
||||||
- [ ] 360 secure browser
|
- [x] Firefox
|
||||||
- [ ] Safari
|
- [ ] Safari
|
||||||
- [ ] Firefox
|
|
||||||
- [ ] IE
|
- [ ] IE
|
||||||
+4
-4
@@ -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",
|
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",
|
Version: "0.1.0",
|
||||||
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.StringFlag{Name: "browser", Aliases: []string{"b"}, Destination: &browser, Value: "chrome", Usage: "available browsers: " + strings.Join(utils.ListBrowser(), "|")},
|
&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: "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.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"},
|
&cli.StringFlag{Name: "export-data", Aliases: []string{"e"}, Destination: &exportData, Value: "all", Usage: "all|password|cookie|history|bookmark"},
|
||||||
},
|
},
|
||||||
HideHelpCommand: true,
|
HideHelpCommand: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user