|
NAMEfirefox-passwords - import and export passwords from firefoxVERSIONVersion 1.17USAGE$ firefox-passwords >logins.csv # export from the default profile $ firefox-passwords --export logins.csv # same thing but exporting directly to the file $ firefox-passwords --list-profile-names # print out the available profile names $ firefox-passwords --profile new --import logins.csv # imports logins from logins.csv into the new profile $ firefox-passwords --export | firefox --import --profile-name new # export from the default profile into the new profile $ firefox-passwords --export --only-host-regex "(pause|github)" # export logins with a host matching qr/(pause|github)/smx from the default profile $ firefox-passwords --export --only-user "me@example.org" # export logins with user "me@example.org" from the default profile $ firefox-passwords --only-user "me@example.org" --password # just print password for the me@example.org (assuming there is only one password) DESCRIPTIONThis program is intended to import and export passwords from firefox. It uses the Marionette protocol <https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Protocol> and the nsILoginManager interface <https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsILoginManager> to access the Password Manager <https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins?redirectslug=password-manager-remember-delete-change-and-import&redirectlocale=en-US>. This has been tested to work with Firefox 24 and above and has been designed to work with Firefox Sync <https://www.mozilla.org/en-US/firefox/sync/>REQUIRED ARGUMENTSEither --export, --import or --list-profile-names must be specified. If none of these is specified, --export is the assumed defaultOPTIONSOption names can be abbreviated to uniqueness and can be stated with singe or double dashes, and option values can be separated from the option name by a space or '=' (as with Getopt::Long). Option names are also case- sensitive.
AUTOMATIC AND MANUAL PROFILE SELECTIONfirefox-passwords will automatically work with the default Profile <https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data>. You can select other profiles with the --profile-name optionPRIMARY PASSWORDSfirefox-passwords will request the Primary Password <https://support.mozilla.org/en-US/kb/use-primary-password-protect-stored-logins> if required when importing or exporting from the Password Manager <https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins?redirectslug=password-manager-remember-delete-change-and-import&redirectlocale=en-US>.EXPORTING AND IMPORTING TO GOOGLE CHROME OR MICROSOFT EDGEfirefox-passwords will natively read and write login csv files for Google Chrome and Microsoft Edge.PASSWORD IMPORT/EXPORT FORMATfirefox-passwords will export data in CSV with the following column headers"url","username","password","httpRealm","formActionOrigin","guid","timeCreated","timeLastUsed","timePasswordChanged" firefox-passwords will import data in CSV. It will recognise different formats for importing passwords, including the export format and the others listed below. Plrease let me know if other formats would be useful. PASSWORD IMPORTING FROM BITWARDENfirefox-passwords will also accept input data in Bitwarden csv format <https://bitwarden.com/help/article/condition-bitwarden-import/>, which includes the following column headers;...,"login_uri","login_username","login_password",... PASSWORD IMPORTING FROM LASTPASSfirefox-passwords will also accept input data in LastPass CSV <https://support.logmeininc.com/lastpass/help/how-do-i-nbsp-export-stored-data-from-lastpass-using-a-generic-csv-file>, which includes the following column headers;url,username,password,totp,extra,name,grouping,fav The LastPass CSV export also can include an unusual "url" value of "http://sn" for server logins, database logins, etc. All logins with a "url" value of "http://sn" AND an "extra" value matching the regular expression /^NoteType:/ will be skipped (as there is no use for these types of login records in firefox. PASSWORD IMPORTING FROM KEEPASSfirefox-passwords will also accept input data in KeePass CSV <https://keepass.info/help/base/importexport.html#csv>, which includes the following column headers;...,"Login Name","Password","Web Site",... CONFIGURATIONfirefox-passwords requires no configuration files or environment variables.DEPENDENCIESfirefox-passwords requires the following non-core Perl modules
DIAGNOSTICSNone.INCOMPATIBILITIESNone known.EXIT STATUSThis program will exit with a zero after successfully completing.BUGS AND LIMITATIONSTo report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues>AUTHORDavid Dick "<ddick@cpan.org>"LICENSE AND COPYRIGHTCopyright (c) 2021, David Dick "<ddick@cpan.org>". All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic. DISCLAIMER OF WARRANTYBECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Visit the GSP FreeBSD Man Page Interface. |