chore: fix typos (#232)

dev
stevenlele 1 year ago committed by GitHub
parent ecb8db1854
commit 25699b07c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .gitignore
  2. 14
      README.md
  3. 12
      README_ZH.md
  4. 4
      browser/browser.go
  5. 6
      browser/chromium/chromium.go
  6. 6
      browser/firefox/firefox.go
  7. 0
      browsingdata/bookmark/bookmark.go
  8. 20
      browsingdata/browsingdata.go
  9. 0
      browsingdata/cookie/cookie.go
  10. 0
      browsingdata/creditcard/creditcard.go
  11. 0
      browsingdata/download/download.go
  12. 0
      browsingdata/extension/extension.go
  13. 0
      browsingdata/history/history.go
  14. 0
      browsingdata/localstorage/localstorage.go
  15. 0
      browsingdata/localstorage/localstorage_test.go
  16. 2
      browsingdata/outputter.go
  17. 2
      browsingdata/outputter_test.go
  18. 0
      browsingdata/password/password.go
  19. 0
      browsingdata/sessionstorage/sessionstorage.go
  20. 6
      cmd/hack-browser-data/main.go

6
.gitignore vendored

@ -191,6 +191,6 @@ results/
hack-browser-data
!/cmd/hack-browser-data
!/browingdata/history
!/browingdata/history/history.go
!/browingdata/history/history_test.go
!/browsingdata/history
!/browsingdata/history/history.go
!/browsingdata/history/history_test.go

@ -9,7 +9,7 @@
[中文说明](https://github.com/moonD4rk/HackBrowserData/blob/master/README_ZH.md)
`HackBrowserData` is a command-line tool for decrypting and exporting browser data ( passwords, history, cookies, bookmarks, credit cards, download records, localStorage and extension ) from the browser. It supports the most popular browsers on the market and runs on Windows, macOS and Linux.
`HackBrowserData` is a command-line tool for decrypting and exporting browser data (passwords, history, cookies, bookmarks, credit cards, download history, localStorage and extensions) from the browser. It supports the most popular browsers on the market and runs on Windows, macOS and Linux.
> Disclaimer: This tool is only intended for security research. Users are responsible for all legal and related liabilities resulting from the use of this tool. The original author does not assume any legal responsibility.
@ -127,11 +127,11 @@ You can double-click to run, or use command line.
```
PS C:\test> .\hack-browser-data.exe -h
NAME:
hack-browser-data - Export password|bookmark|cookie|history|credit card|download|localStorage|extension from browser
hack-browser-data - Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser
USAGE:
[hack-browser-data -b chrome -f json -dir results -cc]
Export all browingdata(password/cookie/history/bookmark) from browser
[hack-browser-data -b chrome -f json --dir results --zip]
Export all browsing data (passwords/cookies/history/bookmarks) from browser
Github Link: https://github.com/moonD4rk/HackBrowserData
VERSION:
@ -140,16 +140,16 @@ VERSION:
GLOBAL OPTIONS:
--verbose, --vv verbose (default: false)
--compress, --zip compress result to zip (default: false)
--browser value, -b value available browsers: all|brave|chrome|chrome-beta|chromium|coccoc|edge|firefox|opera|opera-gx|vivaldi|yandex (default: "all")
--browser value, -b value available browsers: all|360|brave|chrome|chrome-beta|chromium|coccoc|dc|edge|firefox|opera|opera-gx|qq|sogou|vivaldi|yandex (default: "all")
--results-dir value, --dir value export dir (default: "results")
--format value, -f value file name csv|json (default: "csv")
--format value, -f value output format: csv|json (default: "csv")
--profile-path value, -p value custom profile dir path, get with chrome://version
--full-export, --full is export full browsing data (default: true)
--help, -h show help
--version, -v print the version
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results -zip
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results --zip
[NOTICE] [browser.go:46,pickChromium] find browser Chrome success
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge success
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success

@ -122,11 +122,11 @@ CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ GOARCH=amd64 GOOS=linux CGO_E
```
PS C:\test> .\hack-browser-data.exe -h
NAME:
hack-browser-data - Export password|bookmark|cookie|history|credit card|download|localStorage|extension from browser
hack-browser-data - Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser
USAGE:
[hack-browser-data -b chrome -f json -dir results -cc]
Export all browingdata(password/cookie/history/bookmark) from browser
[hack-browser-data -b chrome -f json --dir results --zip]
Export all browsing data (passwords/cookies/history/bookmarks) from browser
Github Link: https://github.com/moonD4rk/HackBrowserData
VERSION:
@ -135,16 +135,16 @@ VERSION:
GLOBAL OPTIONS:
--verbose, --vv verbose (default: false)
--compress, --zip compress result to zip (default: false)
--browser value, -b value available browsers: all|brave|chrome|chrome-beta|chromium|coccoc|edge|firefox|opera|opera-gx|vivaldi|yandex (default: "all")
--browser value, -b value available browsers: all|360|brave|chrome|chrome-beta|chromium|coccoc|dc|edge|firefox|opera|opera-gx|qq|sogou|vivaldi|yandex (default: "all")
--results-dir value, --dir value export dir (default: "results")
--format value, -f value file name csv|json (default: "csv")
--format value, -f value output format: csv|json (default: "csv")
--profile-path value, -p value custom profile dir path, get with chrome://version
--full-export, --full is export full browsing data (default: true)
--help, -h show help
--version, -v print the version
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results -zip
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results --zip
[NOTICE] [browser.go:46,pickChromium] find browser Chrome success
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge success
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success

@ -5,9 +5,9 @@ import (
"sort"
"strings"
"github.com/moond4rk/hackbrowserdata/browingdata"
"github.com/moond4rk/hackbrowserdata/browser/chromium"
"github.com/moond4rk/hackbrowserdata/browser/firefox"
"github.com/moond4rk/hackbrowserdata/browsingdata"
"github.com/moond4rk/hackbrowserdata/log"
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
@ -17,7 +17,7 @@ type Browser interface {
// Name is browser's name
Name() string
// BrowsingData returns all browsing data in the browser.
BrowsingData(isFullExport bool) (*browingdata.Data, error)
BrowsingData(isFullExport bool) (*browsingdata.Data, error)
}
// PickBrowsers returns a list of browsers that match the name and profile.

@ -5,7 +5,7 @@ import (
"path/filepath"
"strings"
"github.com/moond4rk/hackbrowserdata/browingdata"
"github.com/moond4rk/hackbrowserdata/browsingdata"
"github.com/moond4rk/hackbrowserdata/item"
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
@ -48,13 +48,13 @@ func (c *Chromium) Name() string {
return c.name
}
func (c *Chromium) BrowsingData(isFullExport bool) (*browingdata.Data, error) {
func (c *Chromium) BrowsingData(isFullExport bool) (*browsingdata.Data, error) {
items := c.items
if !isFullExport {
items = item.FilterSensitiveItems(c.items)
}
data := browingdata.New(items)
data := browsingdata.New(items)
if err := c.copyItemToLocal(); err != nil {
return nil, err

@ -6,7 +6,7 @@ import (
"io/fs"
"path/filepath"
"github.com/moond4rk/hackbrowserdata/browingdata"
"github.com/moond4rk/hackbrowserdata/browsingdata"
"github.com/moond4rk/hackbrowserdata/item"
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
@ -76,13 +76,13 @@ func (f *Firefox) Name() string {
return f.name
}
func (f *Firefox) BrowsingData(isFullExport bool) (*browingdata.Data, error) {
func (f *Firefox) BrowsingData(isFullExport bool) (*browsingdata.Data, error) {
items := f.items
if !isFullExport {
items = item.FilterSensitiveItems(f.items)
}
b := browingdata.New(items)
b := browsingdata.New(items)
if err := f.copyItemToLocal(); err != nil {
return nil, err

@ -1,17 +1,17 @@
package browingdata
package browsingdata
import (
"path"
"github.com/moond4rk/hackbrowserdata/browingdata/bookmark"
"github.com/moond4rk/hackbrowserdata/browingdata/cookie"
"github.com/moond4rk/hackbrowserdata/browingdata/creditcard"
"github.com/moond4rk/hackbrowserdata/browingdata/download"
"github.com/moond4rk/hackbrowserdata/browingdata/extension"
"github.com/moond4rk/hackbrowserdata/browingdata/history"
"github.com/moond4rk/hackbrowserdata/browingdata/localstorage"
"github.com/moond4rk/hackbrowserdata/browingdata/password"
"github.com/moond4rk/hackbrowserdata/browingdata/sessionstorage"
"github.com/moond4rk/hackbrowserdata/browsingdata/bookmark"
"github.com/moond4rk/hackbrowserdata/browsingdata/cookie"
"github.com/moond4rk/hackbrowserdata/browsingdata/creditcard"
"github.com/moond4rk/hackbrowserdata/browsingdata/download"
"github.com/moond4rk/hackbrowserdata/browsingdata/extension"
"github.com/moond4rk/hackbrowserdata/browsingdata/history"
"github.com/moond4rk/hackbrowserdata/browsingdata/localstorage"
"github.com/moond4rk/hackbrowserdata/browsingdata/password"
"github.com/moond4rk/hackbrowserdata/browsingdata/sessionstorage"
"github.com/moond4rk/hackbrowserdata/item"
"github.com/moond4rk/hackbrowserdata/log"
"github.com/moond4rk/hackbrowserdata/utils/fileutil"

@ -1,4 +1,4 @@
package browingdata
package browsingdata
import (
"encoding/csv"

@ -1,4 +1,4 @@
package browingdata
package browsingdata
import (
"os"

@ -27,15 +27,15 @@ func main() {
func Execute() {
app := &cli.App{
Name: "hack-browser-data",
Usage: "Export password|bookmark|cookie|history|credit card|download|localStorage|extension from browser",
UsageText: "[hack-browser-data -b chrome -f json -dir results -cc]\nExport all browingdata(password/cookie/history/bookmark) from browser\nGithub Link: https://github.com/moonD4rk/HackBrowserData",
Usage: "Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser",
UsageText: "[hack-browser-data -b chrome -f json -dir results --zip]\nExport all browsing data (passwords/cookies/history/bookmarks) from browser\nGithub Link: https://github.com/moonD4rk/HackBrowserData",
Version: "0.5.0",
Flags: []cli.Flag{
&cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "verbose"},
&cli.BoolFlag{Name: "compress", Aliases: []string{"zip"}, Destination: &compress, Value: false, Usage: "compress result to zip"},
&cli.StringFlag{Name: "browser", Aliases: []string{"b"}, Destination: &browserName, Value: "all", Usage: "available browsers: all|" + browser.Names()},
&cli.StringFlag{Name: "results-dir", Aliases: []string{"dir"}, Destination: &outputDir, Value: "results", Usage: "export dir"},
&cli.StringFlag{Name: "format", Aliases: []string{"f"}, Destination: &outputFormat, Value: "csv", Usage: "file name csv|json"},
&cli.StringFlag{Name: "format", Aliases: []string{"f"}, Destination: &outputFormat, Value: "csv", Usage: "output format: csv|json"},
&cli.StringFlag{Name: "profile-path", Aliases: []string{"p"}, Destination: &profilePath, Value: "", Usage: "custom profile dir path, get with chrome://version"},
&cli.BoolFlag{Name: "full-export", Aliases: []string{"full"}, Destination: &isFullExport, Value: true, Usage: "is export full browsing data"},
},

Loading…
Cancel
Save