Skip to content

Instantly share code, notes, and snippets.

@Ex-Ark
Created November 14, 2019 16:51
Show Gist options
  • Save Ex-Ark/a4cb94abc96555e2a4be261a99792985 to your computer and use it in GitHub Desktop.
Save Ex-Ark/a4cb94abc96555e2a4be261a99792985 to your computer and use it in GitHub Desktop.
Extract cookies from chrome SQLite local storage and decrypt them using Windows DPAPI
@plutostack
Copy link

Not SQLite3::Database.new but SQLite3::Database.open

@Ex-Ark
Copy link
Author

Ex-Ark commented Aug 9, 2022

Not SQLite3::Database.new but SQLite3::Database.open

I don't have a running ruby env with me to test it but the official readme of sqlite3 still says SQLite3::Database.new
https://github.com/sparklemotion/sqlite3-ruby#synopsis

I cannot find .open method in sqlite3 rubydoc, is it an alias ?
https://www.rubydoc.info/gems/sqlite3/SQLite3/Database#initialize-instance_method

Anyway at the time of writing (2019) it was .new, maybe it has been changed since, but i'm not updating this gist anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment