projects
/
gamesguru
/
ffpass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1aa90
)
find the correct value from nssPrivate
author
George Prekas
<prekgeo@yahoo.com>
Mon, 17 Dec 2018 16:43:56 +0000
(10:43 -0600)
committer
George Prekas
<prekgeo@yahoo.com>
Mon, 17 Dec 2018 16:43:56 +0000
(10:43 -0600)
ffpass/__init__.py
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/ffpass/__init__.py
b/ffpass/__init__.py
old mode 100755
(executable)
new mode 100644
(file)
index
a87a858
..
f1db1c2
--- a/
ffpass/__init__.py
+++ b/
ffpass/__init__.py
@@
-82,7
+82,9
@@
def getKey(directory: Path, masterPassword=""):
print("password checked", file=sys.stderr)
# decrypt 3des key to decrypt "logins.json" content
c.execute("SELECT a11,a102 FROM nssPrivate;")
- row = next(c)
+ for row in c:
+ if row[1] == MAGIC1:
+ break
a11 = row[0] # CKA_VALUE
assert row[1] == MAGIC1 # CKA_ID
decodedA11, _ = der_decode(a11)