-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to recover a ProtonMail password from settings.bin? #318
Comments
Yes if you have saved the account password in the app and you remember the master password to unlock the ElectronMail app (to decrypt the |
Perfect. Thank you @vladimiry. I have saved the account password and know my master password for ElectronMail. I'll look forward to your instructions. |
You will have the credentials printed to the console. See example:
PS You might need to wrap the password in a singe quotes if you use special characters, like |
Thank you, @vladimiry. This worked perfectly. I have recovered my password. |
@vladimiry I have just successfully used the instructions above to recover the passwords for the accounts I have added in the app, while knowing only the master password. Thank you. However, I imagine that for the average end user the recovery process is a bit "techy". As a technically clueless end user I would prefer to:
I did not go as far as submitting this as a feature request in a new issue, because I'd like to know your opinion on this. But if you are positive, such an improvement would be very, very welcome. |
Noted, agree in general. |
i followed the instructions and recovered an important password; thank you! |
Just keep in mind that EM is not a password manager software, there are better tools for this purpose. |
Won't be implementing the quoted feature request as passwords saving in the app and then consequent @ProtonMail credentials forms filling & submitting becomes the obsolete thing since https://github.com/vladimiry/ElectronMail/releases/tag/v4.10.2 release. |
@vladimiry Do the directions above still work for newer releases of the app, for password recovery? (I'd be using the MacOS version, if that makes any difference.) |
@sometimes-retro yes it should work (I just updated the packages versions in the original message, minor stuff). |
@vladimiry I tried the directions listed above on a Linux machine, node version 10.24.0, npm version 5.8.0, and ElectronMail v4.12.9, and I got a bunch of errors and no passwords were printed out. I'm using the latest versions of node and npm available for my machine. Do the |
I didn't try to re-run the code, but nodejs must be v12+ (better v16, same version that the app goes with, see "about" window). Next time print errors here or send privately to email (locate in https://github.com/vladimiry/ElectronMail/blob/master/package.json#L5). |
I downloaded v16.5.0, which is the same as listed in the About box of ElectronMail. I extracted it, put the files above in the
|
@sometimes-retro the shared code snipped is ok, just tested it. So you likely put a wrong password there (last command line argument). |
I tried the command several times. I included the password in double quotes and without double quotes. It gave me the same errors. The password contains special characters. Could that be causing problems? (e.g. a "$" character) |
@sometimes-retro I just tested with $ character and it works if you wrap the password in a single quotes, not double. |
By the way consider trying the persistent session feature instead of keeping the credentials in the app. It's enabled by default since https://github.com/vladimiry/ElectronMail/releases/tag/v4.10.2 (originally enabled in https://github.com/vladimiry/ElectronMail/releases/tag/v4.2.0). |
I did get a readout this time, but everything was listed as "null" -- the Thank you for the persistent session recommendation. I'll definitely check that out. I'd just like to try to recover these passwords first, if possible. ProtonMail will allow me to reset my passwords, but then I lose access to everything in my account due to the way they encrypt things. |
The only reason for that is that you don't have those credentials saved in the app. So there is no values to list.
You could save the credentials using the special things built for this purpose, like Bitwarden or KeePassXC. The app is not designed for storing passwords, it's not its primary purpose. |
That's really strange. I did enter all the credentials into the app and it automatically logs me in. I never have to enter my passwords for the individual accounts. |
Maybe you have enabled the persistent session? If not, and the app actually fills the login forms for you, then yes it looks strange. |
It looks like persistent session got enabled somehow. I don't recall enabling it. I did update to a much newer version recently. Maybe something strange happened during that update process? I was actually just trying to recover the passwords to put into a password storage app, as you had suggested. I may have to reset things now, though. Since, it seems that there is likely no way to recover them. Thank you very much for your help! Edit: I did have another OS partition with ElectronMail installed and accessed that |
It's enabled by default since https://github.com/vladimiry/ElectronMail/releases/tag/v4.10.2 but only for newly added accounts. So the accounts added to the app before v4.10.2 didn't get the persistent session enabled (it's up to a user to enable it manually if needed). So you likely added your mail account to the app after v4.10.2 release and didn't pay attention to the enabled by default "persistent session" toggle.
Enabling the persistent session thing doesn't mean that the saved credentials will be removed. Those things can work together (if saved session gets expired or explicitly dropped then auto forms filling gets into the game). But I don't recommend storing the credentials in the app (that was a way to enable auto-login when the persistent session feature didn't exist here yet). |
Hi, could you please help me to recover settings.bin file from my phone, bootloader is looked and it's seems impossible to unlock(Oneplus 8 TMO 5G) is it any other way? Because of my recovery mail is closed for inactivity and proton support don't helping me. If I'll lose access to my phone I'll lose access to my mail what i'm using more then a 10 years from now. |
I'm not sophisticated in extracting a file from the locked phones, so this is something you will have to explore on your own. Having the file (and master password), you got the instructions how to extract the credentials from it. Besides, it's unclear what |
Normally there is android data with application setting inside what can be accessible easier from unlocked phones but in my case it seems impossible. Okay i thought it was an android application. Anyway thanks for an attention. |
I setup a new ProtonMail account and cannot find its password in my password manager.
Is there a way to recover that password from settings.bin?
I am still logged into the account in ElectronMail.
Many thanks!
The text was updated successfully, but these errors were encountered: