Guest User

Untitled

a guest
Jun 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. System.IO.Directory.CreateDirectory("C:/Activation");
  2. System.IO.File.Create("C:/Activation/activate.bat").Close();
  3. File.WriteAllText("C:/Activation/activate.bat", "C:" + Environment.NewLine + @"cd /." + Environment.NewLine + "cd C:/Windows/System32" + Environment.NewLine + @"slmgr.vbs /ipk " + Product_Key.Text + Environment.NewLine + @"slui.exe 4");
  4. Thread.Sleep(2000);
  5.  
  6. var proc1 = new ProcessStartInfo();
  7. string newproc = (@"C:Activationactivate.bat");
  8. proc1.UseShellExecute = false;
  9. proc1.WorkingDirectory = @"C:WindowsSystem32";
  10. proc1.FileName = @"C:WindowsSystem32cmd.exe";
  11. proc1.Verb = "runas";
  12. proc1.Arguments = "/k " + newproc;
  13. proc1.WindowStyle = ProcessWindowStyle.Normal;
  14. System.Diagnostics.Process.Start(proc1);
  15.  
  16. var proc1 = new ProcessStartInfo();
  17. string newproc = ("slmgr.vbs /ipk " + product_key.Text + @" & cd C:/Windows/System32" + @" & slui.exe 4");
  18. proc1.UseShellExecute = true;
  19. proc1.WorkingDirectory = @"C:WindowsSystem32";
  20. proc1.FileName = @"C:WindowsSystem32cmd.exe";
  21. proc1.Verb = "runas";
  22. proc1.Arguments = "/c " + newproc;
  23. proc1.WindowStyle = ProcessWindowStyle.Normal;
  24. System.Diagnostics.Process.Start(proc1);
Add Comment
Please, Sign In to add comment