Skip to content

Instantly share code, notes, and snippets.

psychowood /
Last active Dec 7, 2017 — forked from gatlin/
A script to convert a CSV exported from KeePass(X) to a .kdb format.
#!/usr/bin/env perl
#You need to install File::KeePass module, with cpan or manually
#have a look here if you need help:
use v5.14;
use strict;
use warnings;
use File::KeePass;
View ExportChromePasswords.js
//Go to chrome://settings/passwords and run in console
//Tested on Chrome v62
//You will get lots of "Error in event handler for passwordsPrivate.onPlaintextPasswordRetrieved: TypeError: Cannot read property 'origin' of undefined"
var decryptedRow="";
var pm = PasswordManagerImpl.getInstance();
var pl;
var getNextPassword = function(index) {
pm.getPlaintextPassword(pl[index].loginPair, function(pwd) {