Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 11:04:13 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: port of nss-passwords
Message-ID:  <20170404090413.GA3302@c720-r314251>
In-Reply-To: <20170329104223.GA3132@c720-r314251>
References:  <20170328083242.GA26303@sh4-5.1blu.de> <6208b8c0-3660-b005-b7cb-16f8b86bbe3a@abinet.ru> <20170328103001.GA3310@c720-r314251> <20170329104223.GA3132@c720-r314251>

next in thread | previous in thread | raw e-mail | index | archive | help
El día miércoles, marzo 29, 2017 a las 12:42:23p. m. +0200, Matthias Apitz escribió:

> I manged to compile and install ocaml-fileutils directly from its source
> and could gmake the tool nss-passwords. It works nicely but only on the
> old signons.sqlite database, not on the logins.json file of Mozilla.
> 
> Perhaps one could write a script to insert the records from logins.json
> into the old (now unused) signons.sqlite db.

I found another tool, written in Python, which can manage both storage
forms:

$ git clone https://github.com/Unode/firefox_decrypt.git
Cloning into 'firefox_decrypt'...
...

$ cd firefox_decrypt

$ python2.7 firefox_decrypt.py --list
1 -> sxciqikk.default

$ python2.7 firefox_decrypt.py --choice 1 --tabular
Master Password for profile /home/guru/.mozilla/firefox/sxciqikk.default:
...
'http://www.scrumalliance.org'	'XXXXXXXX'	'XXXXXXXXX'
'http://www.sunfreeware.com'	'XXXXXXXX'	'XXXXXXXXX'
'https://www.cups.org'	'XXXXXXXXX'	'XXXXXXXXX'
'http://www.botanicalgarden.ubc.ca'	'XXXXXXXXX'	'XXXXXXXXX'

$ python2.7 firefox_decrypt.py --no-interactive --choice 1 --tabular
xxxx
2017-04-04 09:18:40,246 - ERROR - Master password is not correct

(i.e. --no-interactive reads from stdin)

-- 
Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
Aus "Nie wieder Krieg!" wurde "Nie wieder Krieg ohne Deutschlands Truppen"
The "No wars anymore!" changed now to "No wars anymore without German battle groups!"
El "¡Nunca jamás guerra!" ha cambiado a "¡Nunca jamás guerra sin tropas alemanas!" 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170404090413.GA3302>