AlessandroZ / LaZagne

Credentials recovery project
GNU Lesser General Public License v3.0
9.64k stars 2.04k forks source link

Configurable directories for programs #616

Closed InterLinked1 closed 5 months ago

InterLinked1 commented 1 year ago

This program seems to rely on hardcoded paths to programs which could be made more flexible if that were parameterizable.

For example, for "Thunderbird": https://github.com/AlessandroZ/LaZagne/blob/master/Windows/lazagne/softwares/mails/thunderbird.py

There are a lot of Thunderbird-forked clients for Windows, that all use the same file format, but they store their configs in different directories, that are not usually named "Thunderbird". It would be useful to be able to provide the directory to search as a command line parameter, since it should be able to pull passwords from any arbitrary directory that uses the same format for Thunderbird, or some other supported program.

I did try copying the relevant login.json file from the profile folder to a folder named "Thunderbird" to test if that would work, but unfortunately not, but I suppose someone with a better understanding might know what the trick is to this.

Using the underlying firepwd tool manually (from https://github.com/lclevy/firepwd) does work as expected.

AlessandroZ commented 1 year ago

Hello,

If you can give me some examples, we could do it like we have done with chrome and firefox formats:

InterLinked1 commented 1 year ago

%APPDATA%\OpenSource\MailNews is the current program directory for the MailNews fork of InterLink Mail & News. %APPDATA%\BinaryOutcast\Interlink is the progdir for Interlink itself. %APPDATA%\athenian200\Epyrus is for Epyrus.

People can also use portable versions of all this software, too, since this isn't guaranteed to catch everything.

Also, for Firefox, you are missing the UXP Pale Moon browsers: %APPDATA%\Moonchild Productions\Pale Moon %APPDATA%\Moonchild Productions\Basilisk

AlessandroZ commented 1 year ago

Thank you, let me some time to implement it. 👍🏼

AlessandroZ commented 5 months ago

I have added all path you mention, I have tried it before to validate it (however, I didn't add it to Linux).