]> Nutra Git (v1) - gamesguru/ffpass.git/commitdiff
add stuff back that was removed in haste
authorShane Jaroch <chown_tee@proton.me>
Fri, 26 Dec 2025 10:06:06 +0000 (05:06 -0500)
committerShane Jaroch <chown_tee@proton.me>
Fri, 26 Dec 2025 10:06:06 +0000 (05:06 -0500)
ffpass/__init__.py

index b837655cd4a398be23dbf843e2ca458a4026ab81..f97dd311f4e70c60e500165d915510593a94e12e 100755 (executable)
@@ -1,14 +1,33 @@
 #!/usr/bin/env python3
 # PYTHON_ARGCOMPLETE_OK
 
+# Reverse-engineering by Laurent Clevy (@lclevy)
+# from https://github.com/lclevy/firepwd/blob/master/firepwd.py
+
 """
 The MIT License (MIT)
 Copyright (c) 2018 Louis Abraham <louis.abraham@yahoo.fr>
 Laurent Clevy (@lorenzo2472)
+# from https://github.com/lclevy/firepwd/blob/master/firepwd.py
+\x1B[34m\033[F\033[F
 
 ffpass can import and export passwords from Firefox Quantum.
+
+\x1B[0m\033[1m\033[F\033[F
+
+example of usage:
+    ffpass export --file passwords.csv
+
+    ffpass import --file passwords.csv
+
+\033[0m\033[1;32m\033[F\033[F
+
+If you found this code useful, add a star on <https://github.com/louisabraham/ffpass>!
+
+\033[0m\033[F\033[F
 """
 
+
 import sys
 from base64 import b64decode, b64encode
 from hashlib import sha1, pbkdf2_hmac
@@ -106,6 +125,7 @@ def decrypt3DES(globalSalt, masterPassword, entrySalt, encryptedData):
     k = k1 + k2
     iv = k[-8:]
     key = k[:24]
+    logging.info("key={} iv={}".format(key.hex(), iv.hex()))
     return DES3.new(key, DES3.MODE_CBC, iv).decrypt(encryptedData)