Commit Graph

94 Commits

Author SHA1 Message Date
Renato Alves
a4ac783ea3 ENH If available use PATH to find nss3.dll 2021-04-01 22:17:25 +02:00
Renato Alves
d85060dbb8 RFCT Add some type hints 2021-04-01 22:16:47 +02:00
Renato Alves
ec6f95de36 RFCT Use f-strings instead of .format() 2021-04-01 22:15:24 +02:00
Renato Alves
7f780f1ddd RFCT Force Popen to return text not bytes 2021-04-01 22:12:17 +02:00
Renato Alves
81ebed3dd1 WIP Refactor NSS interaction and loading 2021-04-01 21:21:34 +02:00
Renato Alves
2c6794771c MNT Remove PY2/3 code paths and manual handling of encodings 2021-04-01 21:21:34 +02:00
Renato Alves
91de634d85 BUG Fix JSON output - show only once per profile 2020-05-31 20:35:43 +02:00
Stefan Weil
c14c896216 Fix some typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-09 13:57:16 +02:00
Bryan
432b389c68 #33 add json formatting 2019-05-06 23:22:24 -05:00
Renato Alves
2bd3ffbd96 ENH Educated guess of NSS loading based on bitness
If Python's bitness doesn't match that of the NSS.dll found,
loading will fail. This restricts directories on a 64bit Windows system.
A better solution would check the bitness of the lib as well - refs #41
2019-01-18 17:32:42 +01:00
Renato Alves
c8b0590bfc RFCT Remove deprecation warnings related to logging.warn 2018-12-10 05:04:54 +01:00
Renato Alves
9dd6a3e857 TST Tests now require python 3 2018-12-10 04:47:33 +01:00
Renato Alves
6f5ca15cfe Merge branch 'pytests' 2018-12-10 04:14:11 +01:00
Renato Alves
f32e8efe9e BUG Don't lock on stdin when missing a newline and stdin isn't closed 2018-12-10 01:32:58 +01:00
Renato Alves
bc1192f802 TST Fix version reported during tests 2018-11-21 14:09:38 +01:00
Renato Alves
b78b4aa9da REL Bump version to avoid confusing users 2018-11-21 13:47:53 +01:00
Renato Alves
2a317741f2 ENH Help the user troubleshoot when NSS isn't found 2018-05-22 02:55:40 +02:00
Renato Alves
8395b46864 ENH Add Nightly to search directories on Windows
Useful if you are using Firefox Nightly instead of stable Firefox
2018-05-22 02:43:38 +02:00
Renato Alves
15d0bd6399 BUG Don't chdir to non-existing locations 2018-05-20 17:01:10 +02:00
Renato Alves
9a8428f002 ENH Collect NSS loading failures and show if all fails 2018-05-19 16:54:36 +02:00
Renato Alves
6e40cf80e4 ENH More robust loading of libnss
Use the try and apologize approach instead of relying on an exact match.
2018-05-19 14:30:41 +02:00
Renato Alves
d349dd157e BUG Try solving encoding issues affecting Windows
refs #25 #28
2018-05-19 14:30:41 +02:00
Renato Alves
869ef1e800 BUG Solve some NSS initialization problems affecting Windows
refs #25 #28
2018-05-19 14:06:56 +02:00
Renato Alves
86ae13db80 BUG Don't crash hard if JSON credentials are damaged 2018-05-19 14:03:02 +02:00
Renato Alves
f5c938048c API Drop support for Python 2 on Windows 2018-05-19 14:01:42 +02:00
Renato Alves
0850c0cbec MNT Add extra debug info on profile passed to NSS 2018-05-17 23:20:07 +02:00
Renato Alves
1588927369 BUG+TST Handle profile paths with non-ASCII characters
fixes #27
ref #25
2018-05-17 20:30:00 +02:00
Renato Alves
a0ce69a606 ENH More robust loading of libnss
Use the try and apologize approach instead of relying on an exact match.
2018-05-09 01:46:51 +02:00
Renato Alves
06128d26d2 MNT PEP8 compliance changes 2018-05-09 00:47:33 +02:00
Renato Alves
f29214dd74 ENH Add support for libnss3 on nix/NixOS
Assumes user executed `nix-env -iA nss` before
Other searched paths include common Linux paths.
2018-05-09 00:46:21 +02:00
Renato Alves
fafc821c20 ENH Allow a blank pass-prefix for no prefix
Use --pass-prefix '' to produce address/... instead of the default
web/address/... location for exported pass records.
2018-04-19 01:06:53 +02:00
Renato Alves
ab40d6a58f ENH Allow specifying pass's location and name
If pass is not on PATH or if it's called something other than 'pass'
users can now override by passing `--pass-cmd /path/to/passcript`
2018-04-19 01:03:23 +02:00
Renato Alves
1b75cf485c RFCT+ENH Refactor pass compatiblity code and add 'username' mode 2018-04-19 00:54:50 +02:00
Edwin Török
148ecc4397 Add --pass-compat=browserpass to make --export-pass format compatible with browserpass
[browserpass](https://github.com/dannyvankooten/browserpass) expects a multiline format
with password first, and then a line with either `login:`, `user:` or `username:`.
Exporting passwords this way makes login form filling work if you have
browserpass installed.

To keep backwards compatibility the default, if `--pass-compat` is not
specified (or specified as `--pass-compat=default`), is to print just
the bare username on the second line.
2018-03-11 23:55:57 +00:00
Renato Alves
4d7d66c80a REL Release v0.7.0 2018-01-25 21:30:09 +01:00
Renato Alves
089e1df285 ENH+TST Add support for new profile format (FF-v59)
Starting with Firefox v59 credentials are no longer stored in BerkleyDB
(cert8.db, key3.db) and instead use Sqlite (cert9.db, key4.db)

fixes #20
2018-01-25 21:30:09 +01:00
iainb
f97455d3d9 Added check for libnss if installed via pkgsrc. 2018-01-24 23:15:57 +09:00
sedrubal
4a1e258b20 ENH Add CSV as output format 2017-08-17 23:14:16 +02:00
Renato Alves
f89705590c BUG+TST Escape quotes in tabular output as per CSV standard 2017-08-17 19:28:31 +02:00
Renato Alves
ecb17f81bf BUG 'Choice:' is printed too late and disrupts output 2017-07-20 17:52:06 +02:00
Renato Alves
748fec2415 BUG Tabular header was not printed 2017-07-20 17:51:36 +02:00
Erich Seifert
eaac14eb2f ENH Command line option to change the prefix for pass
This allows to change to the default prefix "web" when exporting to pass from passwordstore.org.

closes #16
2017-04-17 12:52:44 +02:00
Renato Alves
851ee290d2 ENH+RFCT Proper implementation of ctypes' interfaces
Fixes memleaks as suggested on #13
Also closes #12 as slot->needLogin is not possible via ctypes
2017-04-09 04:59:47 +02:00
Renato Alves
00aea4071f RFCT Use ctypes as 'ct' 2017-04-08 19:56:57 +02:00
Levis Florian
d972f93926 ENH Add location for libnss (Darwin)
Add location "/usr/local/opt/nss/lib" for nss installed with Brew
2017-04-08 19:46:35 +02:00
Renato Alves
3649dcb2c0 ENH Add tabular output with -t/--tabular 2017-02-10 19:57:36 +01:00
Renato Alves
2e6a2acb0b REL Bump version to 0.6.1 2017-02-10 18:01:23 +01:00
Christoph "criztovyl" Schulz
e4945d18f7 BUG Fix python3 TypeError for get_version()
Popen's stdout returns bytes, not a string, so decode to string.
Other code parts use .decode("utf-8") so inherit this behaviour.
2017-02-10 17:19:43 +01:00
Renato Alves
7254a643b7 ENH Add version information (also from git if available) 2017-02-09 23:15:38 +01:00
Renato Alves
e61eba286f BUG Fix segfault due to reference to invalid memory
Should also fix #9
2017-02-09 22:31:54 +01:00