louisabraham / ffpass Goto Github PK
View Code? Open in Web Editor NEWImport and Export passwords for Firefox Quantum 🔑
License: MIT License
Import and Export passwords for Firefox Quantum 🔑
License: MIT License
When trying to import
sudo ffpass import -f /Users/crkd/Downloads/passwords.csv -d /Users/crkd/Library/Application\ Support/Firefox/Profiles/xxxxxxxx.default-release -v
It's returning the error
There is more than one profile
key=d86f5b93dc06a7e48c74c1b2eb46ceb8a54d5a5e94639236 iv=a53fd0c56705470f
password checked
key=95282f6971b4b7a18f71aa833c5524fd9eeeb83e45f15088 iv=648e12dace0e658d
3deskey a80e02e0a210899d5e2ceff4387fa4efa702baecaddce6c20808080808080808
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 180, in lower_header
yield next(it).lower()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 354, in main
args.func(args)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 289, in main_import
logins = readCSV(args.from_file)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 187, in readCSV
for row in reader:
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/csv.py", line 111, in __next__
self.fieldnames
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/csv.py", line 98, in fieldnames
self._fieldnames = next(self.reader)
RuntimeError: generator raised StopIteration
Some cursory googling suggests this is due to python 3.7? I'm currently trying on macOS Mojave 10.14. However, I just ran this perfectly fine on macOS Catalina 10.15 the other day with no errors.
Python 3.7, Firefox 58:
ffpass import --from "Chrome Passwords.csv"
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 335, in main
args.func(args)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 276, in main_import
key = askpass(args.directory)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 243, in askpass
key = getKey(directory, password)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 85, in getKey
row = next(c)
StopIteration
Not working with the chrome exported csv which with the following foramt:
name,url,username,password
the import action prints fails with message below:
$ ffpass import --from my_chrome_pswds.csv
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 292, in main
args.func(args)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 251, in main_import
logins = readCSV(args.from_file)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 161, in readCSV
logins.append((rawURL(row['url']),
KeyError: 'url'
However, I managed to import by modifying the format:
hey,
I'm getting a csv from this tool https://discussions.agilebits.com/discussion/30286/mrcs-convert-to-1password-utility/p1
with url; username;password
and I'm getting this error.
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ffpass/init.py", line 335, in main
args.func(args)
File "/usr/local/lib/python3.7/site-packages/ffpass/init.py", line 278, in main_import
logins = readCSV(args.from_file)
File "/usr/local/lib/python3.7/site-packages/ffpass/init.py", line 178, in readCSV
logins.append((rawURL(row["url"]), row["username"], row["password"]))
KeyError: 'url'
;)
Hi, I'd like to thank @louisabraham for the tool, it's really helpful. I have one issue though, I'm new to this kind of stuff and what I was trying to do is to follow the steps explained in this article https://medium.com/@suparn/import-lastpass-1password-etc-passwords-into-icloud-keychain-6cb965da4298 , unfortunately, it isn't clear to me how I can export passwords from firefox using ffpass. I managed to to import them with ffpass but not to do the rest. Thanks in advance.
When i trying to import passwords with that command
~/.local/bin/ffpass import --from passes.csv
it says
usage: ffpass import [-h] [-f FROM_FILE] -d DIRECTORY [-v]
ffpass import: error: the following arguments are required: -d/--directory/--dir
I tried to start it with -d argument, but see next error:
~/.local/bin/ffpass import --from passes.csv -d ~/.mozilla/firefox/81dhfo76.default-release/
Traceback (most recent call last):
File "/home/bartlebi/.local/bin/ffpass", line 8, in <module>
sys.exit(main())
File "/home/bartlebi/.local/lib/python3.8/site-packages/ffpass/__init__.py", line 354, in main
args.func(args)
File "/home/bartlebi/.local/lib/python3.8/site-packages/ffpass/__init__.py", line 287, in main_import
key = askpass(args.directory)
File "/home/bartlebi/.local/lib/python3.8/site-packages/ffpass/__init__.py", line 254, in askpass
key = getKey(directory, password)
File "/home/bartlebi/.local/lib/python3.8/site-packages/ffpass/__init__.py", line 93, in getKey
entrySalt = decodedA11[0][1][0].asOctets()
AttributeError: 'Sequence' object has no attribute 'asOctets'
Whats wrong?
I tried to use antoher one likely profile directory in this locations
~/.local/bin/ffpass import --from passes.csv -d ~/.mozilla/firefox/718lhm58.default/
but ffpass says
Firefox password database is empty. Please create it from Firefox.
thanks for the tool m but can i use it inside nay python project and how
If you don't have at least one saved password in firefox, the import fails because login.json doesn't exist. This should probably be noted in the README somewhere.
Hello. When I try to use this app, I receive the error:
$ ffpass export -v Traceback (most recent call last): File "/home/user552/.local/bin/ffpass", line 7, in <module> from ffpass import main File "/home/user552/.local/lib/python3.5/site-packages/ffpass/__init__.py", line 62 dbfile: Path = directory / "key4.db" ^ SyntaxError: invalid syntax
Could you help me?
Thanks
It would be great if ffpass could read and import (and export) the same csv files created by the old Password Exporter.
Format was like this:
# Generated by Password Exporter; Export format 1.1; Encrypted: false
"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"
In fact, ffpass does not work 100% for me because in some sites the httprealm field is relevant.
I keep getting this message
ERROR: Could not find a version that satisfies the requirement ffpass (from versions: none)
ERROR: No matching distribution found for ffpass
My system info:
Firefox 67.0.4
MacOS Mojave
(passw) sergio@alaister:~/virtual/passw$ ffpass import --from ~/secret/Password\ Chrome.csv
Traceback (most recent call last):
File "/home/sergio/virtual/passw/bin/ffpass", line 8, in
sys.exit(main())
File "/home/sergio/virtual/passw/lib/python3.7/site-packages/ffpass/init.py", line 354, in main
args.func(args)
File "/home/sergio/virtual/passw/lib/python3.7/site-packages/ffpass/init.py", line 287, in main_import
key = askpass(args.directory)
File "/home/sergio/virtual/passw/lib/python3.7/site-packages/ffpass/init.py", line 254, in askpass
key = getKey(directory, password)
File "/home/sergio/virtual/passw/lib/python3.7/site-packages/ffpass/init.py", line 69, in getKey
c.execute("SELECT item1,item2 FROM metadata WHERE id = 'password';")
sqlite3.DatabaseError: file is not a database
all I am getting is this
(no master pass on FF and database has a "test" entry, so no empty)
Traceback (most recent call last): File "/home/chris/.local/bin/ffpass", line 8, in <module> sys.exit(main()) File "/home/chris/.local/lib/python3.9/site-packages/ffpass/__init__.py", line 354, in main args.func(args) File "/home/chris/.local/lib/python3.9/site-packages/ffpass/__init__.py", line 287, in main_import key = askpass(args.directory) File "/home/chris/.local/lib/python3.9/site-packages/ffpass/__init__.py", line 254, in askpass key = getKey(directory, password) File "/home/chris/.local/lib/python3.9/site-packages/ffpass/__init__.py", line 74, in getKey entrySalt = decodedItem2[0][1][0].asOctets() AttributeError: 'Sequence' object has no attribute 'asOctets'
Hi Louis.
Thanks for your cool trick to transfer passwords from Chrome to Firefox.
I have this problem and i checked all of this topics but it does not work at all for me.
This is the code i use in ffpass : ffpass import --from /Users/pedi/Desktop/Chrome\ Paaasads/Chrome\ Passwords.csv -d /Users/pedi/Library/Application/Support/Firefox/Profiles/tkjea2ij.default
I am a bit amateur. Can you please help me about it?
Using OSX 10.14.6 and getting this error.
I have tried installing as both user and sudo. Any ideas?
~/Downloads [ ] $ffpass -h
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 9, in <module>
load_entry_point('ffpass==0.4.8', 'console_scripts', 'ffpass')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Python/2.7/site-packages/ffpass/__init__.py", line 61
def getKey(directory: Path, masterPassword=""):
^
SyntaxError: invalid syntax
~/Downloads [ ] $
i used phyton 3.5 while importing to ff with ffpas i get : File "/usr/local/bin/ffpass", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2749, in working_set = WorkingSet._build_master() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 444, in _build_master ws.require(requires) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 725, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 628, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: ffpass==0.3.4
ffpass 0.4.8, python 3.7.3 on Linux/openSUSE/Tumbleweed. Locale cs_CZ.UTF-8
~@stitny$ ffpass export --to passwords.csv
Traceback (most recent call last):
File "/home/matej/.local/bin/ffpass", line 8, in <module>
sys.exit(main())
File "/home/matej/.local/lib/python3.7/site-packages/ffpass/__init__.py", line 354, in main
args.func(args)
File "/home/matej/.local/lib/python3.7/site-packages/ffpass/__init__.py", line 269, in main_export
logins = exportLogins(key, jsonLogins)
File "/home/matej/.local/lib/python3.7/site-packages/ffpass/__init__.py", line 171, in exportLogins
decodeLoginData(key, encUsername),
File "/home/matej/.local/lib/python3.7/site-packages/ffpass/__init__.py", line 133, in decodeLoginData
return PKCS7unpad(des.decrypt(ciphertext)).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 0: invalid start byte
~@stitny$
Thank you very much for creating and publishing this project!
Thanks to you I was able to transport my passwords from chromium (79.0.3945.130) to firefox (68.4.1esr).
I could not find the chrome flag you mentioned, and since the export function is very well hidden, I would like to suggest you update the section in the readme as follows.
chrome://settings/passwords
passwords.csv
I'm trying to use this tool to export my Firefox-65.0 passwords on a Linux (Fedora) system, and it is crashing:
$ ffpass export > passwords.csv
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/ffpass/__init__.py", line 337, in main
args.func(args)
File "/usr/local/lib/python3.6/site-packages/ffpass/__init__.py", line 260, in main_export
logins = exportLogins(key, jsonLogins)
File "/usr/local/lib/python3.6/site-packages/ffpass/__init__.py", line 169, in exportLogins
decodeLoginData(key, encUsername),
File "/usr/local/lib/python3.6/site-packages/ffpass/__init__.py", line 125, in decodeLoginData
asn1data, _ = der_decode(b64decode(data))
File "/usr/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1049, in __call__
raise error.SubstrateUnderrunError('%d-octet short' % (length - len(substrate)))
pyasn1.error.SubstrateUnderrunError: 94-octet short
I've tried to use it installing it through pip3 in a virtual environment in mac and I'm getting error:
File "/usr/local/bin/ffpass", line 7, in <module>
from ffpass import main
File "/usr/local/lib/python3.6/site-packages/ffpass/__init__.py", line 41, in <module>
from Crypto.Cipher import DES3
ModuleNotFoundError: No module named 'Crypto'
But if I do a pip3 install Crypto says requirement already satisfied
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 11, in
load_entry_point('ffpass==0.4.8', 'console_scripts', 'ffpass')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/ffpass-0.4.8-py2.7.egg/ffpass/init.py", line 61
def getKey(directory: Path, masterPassword=""):
^
SyntaxError: invalid syntax
Hi,
i tried to import an csv-file with passwords to Firefox.
So I installed on my windows-system Python 3.8 and downloaded ffpass.
But now i really don´t know what I have to do with the .py-file.
I hope somene can help me by this way?
Best regards
Scofield
Hello,
I tried to export doing this command :
ffpass export -t passwords.csv -d . -v
The output was :
There is more than one profile
I run Python 3.7.4 on windows 10 and firefox 69.0.1 (64-bit)
The README states that ffpass requires Python 3.5+, however the secrets
module it uses is available in 3.6+.
Hi, I've ran into an. issue trying to import a csv into Firefox. This is what the terminal gives me...
Rileys-MacBook-Air:~ rileydumont$ ffpass import -f /Users/rileydumont/Desktop/Passwords.csv -d /Users/rileydumont/Library/Application/Support/Firefox/Profiles/prmmo8pp.default
Firefox password database is empty. Please create it from Firefox.
Rileys-MacBook-Air:~ rileydumont$
Which the guide on here says
Firefox password database is empty. Please create it from Firefox.
It means that Firefox currently doens't store any password. ffpass cannot create the password database for security reasons. Just add one password manually to Firefox to create the database.
And doesn't say anything else. However as you can see here...
I do have one entry in Firefox. Perhaps there's some incompatibility somewhere I don't know about, or I'm looking at the wrong password keychain? Not really sure what exactly the issue is or where to look anymore. Any guidance?
Running MacOS 10.14.5 and Firefox 67.0
Hello! I have tried to figure out how to use this for 5 hours now, and I'm so lost. I have a MacBook Pro, running MacOS Mojave. I have managed to create a .CSV file with all the passwords, exported from chrome with all the passwords. But I don't know how to get them in to Firefox. I don't even know if I should use Terminal or Xcode or whatever. I have installed Python3, and have an app called IDLE and Python Launcher, is that one of the apps I should use?
For security reasons, many users would want to use this within a sandbox environment, such as firejail. However, I can't get it to work, even after whitelisting my Firefox profile directory:
firejail $HOME/.local/bin/ffpass import --from chrome-passwords.csv --directory .mozilla/firefox/6yc899yq.default
where my Firejail profile for ffpass includes:
whitelist ${HOME}/.local/lib/python3.7/site-packages/ffpass
whitelist ${HOME}/.local/lib/python3.7/site-packages/pyasn1
whitelist ${HOME}/.local/bin/ffpass
whitelist ${HOME} .mozilla/firefox/6yc899yq.default/key4.db
whitelist ${HOME} .mozilla/firefox/6yc899yq.default/logins.json
whitelist ${HOME}/chrome-passwords.csv
ffpass export --to passwords.csv -d C:\Users\username\Desktop\
Traceback (most recent call last):
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Stachu\AppData\Local\Programs\Python\Python37-32\Scripts\ffpass.exe_main.py", line 9, in
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\site-packages\ffpass_init.py", line 292, in main
args.func(args)
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\site-packages\ffpass_init_.py", line 232, in main_export
key = askpass(args.directory)
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\site-packages\ffpass_init_.py", line 223, in askpass
key = getKey(directory, password)
File "c:\users\stachu\appdata\local\programs\python\python37-32\lib\site-packages\ffpass_init_.py", line 57, in getKey
c.execute("SELECT item1,item2 FROM metadata WHERE id = 'password';")
sqlite3.OperationalError: no such table: metadata
So my csv file contains url,username,password
columns but I'm getting this error
raceback (most recent call last):
File "/usr/bin/ffpass", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.7/site-packages/ffpass/__init__.py", line 339, in main
args.func(args)
File "/usr/lib/python3.7/site-packages/ffpass/__init__.py", line 282, in main_import
logins = readCSV(args.from_file)
File "/usr/lib/python3.7/site-packages/ffpass/__init__.py", line 182, in readCSV
logins.append((rawURL(row["url"]), row["username"], row["password"]))
KeyError: 'url'
The url column has https or http everywhere.
System -Manjaro
Firefox v82.0.2 64 bit
ffpass import -d /home/d/.mozilla/firefox/je85vuh1.default --from bit.csv
This command returns Firefox password database is empty. Please create it from Firefox
I have read the readme.md and it states to manually add a login password in Firefox , I did so and closed firefox still the same error
Firefox password database is empty. Please create it from Firefox.
I think firefox has changed location of saved passwords file
Please update accordingly
Hello, thanks for this useful tool.
I've noticed that the passwords that I've imported from Chrome into Firefox will not sync over when using Firefox's password syncing tool, Firefox Lockwise (https://lockwise.firefox.com/). All the other passwords I had from before using ffpass sync'ed over, but none of the passwords that came from the import sync'ed.
Maybe there is some flag Firefox has attached to Firefox-created passwords that ffpass cannot handle? Any suggestions on a fix/workaround are appreciated, thanks.
Feel free to merge with issue #11.
I successfully imported passwords from a csv I exported from Chrome into Firefox on my MacOS device. Unfortunately the logins does not sync with my iPhone. The only login credentials that I have access to via sync are those saved using Firefox.
Reconnecting my Firefox account on my iPhone does not help. This issue seems to be affecting lockwise as well as noted in #25.
I'm trying to import my passwords from chromium
, but get hit by the following error:
$ ffpass import --file '/tmp/Chrome Passwords.csv' -d ~/.mozilla/firefox/<profile>.default
Traceback (most recent call last):
File "/path/to/virtualenvs/ffpass-_a4N4bz3/bin/ffpass", line 8, in <module>
sys.exit(main())
File "/path/to/virtualenvs/ffpass-_a4N4bz3/lib/python3.9/site-packages/ffpass/__init__.py", line 419, in main
args.func(args)
File "/path/to/virtualenvs/ffpass-_a4N4bz3/lib/python3.9/site-packages/ffpass/__init__.py", line 338, in main_import
key = askpass(args.directory)
File "/path/to/virtualenvs/ffpass-_a4N4bz3/lib/python3.9/site-packages/ffpass/__init__.py", line 307, in askpass
key = getKey(directory, password)
File "/path/to/virtualenvs/ffpass-_a4N4bz3/lib/python3.9/site-packages/ffpass/__init__.py", line 122, in getKey
assert oid == MAGIC3, f"The key is encoded with an unknown format {oid}"
AssertionError: The key is encoded with an unknown format (1, 2, 840, 113549, 1, 5, 13)
$ firefox --version
Mozilla Firefox 86.0
ffpass 0.5.0
Hey,
I've been trying for so long migrating from Safari to Firefox, that's how I found you, and this is amazing.
I've a CSV file which I successfully got from the mrc converter suite (script that opened and copied all my logins/passwords blablablabla)
Now that I've installed Python and ffpass, I'm getting this error when I try to import the file to Firefox
mbp-de-tom:~ autodrive$ ffpass import -f /Users/autodrive/Documents/pw/passwords\ copie\ 2.csv
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/ffpass", line 10, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/__init__.py", line 346, in main
args.func(args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/__init__.py", line 289, in main_import
logins = readCSV(args.from_file)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/__init__.py", line 188, in readCSV
logins.append((rawURL(row["url"]), row["username"], row["password"]))
KeyError: 'url'
mbp-de-tom:~ autodrive$
I actually don't know what it means and how I could resolve this, so you can you help ? Thank you so much in advance! :)
HI all, I am a bit of newbie, so the answer may be super obvious, but I exported a CSV from 1password to import into firefox. I reformatted it with just the url, username and password with those three titles as header information. When I attempt an import, I get the error below... any thoughts? Thanks!
MacBook-Pro-5:desktop kel$ ffpass import --from passwords.csv
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/ffpass", line 10, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/init.py", line 339, in main
args.func(args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/init.py", line 282, in main_import
logins = readCSV(args.from_file)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffpass/init.py", line 181, in readCSV
for row in reader:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/csv.py", line 111, in next
self.fieldnames
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/csv.py", line 98, in fieldnames
self._fieldnames = next(self.reader)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 3846-3847: invalid continuation byte
I have three Firefox devices: a Mac laptop, a Windows laptop and an iPhone.
I have syncing of logins working between l them: I’ve tested saving a login on the Mac and seen it appear in the list of logins on the iPhone after syncing. (I’ve also seen that deletion of logins is synced).
I used ffpass
to import a csv into Firefox on the Mac, and it appeared to work: the hundreds of imported logins now appear in the Saved Logins list, and they are autosuggested when I visit the sites.
But those imported logins are not synced to the other devices. New ones added interactively are synced, but the sync operation seems to totally ignore the logins that I imported with ffpass
.
I noticed that all the entries for the imported logins in logins.json
had the same time stamp, so I tried changing it to the value for current epoch time, restarted Firefox and requested resync on all devices, but that didn’t work.
Hey there,
i got a syntax error, even though i installed python 3.
Any ideas?
Marshall:~ kaiser$ ffpass Traceback (most recent call last): File "/usr/local/bin/ffpass", line 9, in <module> load_entry_point('ffpass==0.4.7', 'console_scripts', 'ffpass')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load return self.resolve() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/Library/Python/2.7/site-packages/ffpass/__init__.py", line 61 def getKey(directory: Path, masterPassword=""): ^ SyntaxError: invalid syntax
Hi, when I try to import password CSV from Chromium I get the following error:
$ ffpass import --from pw.csv
Traceback (most recent call last):
File "/usr/bin/ffpass", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/ffpass/__init__.py", line 354, in main
args.func(args)
File "/usr/lib/python3.8/site-packages/ffpass/__init__.py", line 287, in main_import
key = askpass(args.directory)
File "/usr/lib/python3.8/site-packages/ffpass/__init__.py", line 254, in askpass
key = getKey(directory, password)
File "/usr/lib/python3.8/site-packages/ffpass/__init__.py", line 93, in getKey
entrySalt = decodedA11[0][1][0].asOctets()
AttributeError: 'Sequence' object has no attribute 'asOctets'
I am using Arch Linux with Python 3.8.1
, pyasn1 0.4.8
, and ffpass 0.4.8
.
I was the first to write a 100% python tool to decode Mozilla passwords, before everybody was using NSS library
https://github.com/lclevy/firepwd
my code is under GPL, so you can not change it to MIT
at least link to my repository and cite my name !
I ran into this bug while using ffpass
:
configparser.ConfigParser.read() does not accept Pathlib path as a single argument.
Fix this error by upgrading your Python version. I'm leaving this issue here so that others can find it and solve the problem.
Specifically, with Python 3.6.0 (and from the link above it looks like it also affects some versions of 3.7+) I ran into the following error:
ffpass import -f cpwds.csv
Traceback (most recent call last):
File "/Users/ajc/miniconda3/bin/ffpass", line 11, in <module>
sys.exit(main())
File "/Users/ajc/miniconda3/lib/python3.6/site-packages/ffpass/__init__.py", line 329, in main
guessed_dir = guessDir()
File "/Users/ajc/miniconda3/lib/python3.6/site-packages/ffpass/__init__.py", line 223, in guessDir
config.read(path / "profiles.ini")
File "/Users/ajc/miniconda3/lib/python3.6/configparser.py", line 693, in read
for filename in filenames:
TypeError: 'PosixPath' object is not iterable
In my case upgrading from 3.6.0 to 3.6.8 fixed the issue.
Hi,
I using MacOS High Sierra and installed python3 and then via python3 pip ffpass, but whenever I use
python3 ffpass import --from passwords.csv
I am getting this error
(null): can't open file 'ffpass': [Errno 2] No such file or directory
Any ideas how to make it work under MacOS?
Hello. I have the same issue than the one described here #20
I had run it previously successfully for export/import maybe one month ago.
I reinstalled Ubuntu 18.04 and Firefox and
ffpass without -d option is failing with "ffpass import: error: the following arguments are required: -d/--directory/--dir"
ffpass with -d being the directory of the password file (this way it has worked before) is failing with "Firefox password database is empty. Please create it from Firefox."
I tried to find the directory of Firefox where profiles are stored and didn't find it, yet I have some passwords stored.
C:\Users\chenx\Desktop>ffpass import -f Vivaldi.csv -d C:\Users\chenx\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default-xxxxxxxxx
Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\ffpass.exe\__main__.py", line 9, in <module>
File "c:\program files\python37\lib\site-packages\ffpass\__init__.py", line 346, in main
args.func(args)
File "c:\program files\python37\lib\site-packages\ffpass\__init__.py", line 289, in main_import
logins = readCSV(args.from_file)
File "c:\program files\python37\lib\site-packages\ffpass\__init__.py", line 187, in readCSV
for row in reader:
File "c:\program files\python37\lib\csv.py", line 112, in __next__
row = next(self.reader)
File "c:\program files\python37\lib\site-packages\ffpass\__init__.py", line 181, in lower_header
yield from it
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 2593: illegal multibyte sequence
Hi, I installed Python using this guide. Version 3.9.0.
The ffpass command didn't work right away so after searching around I came across a suggestion to use
python3 -m ffpass
However, when running this I get the following message:
/Users/mandi/.pyenv/versions/3.9.0/bin/python3: No module named ffpass.__main__; 'ffpass' is a package and cannot be directly executed
Any suggestions much appreciated.
If it helps:
mandi@Hodor ~ % which python3
returns
/Users/mandi/.pyenv/shims/python3
Also:
mandi@Hodor ~ % pip3 install ffpass Requirement already satisfied: ffpass in ./.local/lib/python3.9/site-packages (0.5.0) Requirement already satisfied: pyasn1 in ./.local/lib/python3.9/site-packages (from ffpass) (0.4.8) Requirement already satisfied: pycryptodome in ./.local/lib/python3.9/site-packages (from ffpass) (3.10.1) WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available. You should consider upgrading via the '/Users/mandi/.pyenv/versions/3.9.0/bin/python3.9 -m pip install --upgrade pip' command.
Hey,
I've encountered an error during the import of a CSV file.
That's the output of my command : ffpass import --from example.csv --verbose
Traceback (most recent call last):
File "/usr/local/bin/ffpass", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 346, in main
args.func(args)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 289, in main_import
logins = readCSV(args.from_file)
File "/usr/local/lib/python3.7/site-packages/ffpass/__init__.py", line 188, in readCSV
logins.append((rawURL(row["url"]), row["username"], row["password"]))
KeyError: 'url'
Even though I've the latest Python version and solved the trouble I've had with the Firefox profiles. Do you have any idea ?
Thanks !
It's good for people trying to move in or move out from Bitwarden into firefox, since Bitwarden is able to export and import CSV files, implementing this should be as easy as adding a flag.
"url" column in Bitwarden's CSV is "login_uri", "username" is "login_username" and "password" is "login_password".
Be aware that Bitwarden exports more than just passwords, it also exports notes and probably some other things. All you have to do is only import to firefox the lines that have the column "type" == login.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.