Created
November 11, 2023 02:00
-
-
Save evilthreads669966/ad5b22268ec323a87d99d619ea9929f2 to your computer and use it in GitHub Desktop.
get the browser history for firefox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'sqlite3' | |
db_file = `find ~ -name places.sqlite | grep firefox` | |
unless db_file.empty? | |
db = SQLite3::Database.open db_file | |
db_history = db.execute "SELECT * FROM moz_places" | |
db.close | |
puts db_history | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment