Skip to content

Commit

Permalink
find the correct value from nssPrivate
Browse files Browse the repository at this point in the history
  • Loading branch information
prekageo committed Dec 17, 2018
1 parent d491475 commit 31e0ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firepwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ def getKey():
if clearText=='password-check\x02\x02':
#decrypt 3des key to decrypt "logins.json" content
c.execute("SELECT a11,a102 FROM nssPrivate;")
row = c.next()
for row in c:
if row[0] != None:
break
a11 = row[0] #CKA_VALUE
a102 = row[1] #f8000000000000000000000000000001, CKA_ID
printASN1( a11, len(a11), 0)
Expand Down

0 comments on commit 31e0ddc

Please sign in to comment.