Commit Graph

41 Commits

Author SHA1 Message Date
ᴍᴏᴏɴ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
stevenlele
07561f56fa feat: improve extension parsing (#235)
* feat: improve extension parsing

* refactor: Refactor extension parsing and update file names.

- Refactor extension parsing function for clarity and DRYness
- Update name of a file to "Secure Preferences"
- Add TODO comment for future work on extension files and folders
- Remove unnecessary file write operation and import statement

---------

Co-authored-by: moonD4rk <moond4rk13@gmail.com>
2024-01-09 18:10:14 +08:00
moonD4rk
6c1f653b4f refactor: Refactor storage queries and filters.
- Update local storage query constant and function calls
- Remove null and control characters from UTF-8 split function
2023-05-08 19:24:15 +08:00
moonD4rk
b824f74fae fix: missing key and value in localstorage 2023-05-08 19:22:55 +08:00
moonD4rk
89cd0de693
refactor: rename funciton name 2023-03-11 18:41:05 +08:00
moonD4rk
b65d3186c4
chore: update project layout 2023-03-10 14:52:26 +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ʀᴋ
9ba87962a6 refactor-dev: rename imported log path name 2022-04-17 16:42:36 +08:00
Carlo Mandelli
3e77b57a72 fix: year outside of range error 2021-01-28 16:04:42 +01:00
moond4rk
24f2ceb6b4 docs: add key function documents 2020-11-10 14:11:16 +08:00
ᴍᴏᴏɴD4ʀᴋ
221c059642 feat: add compress result to zip file Close #24 2020-08-07 11:45:37 +08:00
ᴍᴏᴏɴD4ʀᴋ
2b2cc13cff refactor: format code with interface, Close #22 2020-08-01 02:36:44 +08:00
ᴍᴏᴏɴD4ʀᴋ
dabeaabc15 refactor: format code 2020-07-24 15:51:59 +08:00
ᴍᴏᴏɴD4ʀᴋ
95c886c04f refactor: remove redundant code 2020-07-22 16:00:40 +08:00
ᴍᴏᴏɴD4ʀᴋ
07149e20b4 refactor: format code with interface Closes #13 2020-07-22 15:49:31 +08:00
ᴍᴏᴏɴD4ʀᴋ
0b8cee62cd style: format project 2020-07-10 16:37:27 +08:00
ᴍᴏᴏɴD4ʀᴋ
8a3f4b8fee fix: compile error for linux 2020-07-10 16:33:06 +08:00
ᴍᴏᴏɴD4ʀᴋ
500ac34ab3 chore: support firefox for linux github action 2020-07-10 16:27:35 +08:00
ᴍᴏᴏɴD4ʀᴋ
f4294839f6 feat: add chrome decrypt for linux 2020-07-10 16:09:23 +08:00
ᴍᴏᴏɴD4ʀᴋ
4f80bd0ca7 fix: firefox for windows decrypt failure 2020-07-10 10:46:33 +08:00
ᴍᴏᴏɴD4ʀᴋ
1b7edcbe6c feat: add firefox for windows decrypt Closes #11 2020-07-09 19:34:26 +08:00
ᴍᴏᴏɴD4ʀᴋ
8e56250880 style: format code and update readme 2020-07-09 16:49:35 +08:00
ᴍᴏᴏɴD4ʀᴋ
22eccce30d fix: windows compile failure 2020-07-07 20:37:04 +08:00
ᴍᴏᴏɴD4ʀᴋ
a6fca7c6b3 feat: parse cookies, bookmarks and history Closes #9 2020-07-07 20:27:14 +08:00
ᴍᴏᴏɴD4ʀᴋ
fc8f965fdd feat: add firefox parse and output 2020-07-06 16:13:25 +08:00
ᴍᴏᴏɴD4ʀᴋ
a258c3e65a docs: update readme 2020-07-06 15:20:29 +08:00
ᴍᴏᴏɴD4ʀᴋ
0a904b93de feat: add firefox password decrypt 2020-07-06 15:19:11 +08:00
ᴍᴏᴏɴD4ʀᴋ
064dcff19f style: format const name 2020-07-02 13:08:38 +08:00
ᴍᴏᴏɴD4ʀᴋ
74f6d0ad4a refactor: remove makefile 2020-06-29 16:44:33 +08:00
ᴍᴏᴏɴD4ʀᴋ
eb1a7f89ec style: format browser name 2020-06-29 15:18:41 +08:00
ᴍᴏᴏɴD4ʀᴋ
dc8c14c538 feat: add qq browser 2020-06-28 21:17:28 +08:00
ᴍᴏᴏɴD4ʀᴋ
169cf9ae65 refactor: format filename 2020-06-28 17:25:38 +08:00
ᴍᴏᴏɴD4ʀᴋ
206a13cfd6 docs: update readme to 0.1.0 2020-06-28 17:18:02 +08:00
ᴍᴏᴏɴD4ʀᴋ
ebeef65f81 feat: sort output by timestamp 2020-06-26 04:33:23 +08:00
ᴍᴏᴏɴD4ʀᴋ
31419dc003 feat: add error warp 2020-06-25 17:37:18 +08:00
ᴍᴏᴏɴD4ʀᴋ
55bfd89fa9 feat: add csv and json output 2020-06-23 18:30:00 +08:00
ᴍᴏᴏɴD4ʀᴋ
5bfa781466 feat: add macOS Chrome parse 2020-06-23 10:42:10 +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