mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-06-06 19:53:53 +02:00
chore: fix typos (#232)
This commit is contained in:
+3
-3
@@ -191,6 +191,6 @@ results/
|
|||||||
|
|
||||||
hack-browser-data
|
hack-browser-data
|
||||||
!/cmd/hack-browser-data
|
!/cmd/hack-browser-data
|
||||||
!/browingdata/history
|
!/browsingdata/history
|
||||||
!/browingdata/history/history.go
|
!/browsingdata/history/history.go
|
||||||
!/browingdata/history/history_test.go
|
!/browsingdata/history/history_test.go
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
[中文说明](https://github.com/moonD4rk/HackBrowserData/blob/master/README_ZH.md)
|
[中文说明](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.
|
> 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
|
PS C:\test> .\hack-browser-data.exe -h
|
||||||
NAME:
|
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:
|
USAGE:
|
||||||
[hack-browser-data -b chrome -f json -dir results -cc]
|
[hack-browser-data -b chrome -f json --dir results --zip]
|
||||||
Export all browingdata(password/cookie/history/bookmark) from browser
|
Export all browsing data (passwords/cookies/history/bookmarks) from browser
|
||||||
Github Link: https://github.com/moonD4rk/HackBrowserData
|
Github Link: https://github.com/moonD4rk/HackBrowserData
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
@@ -140,16 +140,16 @@ VERSION:
|
|||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
--verbose, --vv verbose (default: false)
|
--verbose, --vv verbose (default: false)
|
||||||
--compress, --zip compress result to zip (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")
|
--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
|
--profile-path value, -p value custom profile dir path, get with chrome://version
|
||||||
--full-export, --full is export full browsing data (default: true)
|
--full-export, --full is export full browsing data (default: true)
|
||||||
--help, -h show help
|
--help, -h show help
|
||||||
--version, -v print the version
|
--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 Chrome success
|
||||||
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge 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
|
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success
|
||||||
|
|||||||
+6
-6
@@ -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
|
PS C:\test> .\hack-browser-data.exe -h
|
||||||
NAME:
|
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:
|
USAGE:
|
||||||
[hack-browser-data -b chrome -f json -dir results -cc]
|
[hack-browser-data -b chrome -f json --dir results --zip]
|
||||||
Export all browingdata(password/cookie/history/bookmark) from browser
|
Export all browsing data (passwords/cookies/history/bookmarks) from browser
|
||||||
Github Link: https://github.com/moonD4rk/HackBrowserData
|
Github Link: https://github.com/moonD4rk/HackBrowserData
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
@@ -135,16 +135,16 @@ VERSION:
|
|||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
--verbose, --vv verbose (default: false)
|
--verbose, --vv verbose (default: false)
|
||||||
--compress, --zip compress result to zip (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")
|
--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
|
--profile-path value, -p value custom profile dir path, get with chrome://version
|
||||||
--full-export, --full is export full browsing data (default: true)
|
--full-export, --full is export full browsing data (default: true)
|
||||||
--help, -h show help
|
--help, -h show help
|
||||||
--version, -v print the version
|
--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 Chrome success
|
||||||
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge 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
|
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata"
|
|
||||||
"github.com/moond4rk/hackbrowserdata/browser/chromium"
|
"github.com/moond4rk/hackbrowserdata/browser/chromium"
|
||||||
"github.com/moond4rk/hackbrowserdata/browser/firefox"
|
"github.com/moond4rk/hackbrowserdata/browser/firefox"
|
||||||
|
"github.com/moond4rk/hackbrowserdata/browsingdata"
|
||||||
"github.com/moond4rk/hackbrowserdata/log"
|
"github.com/moond4rk/hackbrowserdata/log"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
||||||
@@ -17,7 +17,7 @@ type Browser interface {
|
|||||||
// Name is browser's name
|
// Name is browser's name
|
||||||
Name() string
|
Name() string
|
||||||
// BrowsingData returns all browsing data in the browser.
|
// 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.
|
// PickBrowsers returns a list of browsers that match the name and profile.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata"
|
"github.com/moond4rk/hackbrowserdata/browsingdata"
|
||||||
"github.com/moond4rk/hackbrowserdata/item"
|
"github.com/moond4rk/hackbrowserdata/item"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
||||||
@@ -48,13 +48,13 @@ func (c *Chromium) Name() string {
|
|||||||
return c.name
|
return c.name
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Chromium) BrowsingData(isFullExport bool) (*browingdata.Data, error) {
|
func (c *Chromium) BrowsingData(isFullExport bool) (*browsingdata.Data, error) {
|
||||||
items := c.items
|
items := c.items
|
||||||
if !isFullExport {
|
if !isFullExport {
|
||||||
items = item.FilterSensitiveItems(c.items)
|
items = item.FilterSensitiveItems(c.items)
|
||||||
}
|
}
|
||||||
|
|
||||||
data := browingdata.New(items)
|
data := browsingdata.New(items)
|
||||||
|
|
||||||
if err := c.copyItemToLocal(); err != nil {
|
if err := c.copyItemToLocal(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata"
|
"github.com/moond4rk/hackbrowserdata/browsingdata"
|
||||||
"github.com/moond4rk/hackbrowserdata/item"
|
"github.com/moond4rk/hackbrowserdata/item"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
"github.com/moond4rk/hackbrowserdata/utils/typeutil"
|
||||||
@@ -76,13 +76,13 @@ func (f *Firefox) Name() string {
|
|||||||
return f.name
|
return f.name
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Firefox) BrowsingData(isFullExport bool) (*browingdata.Data, error) {
|
func (f *Firefox) BrowsingData(isFullExport bool) (*browsingdata.Data, error) {
|
||||||
items := f.items
|
items := f.items
|
||||||
if !isFullExport {
|
if !isFullExport {
|
||||||
items = item.FilterSensitiveItems(f.items)
|
items = item.FilterSensitiveItems(f.items)
|
||||||
}
|
}
|
||||||
|
|
||||||
b := browingdata.New(items)
|
b := browsingdata.New(items)
|
||||||
|
|
||||||
if err := f.copyItemToLocal(); err != nil {
|
if err := f.copyItemToLocal(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
package browingdata
|
package browsingdata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/bookmark"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/bookmark"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/cookie"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/cookie"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/creditcard"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/creditcard"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/download"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/download"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/extension"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/extension"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/history"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/history"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/localstorage"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/localstorage"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/password"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/password"
|
||||||
"github.com/moond4rk/hackbrowserdata/browingdata/sessionstorage"
|
"github.com/moond4rk/hackbrowserdata/browsingdata/sessionstorage"
|
||||||
"github.com/moond4rk/hackbrowserdata/item"
|
"github.com/moond4rk/hackbrowserdata/item"
|
||||||
"github.com/moond4rk/hackbrowserdata/log"
|
"github.com/moond4rk/hackbrowserdata/log"
|
||||||
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package browingdata
|
package browsingdata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/csv"
|
"encoding/csv"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package browingdata
|
package browsingdata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
@@ -27,15 +27,15 @@ func main() {
|
|||||||
func Execute() {
|
func Execute() {
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "hack-browser-data",
|
Name: "hack-browser-data",
|
||||||
Usage: "Export password|bookmark|cookie|history|credit card|download|localStorage|extension from browser",
|
Usage: "Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions 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",
|
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",
|
Version: "0.5.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.BoolFlag{Name: "compress", Aliases: []string{"zip"}, Destination: &compress, Value: false, Usage: "compress result to zip"},
|
&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: "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: "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.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"},
|
&cli.BoolFlag{Name: "full-export", Aliases: []string{"full"}, Destination: &isFullExport, Value: true, Usage: "is export full browsing data"},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user