Commit Graph

83 Commits

Author SHA1 Message Date
Roger 439ff52b02 fix(windows): silent default dump on double-click (#591) 2026-04-27 14:47:59 +08:00
Roger 76e2615db2 refactor(windows): clean up Chrome ABE module (#574)
* refactor(abe): remove --abe-key flag and its global state
* refactor(abe): rework scratch protocol and Go/C structure
2026-04-19 15:20:51 +08:00
slimwang c3d30b9e8a feat(windows): Chrome App-Bound Encryption implementation (#573)
* build(abe): add zig-cc payload build system + C reflective loader
* feat(abe): add reflective injector and Go ABE key-retriever primitives
* feat(abe): wire ABERetriever into DefaultRetriever chain + --abe-key CLI
* feat(abe): route Chromium v20 ciphertext through AES-GCM with ABE key
2026-04-18 23:25:59 +08:00
Roger 370c5882c4 feat: add Safari password extraction from macOS Keychain (#568) 2026-04-13 21:34:40 +08:00
Roger b3bbc0dadf feat: add CountEntries to skip decryption for list --detail (#562)
* feat: add CountEntries to skip decryption for list --detail (#549)
* test: add CountEntries and countCategory tests at browser level
* fix: address review feedback on CountRows and countLocalStorage
* test: add CountRows unit tests
2026-04-07 22:28:39 +08:00
Roger 5f42d4fe5f refactor: redesign logging system for CLI-friendly output (#561)
* refactor: redesign logging system for CLI-friendly output
* refactor: remove ANSI color support from logger
* fix: address PR review feedback
2026-04-07 16:50:01 +08:00
Roger 4af2ded428 feat: cli migrate to cobra with subcommands (#550)
* feat: migrate CLI to cobra with dump/list/version subcommands (#546)
* fix: remove residual duckduckgo references and add README/LICENSE to release archives
* fix: address PR review feedback from Copilot
2026-04-05 14:25:51 +08:00
Roger 0ace27ce9a feat: wire V2 architecture into CLI entry point (#540)
* feat: wire V2 architecture into CLI entry point
* fix: warn and exit early when no browsers found
2026-04-04 14:11:08 +08:00
ᴍᴏᴏɴD4ʀᴋ ad020cf135 chore: downgrade golang version to 1.20, support Windows 7. (#435)
* chore: downgrade golang version to 1.20, support windows 7

* chore: Update dependencies for Go project.

- Update dependencies in go.sum
- Improvements and optimizations in various files
- Bug fixes and error handling enhancements

* chore: Update modernc.org/sqlite library versions in go.mod and go.sum files

- Update version of `modernc.org/sqlite` to `v1.31.1` in `go.mod` and `go.sum` files
- Update module hash in `go.sum` file for `modernc.org/sqlite`
- Ensure consistency between `go.mod` and `go.sum` files in relation to `modernc.org/sqlite` version

* chore: replace log/slog with standard logger (#436)

* chore: replace log/slog with standard logger

* chore: Update Go dependencies and versions

- Update Go version from `1.22.5` to `1.20` and other dependencies
- Update critical dependencies to latest versions
- Ensure compatibility with new versions of dependencies

* chore: Optimize dependency management in workflows

- Update build and lint workflows to use `go mod tidy` for getting dependencies
- Change modules download mode to `'mod'` in linters configuration
- Add step to get dependencies in lint workflow

* refactor: Update dependencies and refactor Chromium key deletion logic

- Update `modernc.org/sqlite` to `v1.31.1` in `go.mod` and `go.sum`
- Increase version number to `0.5.0` in `cmd/hack-browser-data/main.go`
- Refactor and update logic for filtering and copying items in `browser/chromium/chromium.go`

* Improve logging functionality and data type conversion

- Add `String()` method to `DataType` enum in types.go
- Update log level to Debug in logger_test.go
- Set log level to Debug in `TestLoggerDebug` and `TestLoggerDebugf` functions
2024-10-22 13:01:13 +08:00
ᴍᴏᴏɴD4ʀᴋ 271e052481 fix: Improve error handling and fix wrong compress dir for windows (#367) (#368)
* fix: Improve error handling and fix wrong compress dir for windows
* refactor: Refactor fileutil package for pass linter
2024-07-17 22:32:29 +08:00
ᴍᴏᴏɴD4ʀᴋ c9beee2662 docs: Update the document version to 0.4.6 (#363)
* docs: Update README with version `0.4.6` and improvements
2024-07-16 12:01:21 +08:00
ᴍᴏᴏɴD4ʀᴋ e48f35cfd3 feat: refactor logger to standard library (#280)
* refactor: Refactor logging to use structured slog package.

- Remove `gookit` dependencies from `go.sum`
- Improve error logging in multiple packages by replacing `log` with `log/slog`
- Update dependencies in `go.mod`
- Add new `logger` package with test cases
- Refactor logging statements in multiple packages to use `slog` instead of `log`
- Change logging format and level in multiple packages for better structured logging

* refactor: Refactor logger package and add handler interface

- Refactor logger package
- Rename `defaultHandler` to `DefaultLogger`
- Move `ReplaceAttr` function to `Logger` struct
- Implement `LogHandler` struct with `slog.Handler` interface
- Add new `Logger` methods for configuration
- Add `SetMaxLevel`, `SetJSONHandler`, `SetTextHandler`, `SetOutput`, `SetVerbose`, `SetReplaceAttrFunc`
- Add verbose flag to `cmd/hack-browser-data/main.go` to increase logging

* refactor: Refactor logger package to use simplified handler initialization.

- Refactor logger package to use Default instead of DefaultLogger
- Update `NewHandler` method to correctly reference `Default` logger and simplify handler initialization
- Update tests for logger to reflect changes in Default usage
- Rename `DefaultLogger` to `Default` and update comments to better reflect its purpose
- Update function calls in hack-browser-data main.go to reflect logger package updates

* refactor: Refactor logging in Chromium implementation

Refactor logging and simplify decryption in chromium files
- Replace logger package import with shared slog package
- Change logging messages to use slog instead of logger
- Simplify decryption process by removing first 5 characters of encrypted key
- Refactor error logging in linux file to use shared slog package
- Replace string concatenation with formatted string in linux error message
2024-01-16 14:06:13 +08:00
moonD4rk 5a34d1c176 chore: Downgrade version number and remove unused flag
Refactor version number changes and remove unused flag in CLI

- Downgrade version number from `0.4.7` to `0.4.5` in main.go and README files
- Remove `HelpCommand` flag from `cli.App`
- Update `Github Link` in usage text of hack-browser-data CLI
2024-01-09 18:10:14 +08:00
moonD4rk 23daf093b8 chore: Update version number to 0.4.7 in README and main.go files
- Update version number to `0.4.7` in `README` and `README_ZH`
- Update version number to `0.4.7` in `cmd/hack-browser-data/main.go`
2024-01-09 18:10:14 +08:00
stevenlele 038e97e2dc chore: fix typos (#232) 2024-01-09 18:10:14 +08:00
Andrii Ursulenko ab4d3e14db fix: nil browsing data in case error and walkdir instead of walk (#229)
* fix: nil browsing data in case error

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>

* fix: ignore walk error, use walkdir instead of walk

---------

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>
Co-authored-by: Andrii Ursulenko <a.ursulenko@gmail.com>
2023-07-10 17:53:13 +08:00
moonD4rk 0a7f19ab91 refactor: lowercase library module name 2023-06-04 13:47:43 +08:00
moonD4rk 4b7ad4d505 feat: add is export full data option 2023-03-11 17:51:40 +08:00
moonD4rk cc4edc5cb6 refactor: initial default logger 2023-03-10 15:58:10 +08:00
moonD4rk b0cb59ec2c chore: update version flag 2023-03-10 14:54:47 +08:00
moonD4rk b65d3186c4 chore: update project layout 2023-03-10 14:52:26 +08:00
yuxiaojun bec3e3a1b0 fix: the bug that the command line Usage prompt is incomplete
The full prompt is "password|bookmark|cookie|history|credit card|download|localStorage|extension"

Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
2023-01-05 15:06:48 +08:00
moonD4rk 01b2bc582b fix: handle err run binary failed 2022-10-30 12:58:35 +08:00
ᴍᴏᴏɴD4ʀᴋ 9976fe0ea1 fix: init log error 2022-10-24 14:19:29 +08:00
ᴍᴏᴏɴD4ʀᴋ b52627afc7 Merge branch 'fix/logbug' into master 2022-10-24 14:04:12 +08:00
moonD4rk 877fcd2c84 refactor: add provider software folder 2022-10-24 13:42:31 +08:00
carr0t2 0f17a1d7b6 fix: log error 2022-10-21 13:27:54 +08:00
ᴍᴏᴏɴD4ʀᴋ 6d710c20e1 refactor: refactor package with gofumpt 2022-06-05 14:51:37 +08:00
ᴍᴏᴏɴD4ʀᴋ 353503f90f feat: support extension for firefox 2022-04-30 00:37:23 +08:00
ᴍᴏᴏɴD4ʀᴋ d6cb101512 refactor: remove log from fileutil 2022-04-29 21:30:14 +08:00
ᴍᴏᴏɴD4ʀᴋ 2452b2670a feat: update to v0.4.1, support local storage 2022-04-19 21:35:25 +08:00
ᴍᴏᴏɴD4ʀᴋ f5c3e6da5e style: add more debug log 2022-04-19 19:35:30 +08:00
ᴍᴏᴏɴD4ʀᴋ aa3326f1a3 feat: update to v0.4.0, based by generics 2022-04-18 02:14:32 +08:00
ᴍᴏᴏɴD4ʀᴋ 04e620e54c refactor: output browsing data package 2022-04-18 00:47:39 +08:00
ᴍᴏᴏɴD4ʀᴋ c9feef66ab feat: replace log with stdout color 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ f728d3201b feat: support profile path cmd options 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 9cd2f61f1b feat: add cli options 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 1d3b7bd214 feat: add command line and log 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ dc06b1d69b feat: add copy file to local 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 4551931c89 feat: rename browser layout and add generics util function 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 6e05315ac6 refactor: format project layout 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ f8b1de4666 refactor: format project layout 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 4d444891ab feat-dev: support firefox for windows and macos 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ f9904277fd dev-feat: format old code 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 0f2a541fa2 feat: add yandex browser for macOS 2021-12-10 10:58:10 +08:00
ᴍᴏᴏɴD4ʀᴋ 3ea87bf327 style: format layout with goimports 2021-07-04 17:35:06 +08:00
moond4rk 74ed03caa2 docs: update version flag to 0.3.5 2021-02-11 00:36:50 +08:00
moond4rk e7c2a77695 docs: update version flag to 0.3.4 2021-02-10 05:55:41 +08:00
moond4rk 6cbfa9c0b2 docs: update version flag to 0.3.3 2021-01-29 13:02:37 +08:00
moond4rk fe907881df docs: update verion flag to 0.3.2 2020-12-29 16:25:30 +08:00