diff --git a/CLAUDE.md b/CLAUDE.md index 59d38e0..95320db 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 diff --git a/README.md b/README.md index a34d5a8..52be6ef 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/hack-browser-data/main.go b/cmd/hack-browser-data/main.go index 3a4bf57..4be47a5 100644 --- a/cmd/hack-browser-data/main.go +++ b/cmd/hack-browser-data/main.go @@ -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) {