Commit Graph
72 Commits
Author SHA1 Message Date
Roger 8c9c9901a1 fix(export): pack --zip before removing the outputs (#663)
CompressDir deleted each file as it was added and wrote the zip last, so a failure lost the output,
and it packed and deleted every file in -d. The writer now packs only the files it wrote, renames
the zip into place, and only then removes them.
2026-10-28 17:05:28 +08:00
Roger 5f7bfbd455 fix(chromium): open LevelDB copies read-only (#662)
A read-write open replays the journal into new files and renames CURRENT in the copy;
on Windows that write can fail, which emptied one profile's session storage in CI.
2026-10-28 16:57:13 +08:00
Roger 1592f7b7d6 fix: fill Firefox bookmark fields, make Safari IDs unique (#661)
Both are listed output fixes (RFC-008): Firefox exported every bookmark with
folder "url", no type, and id 0, and Safari numbered bookmarks per folder, so
IDs repeated. The golden diff is the fix.
2026-10-28 15:55:29 +08:00
Roger 4add07e825 refactor: add the Safari base under internal/browser (#660)
Parsers move with git mv and hand records to a Collector; discovery reads a copy
of SafariTabs.db, and app hands the run's login keychain to the default profile's
password extractor. The old browser/safari runs the new extractors.
2026-10-28 15:51:15 +08:00
Roger 2093045664 refactor: add the Firefox base under internal/browser (#659)
Parsers move with git mv and hand records to a Collector; the old browser/firefox
runs them, and app now discovers Firefox. A profile without a usable key exports
its logins instead of panicking, as RFC-008 now lists.
2026-10-28 15:06:07 +08:00
Roger 9d51aa869e fix(winapi): look in install paths before App Paths (#657)
CocCoc and Yandex both ship browser.exe and App Paths names only one, so ABE asked Yandex's program
for CocCoc's key and CocCoc's v20 cookies came out empty. A browser's own install locations now come
first, then App Paths, then a running process.
2026-10-27 17:58:27 +08:00
Roger 2b70e4ad65 refactor: run Chromium through the internal/app pipeline (#656)
Validate, Discover, NewPlan, Execute, and Report run beside today's path: one snapshot per user
data dir, each dir's keys retrieved once on first use, every record stamped by the collector.
On the Chromium fixtures it writes the extract goldens byte for byte; the CLI switches over later.
2026-10-27 17:17:41 +08:00
Roger 322c41d187 refactor: add the Chromium base under internal/browser (#655)
Parsers move with git mv so their history follows them, and now read a ProfileSnapshot and hand
records to a Collector. The old browser/chromium runs these extractors, so today's CLI exercises
them; its list --detail counters stay until the switch-over.
2026-10-27 16:27:13 +08:00
Roger b655afd054 refactor: merge the browser tables into internal/browser (#654)
One Def per browser carries every OS's user data dirs, keychain label, and Windows ABE target,
so the per-OS lists and the abeTargets join go away and today's configs derive from it;
a test parsing com_iid.c keeps the payload's table in step with the ABE rows.
2026-10-27 16:06:57 +08:00
Roger 0b8cc23216 refactor: introduce internal/snapshot for copy and zip (#653)
One copier and one zip transport serve archive, restore, and every profile copy, so locked-file handling has one home.
Dropping otiai10/copy takes x/sync out of every binary and testing out of the Windows exe.
2026-10-27 14:54:54 +08:00
Roger 49747bf0ce refactor: move crypto and key retrieval under internal/ (#652)
Crypto stays free of OS calls, so every secret-store read sits behind one masterkey contract.
The macOS v10 retriever reads one run-scoped login keychain handle that Safari will share.
2026-10-27 13:19:45 +08:00
Roger b04c436a73 refactor: introduce category, record, and export packages (#651)
Later layers speak categories and records, and export needs nothing else.
Ordering rows once in the exporter fixes Firefox history, written least visited first.
2026-10-26 19:55:19 +08:00
Roger 9937dbf9fb refactor: move leaf utilities under internal/ (#650)
Phase 1: the packages with no project dependencies move first, so every
later phase builds on finished leaves; the goldens pin the behavior.
2026-10-26 16:41:52 +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
jingzhe df13d52183 fix: issue of data missing caused by title being null 2022-12-29 11:30:29 +08:00
beichen f747b598a1 feat: add sogou and dc browser 2022-11-29 17:22:27 +08:00
moonD4rk b7cabaa7b9 chore: upgrade go mod, remove json iterator dep 2022-10-30 13:37:49 +08:00
moonD4rk 877fcd2c84 refactor: add provider software folder 2022-10-24 13:42:31 +08:00
moonD4rk 714e8a57b9 chore: remove abandoned linter 2022-10-24 13:36:01 +08:00
ᴍᴏᴏɴD4ʀᴋ cf4ffeca51 fix: find cookies file failed 2022-08-16 19:30:53 +08:00
ᴍᴏᴏɴD4ʀᴋ 86a747143b refactor: remove unused err message 2022-08-16 19:24:36 +08:00
ᴍᴏᴏɴD4ʀᴋ e9bbe16c7d feat: sort with browser name 2022-08-16 15:51:28 +08:00
ᴍᴏᴏɴD4ʀᴋ ce415ff363 fix: add errors import for darwin 2022-08-14 23:38:50 +08:00
ᴍᴏᴏɴD4ʀᴋ 76554e48c3 refactor: only handle error if security command not found 2022-08-14 23:04:15 +08:00
ᴍᴏᴏɴD4ʀᴋ 2a0ed1ebbf chore: add lint ruler, exclude unused variable 2022-08-14 22:51:31 +08:00
ᴍᴏᴏɴD4ʀᴋ 14fd71005a refactor: add nolint comment 2022-08-14 22:16:24 +08:00
ᴍᴏᴏɴD4ʀᴋ 63fc3a656a refactor: pass golang-ci lint check 2022-08-14 21:22:34 +08:00
ᴍᴏᴏɴD4ʀᴋ 147d57e8f4 refactor: add comments and format code style 2022-08-14 01:18:28 +08:00
slimwang 29970d7752 fix:'cannot access the file ' Error
fix:'The process cannot access the file because it is being used by another process' Error
2022-08-11 20:59:56 +08:00
ᴍᴏᴏɴD4ʀᴋ 7b8e2a3fd2 fix: filter result if exported data is empty 2022-06-05 15:27:14 +08:00
ᴍᴏᴏɴD4ʀᴋ d1ae09d9e4 fix: add utf8 encoder for outputter 2022-06-05 15:15:41 +08:00
ᴍᴏᴏɴD4ʀᴋ 511f71fd48 refactor: remove get single user item path 2022-06-05 14:59:44 +08:00
ᴍᴏᴏɴD4ʀᴋ 6d710c20e1 refactor: refactor package with gofumpt 2022-06-05 14:51:37 +08:00
ᴍᴏᴏɴD4ʀᴋ e6aa1f0c61 feat: add multiple user for chromium 2022-06-05 14:04:39 +08:00
Amir-78 fd3399c64a Chrome and OperaGx profile folder has been fixed 2022-05-26 13:51:49 +01:00
ᴍᴏᴏɴD4ʀᴋ b7821d4024 fix: check copy dir with filename suffix 2022-05-03 15:51:10 +08:00
Ciprian Conache e52744d608 fix typos 2022-05-02 15:26:12 +02:00
ᴍᴏᴏɴD4ʀᴋ 353503f90f feat: support extension for firefox 2022-04-30 00:37:23 +08:00
ᴍᴏᴏɴD4ʀᴋ 26de1075ee feat: support extension for chromium 2022-04-29 23:59:37 +08:00
ᴍᴏᴏɴD4ʀᴋ d6cb101512 refactor: remove log from fileutil 2022-04-29 21:30:14 +08:00
ᴍᴏᴏɴD4ʀᴋ 4fe335c270 fix: modify firefox asn1 data struct 2022-04-20 02:18:55 +08:00
ᴍᴏᴏɴD4ʀᴋ 8c2f72ccb6 fix: find chromium key failed on windows 2022-04-20 02:18:55 +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ʀᴋ 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ʀᴋ 6217ca3bed docs: update readme to v0.4.0 2022-04-18 02:07:31 +08:00
ᴍᴏᴏɴD4ʀᴋ 04e620e54c refactor: output browsing data package 2022-04-18 00:47:39 +08:00