Skip to content

Instantly share code, notes, and snippets.

@evilthreads669966
Created November 11, 2023 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilthreads669966/ad5b22268ec323a87d99d619ea9929f2 to your computer and use it in GitHub Desktop.
Save evilthreads669966/ad5b22268ec323a87d99d619ea9929f2 to your computer and use it in GitHub Desktop.
get the browser history for firefox
#!/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