An open API service indexing awesome lists of open source software.

https://github.com/thomasthelen/dump-chrome-accounts

Dumps accounts stored in Google Chrome to Dropbox or disk
https://github.com/thomasthelen/dump-chrome-accounts

google-chrome hacking hacking-tool password-manager

Last synced: 2 months ago
JSON representation

Dumps accounts stored in Google Chrome to Dropbox or disk

Awesome Lists containing this project

README

          

# Dump Chrome Accounts
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/2c2432b7825b4d28abc084b3880f1a0f)](https://www.codacy.com/manual/ThomasThelen/dump-chrome-accounts?utm_source=github.com&utm_medium=referral&utm_content=ThomasThelen/dump-chrome-accounts&utm_campaign=Badge_Grade)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)

Dumps accounts stored in Google Chrome to Dropbox or disk

## Background
Google Chrome stores saved account information in a sqllite database stored at ``a``. The database stores the passwords in an encrypted form. The passwords are encrypted using the Win32 method, `CryptProtectData`. The passwords can be decrypted using `CryptUnprotectData`, as long as it's done on the same user account that was used to encrypt them.

## Usage

Create an instance of the `ChromeAccountDatabase` class to load and parse the database.

`chrome_database = ChromeAccountDatabase()`

To show the accounts inside the database, print the `ChromeAccountDatabase` object

`print(chrome_database)`

To upload the accounts to Dropbox, pass the API key to `ChromeAccountDatabase::to_dropbox`

` chrome_database.to_dropbox(API_KEY)`

To save locally as a csv with a defualt filename

`chrome_database.to_csv()`

or specify a custom filepath,

`chrome_database.to_csv()`

To get the accounts as a string stream,

`csv_stream: StringIO = chrome_database.to_csv(as_stream=True)`