Commit Graph

40 Commits

Author SHA1 Message Date
ᴍᴏᴏɴD4ʀᴋ
6a495a1449
chore(deps): bump golang dependencies (#380)
* chore(deps): bump github.com/tidwall/gjson from 1.17.1 to 1.17.3

Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.17.1 to 1.17.3.
- [Commits](https://github.com/tidwall/gjson/compare/v1.17.1...v1.17.3)

---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump modernc.org/sqlite from 1.30.1 to 1.31.1

Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.30.1 to 1.31.1.
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.30.1...v1.31.1)

---
updated-dependencies:
- dependency-name: modernc.org/sqlite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-11 08:26:22 +08:00
dependabot[bot]
654dec8876 chore(deps): bump modernc.org/sqlite from 1.29.6 to 1.30.1
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.29.6 to 1.30.1.
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.29.6...v1.30.1)

---
updated-dependencies:
- dependency-name: modernc.org/sqlite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 22:47:11 +08:00
ᴍᴏᴏɴD4ʀᴋ
06fc064418 refactor/dependence: Upgrade Golang version and dependencies. (#322)
* chore: Set up automated package updates with dependabot.
2024-04-12 20:01:29 +08:00
ᴍᴏᴏɴD4ʀᴋ
c150b22c1b feat: refactor firefox get master key retrieval and decryption functions. (#300)
* refactor: Simplify Firefox master key retrieval and decryption functions.

- Simplify variable names and functions in browsingdata/password/password.go
- Modify Decrypt function for each PBE type to have only one parameter named globalSalt in crypto/crypto.go
- Implement functions to retrieve master key from Firefox's key4.db file and query metadata and private NSS data in browser/firefox/firefox.go

* chore: Add dependencies and tests to Firefox package.

- Add go-sqlmock and github.com/kisielk/sqlstruct dependencies
- Add tests for Firefox package metadata and nssPrivate query
- Add test for Firefox's processMasterKey function (currently commented out)

* refactor: Refactor Firefox test functions, remove unused code

- Remove unused test function in firefox_test.go file
- Clean up code by removing unnecessary changes
- Simplify file structure for easier maintenance and readability
2024-01-27 23:15:05 +08:00
ᴍᴏᴏɴD4ʀᴋ
baa0e09ad2
dev: Remove CGO go-sqlite3 with pure go driver (#292)
* chore: Resize logo and update browser support in READMEs (#284)

* chore: Resize logo and update browser support in READMEs

* docs: Update Coverage Status badge URL

* chore: add typos check linter in github actions (#285)

* refactor: Disable JSON handling in logger/logger.go.

* chore: Standardize spelling and add typos check workflows.

* refactor: Update SQLite driver import for browsing data package.

* refactor: Refactor browsing data package to use SQLite driver instead of SQLite3.

* docs: Add contribution guidelines to README file (#289)

* chore: Refactor file and directory names for improved organization and consistency
2024-01-19 15:45:24 +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
baac121610 chore: Refactor and update dependencies in go.mod file
- Refactor and optimize parsing function in browsingdata extension
- Update dependency versions and indirect versions in go.mod
2024-01-09 18:10:14 +08:00
moonD4rk
83fc248195
chore: update Go version and dependencies for builds
- Update Go version from `1.20` to `1.21` in go.mod, .github/workflows/build.yml, and .github/workflows/lint.yml
2023-10-02 22:37:42 +08:00
moonD4rk
0a7f19ab91
refactor: lowercase library module name 2023-06-04 13:47:43 +08:00
moonD4rk
4fb2acd85c feat: test case for convert utf16 value to utf8 2023-05-08 19:22:55 +08:00
moonD4rk
bd56109824 chore: update go version to 1.20 2023-03-11 21:23:22 +08:00
moonD4rk
fbe61a2cf4
chore: upgrade package dependencies 2023-03-11 19:18:11 +08:00
moonD4rk
b65d3186c4
chore: update project layout 2023-03-10 14:52:26 +08:00
moonD4rk
da496cd563
fix: wrong log caller skip level 2023-03-09 19:07:06 +08:00
moonD4rk
7e6c18caea
chore: upgrade package dependencies 2023-03-09 17:55:39 +08:00
moonD4rk
b7cabaa7b9
chore: upgrade go mod, remove json iterator dep 2022-10-30 13:37:49 +08:00
ᴍᴏᴏɴD4ʀᴋ
63fc3a656a refactor: pass golang-ci lint check 2022-08-14 21:22:34 +08:00
ᴍᴏᴏɴD4ʀᴋ
d1ae09d9e4 fix: add utf8 encoder for outputter 2022-06-05 15:15:41 +08:00
ᴍᴏᴏɴD4ʀᴋ
4fe266d954 feat: support export chromium local storage 2022-04-19 22:33:12 +08:00
ᴍᴏᴏɴD4ʀᴋ
121e49bdff feat: add local storage for firefox 2022-04-19 21:28:43 +08:00
ᴍᴏᴏɴD4ʀᴋ
806c5bf2ee refactor: replace util with go generics 2022-04-17 16:35:40 +08:00
ᴍᴏᴏɴD4ʀᴋ
a0eeee8604 feat: replace log with stdout color 2022-04-16 03:57:19 +08:00
ᴍᴏᴏɴD4ʀᴋ
8f7e602e9f feat: support profile path cmd options 2022-04-14 23:36:11 +08:00
ᴍᴏᴏɴD4ʀᴋ
a499c3ca0f feat: add chromium for windows 2022-04-13 15:49:15 +08:00
ᴍᴏᴏɴD4ʀᴋ
b8da73e543 feat: update dep 2022-04-12 18:23:39 +08:00
ᴍᴏᴏɴD4ʀᴋ
b064326103 chore: update go mod and git ignore 2022-04-12 13:48:28 +08:00
ᴍᴏᴏɴD4ʀᴋ
a6efcff6ea feat: rename browser layout and add generics util function 2022-04-08 19:08:22 +08:00
ᴍᴏᴏɴD4ʀᴋ
4f7adf3db7 feat: rename item name 2022-04-02 14:47:12 +08:00
ᴍᴏᴏɴD4ʀᴋ
2689371812 feat: format project layout 2022-04-01 15:00:56 +08:00
ᴍᴏᴏɴD4ʀᴋ
a341928926 feat-dev: support firefox for windows and macos 2022-01-16 22:31:51 +08:00
ᴍᴏᴏɴD4ʀᴋ
9129c2a0c7 dev-feat: add chromium browser for macos 2021-12-31 16:50:50 +08:00
ᴍᴏᴏɴD4ʀᴋ
3e6ecfb9da fix: upgrade go-sqlite3 verion, remove compile warning. Close #103 2021-12-13 21:58:25 +08:00
dependabot[bot]
176400adeb
chore(deps): bump github.com/tidwall/gjson from 1.6.0 to 1.9.3
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.6.0 to 1.9.3.
- [Release notes](https://github.com/tidwall/gjson/releases)
- [Commits](https://github.com/tidwall/gjson/compare/v1.6.0...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-25 02:25:07 +00:00
ᴍᴏᴏɴD4ʀᴋ
b806827f6c feat: decrypt chrome for linux password with dbus Close #4 2020-07-25 22:17:50 +08:00
ᴍᴏᴏɴD4ʀᴋ
aab3aafad7 refactor: remove zap log package Close #19 2020-07-24 17:39:44 +08:00
ᴍᴏᴏɴD4ʀᴋ
a5ee0b722a fix: add bom for csv. Closes #7 2020-06-30 12:01:00 +08:00
ᴍᴏᴏɴD4ʀᴋ
55bfd89fa9 feat: add csv and json output 2020-06-23 18:30:00 +08:00
ᴍᴏᴏɴD4ʀᴋ
7e472c5cee feat: add history parse 2020-06-22 17:23:18 +08:00
ᴍᴏᴏɴD4ʀᴋ
c3cffa08a6 refactor: remove go-openssl package 2020-06-20 23:20:01 +08:00
ᴍᴏᴏɴD4ʀᴋ
891e3fac81 feat: add chrome password decrypt 2020-06-19 20:43:31 +08:00