mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
docs: Safari, keychain flags, and the full browser list (#671)
The help text and README named only Chromium and Firefox; they now add Safari and --keychain-pw-stdin, correct the cookie-editor note (other categories are written, not skipped), and align the browser names with the code, adding Browser from Vought.
This commit is contained in:
1 parent
eca1f058c6
commit
d00239f9f2
3 files changed
+15
-11
No files matched your search
@@ -61,7 +61,7 @@ make payload-clean # rm internal/abe/payload/*.bin
|
||||
- **Logging**: `log.Debugf` for record-level diagnostics, `log.Infof` for user-facing progress/status, `log.Warnf` for unexpected conditions. Extract methods should return errors, not log them.
|
||||
- **Naming**: follow Go conventions and the settled names in `rfcs/004-naming-decisions.md` — `Def` not `BrowserConfig`, `Extract` not `BrowsingData`
|
||||
- **Comment width**: wrap comments at 140 columns (matches `.golangci.yml` `lll.line-length`)
|
||||
- **Tests**: use `t.TempDir()` with real fixture files (SQLite, JSON, LevelDB, plist) — never a live browser, never a database mock
|
||||
- **Tests**: `internal/browser/browsertest` builds real fixture files (SQLite, JSON, LevelDB, plist) into a `t.TempDir()` — never a live browser, never a database mock; goldens live in each package's `testdata/` and `go test ./... -update` regenerates them
|
||||
- **Architecture**: see `rfcs/README.md` — design RFCs 000–012, format and technique RFCs 013–021
|
||||
|
||||
## Key Constraints
|
||||
|
||||
@@ -46,11 +46,12 @@ It can also decrypt data **across machines and operating systems**: export the m
|
||||
| CocCoc | ✅² | ✅ | - |
|
||||
| Arc | ✅ | ✅ | - |
|
||||
| DuckDuckGo³ | ✅ | - | - |
|
||||
| Browser from Vought³ | ✅ | - | - |
|
||||
| QQ³ | ✅ | - | - |
|
||||
| 360 ChromeX³ | ✅ | - | - |
|
||||
| 360 Chrome³ | ✅ | - | - |
|
||||
| DC Browser³ | ✅ | - | - |
|
||||
| Sogou Explorer³| ✅ | - | - |
|
||||
| 360 Speed X³ | ✅ | - | - |
|
||||
| 360 Speed³ | ✅ | - | - |
|
||||
| DC³ | ✅ | - | - |
|
||||
| Sogou³ | ✅ | - | - |
|
||||
| Firefox | ✅ | ✅ | ✅ |
|
||||
| Safari¹ | - | ✅ | - |
|
||||
|
||||
@@ -112,7 +113,7 @@ The resulting `hack-browser-data.exe` includes full ABE cookie decryption on Chr
|
||||
```
|
||||
$ hack-browser-data -h
|
||||
hack-browser-data decrypts and exports browser data from Chromium-based
|
||||
browsers and Firefox on Windows, macOS, and Linux.
|
||||
browsers, Firefox, and Safari on Windows, macOS, and Linux.
|
||||
|
||||
GitHub: https://github.com/moonD4rk/HackBrowserData
|
||||
|
||||
@@ -135,7 +136,8 @@ Flags:
|
||||
-d, --dir string output directory (default "results")
|
||||
-f, --format string output format: csv|json|cookie-editor (default "json")
|
||||
-h, --help help for hack-browser-data
|
||||
--keychain-pw string macOS keychain password
|
||||
--keychain-pw string macOS keychain password (visible in ps and shell history)
|
||||
--keychain-pw-stdin read the macOS keychain password from the first line of stdin
|
||||
-p, --profile-path string custom profile dir path, get with chrome://version
|
||||
-v, --verbose enable debug logging
|
||||
--zip compress output to zip
|
||||
@@ -154,10 +156,11 @@ Running `hack-browser-data` without a subcommand defaults to `dump`.
|
||||
| `--format` | `-f` | `json` | Output format (csv\|json\|cookie-editor) |
|
||||
| `--dir` | `-d` | `results` | Output directory |
|
||||
| `--profile-path` | `-p` | | Custom profile dir path, get with chrome://version |
|
||||
| `--keychain-pw` | | | macOS keychain password |
|
||||
| `--keychain-pw` | | | macOS keychain password (visible in `ps` and shell history) |
|
||||
| `--keychain-pw-stdin` | | | Read the macOS keychain password from the first line of stdin |
|
||||
| `--zip` | | `false` | Compress output to zip |
|
||||
|
||||
> `--format cookie-editor` writes **only cookies**, as a JSON array matching the Cookie-Editor browser extension's import format; non-cookie categories are skipped.
|
||||
> `--format cookie-editor` writes cookies as a JSON array matching the Cookie-Editor browser extension's import format; every other category is written exactly as the `json` format writes it.
|
||||
|
||||
### Cross-host decryption
|
||||
|
||||
@@ -190,7 +193,8 @@ Derives each Chromium installation's master keys on the origin host and writes t
|
||||
|-----------------|-------|----------|-------------------------------------------------|
|
||||
| `--browser` | `-b` | `all` | Target browser (all\|chrome\|edge\|...) |
|
||||
| `--output` | `-o` | *stdout* | Output file (written `0600`); stdout if omitted |
|
||||
| `--keychain-pw` | | | macOS keychain password |
|
||||
| `--keychain-pw` | | | macOS keychain password (visible in `ps` / history) |
|
||||
| `--keychain-pw-stdin` | | | Read the keychain password from stdin's first line |
|
||||
|
||||
#### `archive` - Pack decryption-relevant files for transport
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ func rootCmd() *cobra.Command {
|
||||
Use: "hack-browser-data",
|
||||
Short: "A CLI tool for decrypting and exporting browser data",
|
||||
Long: `hack-browser-data decrypts and exports browser data from Chromium-based
|
||||
browsers and Firefox on Windows, macOS, and Linux.
|
||||
browsers, Firefox, and Safari on Windows, macOS, and Linux.
|
||||
|
||||
GitHub: https://github.com/moonD4rk/HackBrowserData`,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
Reference in new issue
Block a user