Skip to content

Instantly share code, notes, and snippets.

@s-c-p
Created November 3, 2017 15:24
Show Gist options
  • Save s-c-p/ff82c4cd5ef0bc4fa3abc2b42aeba340 to your computer and use it in GitHub Desktop.
Save s-c-p/ff82c4cd5ef0bc4fa3abc2b42aeba340 to your computer and use it in GitHub Desktop.
--understand what we are looking at
.tables
PRAGMA table_info(moz_bookmarks);
-- now take a look at the diagram connecting bookmarks and places @ http://www.forensicswiki.org/wiki/Mozilla_Firefox_3_History_File_Format
.headers on
.mode csv
.output exported-bookmarks
SELECT
bm.id, bm.type, bm.parent, bm.position, bm.title, pl.url,
bm.keyword_id, bm.folder_type, bm.dateAdded, bm.lastModified,
bm.guid, bm.syncStatus, bm.syncChangeCounter
FROM moz_bookmarks AS bm
JOIN moz_places AS pl
ON
bm.fk=pl.id;
/*
the following code also worked--
SELECT
bm.id, bm.type, bm.parent, bm.position, bm.title, pl.url,
bm.keyword_id, bm.folder_type, bm.dateAdded, bm.lastModified,
bm.guid, bm.syncStatus, bm.syncChangeCounter
FROM moz_bookmarks AS bm
JOIN moz_places AS pl
WHERE
bm.fk=pl.id;
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment