Exemplo n.º 1
0
        public void DecryptPasswordStoredInFirefox()
        {
            if (!Directory.Exists(GetFirefoxProfilesDirectory()))
                throw new IOException("Cannot find Firefox profiles folder");

            foreach (var folder in Directory.GetDirectories(GetFirefoxProfilesDirectory())) {
                var prefsFilePath = Path.Combine(folder, PrefsFileName);
                if (!File.Exists(prefsFilePath)) continue;

                var firefoxDecryptor = new FirefoxDecryptor();
                Console.WriteLine("Found password: {0} for email {1}", firefoxDecryptor.TryDecrypting(prefsFilePath), firefoxDecryptor.StoredEmailAddress);
            }
        }
Exemplo n.º 2
0
        public void DecryptPasswordStoredInFirefox()
        {
            if (!Directory.Exists(GetFirefoxProfilesDirectory()))
            {
                throw new IOException("Cannot find Firefox profiles folder");
            }

            foreach (var folder in Directory.GetDirectories(GetFirefoxProfilesDirectory()))
            {
                var prefsFilePath = Path.Combine(folder, PrefsFileName);
                if (!File.Exists(prefsFilePath))
                {
                    continue;
                }

                var firefoxDecryptor = new FirefoxDecryptor();
                Console.WriteLine("Found password: {0} for email {1}", firefoxDecryptor.TryDecrypting(prefsFilePath), firefoxDecryptor.StoredEmailAddress);
            }
        }