Skip to content

Commit a498eee

Browse files
committed
docs: Update version to 0.4.6 and enhance documentation
- Add new command line flag for full export browsing data - Refactor README files for clarity and updated information
1 parent 771e60e commit a498eee

File tree

3 files changed

+42
-59
lines changed

3 files changed

+42
-59
lines changed

README.md

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# HackBrowserData
66

7-
[![Lint](https://github.com/moonD4rk/HackBrowserData/actions/workflows/lint.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/lint.yml) [![build](https://github.com/moonD4rk/HackBrowserData/actions/workflows/build.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/build.yml) [![Release](https://github.com/moonD4rk/HackBrowserData/actions/workflows/release.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/release.yml) [![unit tests](https://github.com/moonD4rk/HackBrowserData/actions/workflows/unittest.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/unittest.yml) [![Coverage Status](https://coveralls.io/repos/github/moonD4rk/HackBrowserData/badge.svg)](https://coveralls.io/github/moonD4rk/HackBrowserData)
7+
[![Lint](https://github.com/moonD4rk/HackBrowserData/actions/workflows/lint.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/lint.yml) [![build](https://github.com/moonD4rk/HackBrowserData/actions/workflows/build.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/build.yml) [![Release](https://github.com/moonD4rk/HackBrowserData/actions/workflows/release.yml/badge.svg)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/release.yml) [![Tests](https://github.com/moonD4rk/HackBrowserData/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/moonD4rk/HackBrowserData/actions/workflows/test.yml) [![Coverage Status](https://coveralls.io/repos/github/moonD4rk/HackBrowserData/badge.svg)](https://coveralls.io/github/moonD4rk/HackBrowserData)
88

99
[中文说明](https://github.com/moonD4rk/HackBrowserData/blob/master/README_ZH.md)
1010

@@ -96,45 +96,41 @@ $ git clone https://github.com/moonD4rk/HackBrowserData
9696

9797
$ cd HackBrowserData/cmd/hack-browser-data
9898

99-
$ CGO_ENABLED=1 go build
99+
$ go build
100100
```
101101

102102
### Cross compile
103103

104-
Need install target OS's `gcc` library, here's an example of use `Mac` building for `Windows` and `Linux`
104+
Here's an example of use `Mac` building for `Windows` and `Linux`
105105

106106
#### For Windows
107107

108108
```shell
109-
brew install mingw-w64
110-
111-
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build
109+
GOOS=windows GOARCH=amd64 go build
112110
```
113111

114112
#### For Linux
115113

116114
````shell
117-
brew install FiloSottile/musl-cross/musl-cross
118-
119-
CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags -static"
115+
GOOS=linux GOARCH=amd64 go build
120116
````
121117

122118
### Run
123119

124120
You can double-click to run, or use command line.
125121

126-
```
127-
PS C:\test> .\hack-browser-data.exe -h
122+
```powershell
123+
PS C:\Users\moond4rk\Desktop> .\hack-browser-data.exe -h
128124
NAME:
129125
hack-browser-data - Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser
130126
131127
USAGE:
132-
[hack-browser-data -b chrome -f json --dir results --zip]
128+
[hack-browser-data -b chrome -f json -dir results --zip]
133129
Export all browsing data (passwords/cookies/history/bookmarks) from browser
134130
Github Link: https://github.com/moonD4rk/HackBrowserData
135131
136132
VERSION:
137-
0.4.5
133+
0.4.6
138134
139135
GLOBAL OPTIONS:
140136
--verbose, --vv verbose (default: false)
@@ -146,25 +142,20 @@ GLOBAL OPTIONS:
146142
--full-export, --full is export full browsing data (default: true)
147143
--help, -h show help
148144
--version, -v print the version
149-
150-
151-
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results --zip
152-
[NOTICE] [browser.go:46,pickChromium] find browser Chrome success
153-
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge success
154-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success
155-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_password.json success
156-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_creditcard.json success
157-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_bookmark.json success
158-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_cookie.json success
159-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_history.json success
160-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_history.json success
161-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_download.json success
162-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_password.json success
163-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_creditcard.json success
164-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_bookmark.json success
165-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_cookie.json success
145+
```
146+
For example, the following is an automatic scan of the browser on the current computer, outputting the decryption results in `JSON` format and compressing as `zip`.
166147

167148
```
149+
PS C:\Users\moond4rk\Desktop> .\hack-browser-data.exe -b all -f json --dir results --zip
150+
151+
PS C:\Users\moond4rk\Desktop> ls -l .\results\
152+
Directory: C:\Users\moond4rk\Desktop\results
153+
154+
Mode LastWriteTime Length Name
155+
---- ------------- ------ ----
156+
-a---- 7/15/2024 10:55 PM 44982 results.zip
157+
```
158+
168159
### Run with custom browser profile folder
169160

170161
If you want to export data from a custom browser profile folder, you can use the `-p` parameter to specify the path of the browser profile folder. PS: use double quotes to wrap the path.

README_ZH.md

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -86,51 +86,47 @@
8686
8787
### 从源码编译
8888

89-
仅支持 `go 1.18+` 以后版本,一些函数使用到了泛型
89+
仅支持 `go 1.21+` 以后版本,一些函数使用到了泛型基础库
9090

9191
``` bash
9292
$ git clone https://github.com/moonD4rk/HackBrowserData
9393

9494
$ cd HackBrowserData/cmd/hack-browser-data
9595

96-
$ CGO_ENABLED=1 go build
96+
$ go build
9797
```
9898

9999
### 跨平台编译
100100

101-
由于用到了 `go-sqlite3` 库,在跨平台编译时需提前安装支持目标平台的 `GCC` 工具,下面以 `MacOS` 下分别编译 `Windows``Linux` 程序为例:
101+
以 macOS` 下分别编译 `Windows``Linux` 程序为例:
102102

103103
#### Windows
104104

105105
``` shell
106-
brew install mingw-w64
107-
108-
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build
106+
GOOS=windows GOARCH=amd64 go build
109107
```
110108

111109
#### Linux
112110

113111
``` shell
114-
brew install FiloSottile/musl-cross/musl-cross
115-
116-
CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags -static"
112+
GOOS=linux GOARCH=amd64 go build
117113
```
118114

119115
### 运行
120116
双击直接运行,也可以使用命令行调用相应的命令。
121117

122-
```
123-
PS C:\test> .\hack-browser-data.exe -h
118+
```powershell
119+
PS C:\Users\moond4rk\Desktop> .\hack-browser-data.exe -h
124120
NAME:
125121
hack-browser-data - Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser
126122
127123
USAGE:
128-
[hack-browser-data -b chrome -f json --dir results --zip]
124+
[hack-browser-data -b chrome -f json -dir results --zip]
129125
Export all browsing data (passwords/cookies/history/bookmarks) from browser
130126
Github Link: https://github.com/moonD4rk/HackBrowserData
131127
132128
VERSION:
133-
0.4.5
129+
0.4.6
134130
135131
GLOBAL OPTIONS:
136132
--verbose, --vv verbose (default: false)
@@ -142,27 +138,23 @@ GLOBAL OPTIONS:
142138
--full-export, --full is export full browsing data (default: true)
143139
--help, -h show help
144140
--version, -v print the version
141+
```
145142

143+
举个例子:下面是自动扫描当前电脑上的浏览器数据,以 `JSON` 格式输出解密结果并压缩为 `zip` 文件
146144

147-
PS C:\test> .\hack-browser-data.exe -b all -f json --dir results --zip
148-
[NOTICE] [browser.go:46,pickChromium] find browser Chrome success
149-
[NOTICE] [browser.go:46,pickChromium] find browser Microsoft Edge success
150-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_download.json success
151-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_password.json success
152-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_creditcard.json success
153-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_bookmark.json success
154-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_cookie.json success
155-
[NOTICE] [browsingdata.go:59,Output] output to file results/microsoft_edge_history.json success
156-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_history.json success
157-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_download.json success
158-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_password.json success
159-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_creditcard.json success
160-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_bookmark.json success
161-
[NOTICE] [browsingdata.go:59,Output] output to file results/chrome_cookie.json success
145+
```powershell
146+
PS C:\Users\moond4rk\Desktop> .\hack-browser-data.exe -b all -f json --dir results --zip
162147
148+
PS C:\Users\moond4rk\Desktop> ls -l .\results\
149+
Directory: C:\Users\moond4rk\Desktop\results
150+
151+
Mode LastWriteTime Length Name
152+
---- ------------- ------ ----
153+
-a---- 7/15/2024 10:55 PM 44982 results.zip
163154
```
164155

165156
### 基于此工具的一些其他项目
157+
166158
[Sharp-HackBrowserData](https://github.com/S3cur3Th1sSh1t/Sharp-HackBrowserData)
167159

168160
[Reflective-HackBrowserData](https://github.com/idiotc4t/Reflective-HackBrowserData)

cmd/hack-browser-data/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Execute() {
3030
Name: "hack-browser-data",
3131
Usage: "Export passwords|bookmarks|cookies|history|credit cards|download history|localStorage|extensions from browser",
3232
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",
33-
Version: "0.4.5",
33+
Version: "0.4.6",
3434
Flags: []cli.Flag{
3535
&cli.BoolFlag{Name: "verbose", Aliases: []string{"vv"}, Destination: &verbose, Value: false, Usage: "verbose"},
3636
&cli.BoolFlag{Name: "compress", Aliases: []string{"zip"}, Destination: &compress, Value: false, Usage: "compress result to zip"},

0 commit comments

Comments
 (0)