Retrieving firefox passwords (in macOS)

For this recipe you will need the tool jq and nss

brew install jq nss

Then open the terminal and cd in the firefox profile and issue the following command

cd /Users/koninich/Library/Application Support/Firefox/Profiles/thenameofyourprofile

jq -r -S '.logins[] | .hostname, .encryptedUsername, .encryptedPassword' logins.json | pwdecrypt -d .

This will print all your passwords! Enjoy!