// Token: 0x06000003 RID: 3 RVA: 0x00002310 File Offset: 0x00000510 private void UpdateModule() { try { global::Microsoft.Win32.RegistryKey registryKey = global::Microsoft.Win32.Registry.CurrentUser.OpenSubKey("ShadowCheats", true); global::System.Net.ServicePointManager.SecurityProtocol = global::System.Net.SecurityProtocolType.Tls12; global::System.Net.WebClient webClient = new global::System.Net.WebClient(); string value = webClient.DownloadString("https://raw.githubusercontent.com/Shadow-Developer/ShadowApplicationProgrammingInterface/master/Data/Version.ini"); webClient.Dispose(); if (registryKey == null) { registryKey = global::Microsoft.Win32.Registry.CurrentUser.CreateSubKey("ShadowCheats"); registryKey.SetValue("Version", value); if (!this.DownloadFiles()) { global::System.Windows.Forms.MessageBox.Show("Uh oh. Shadow Cheats has reached a roadblock. We tried creating the necessary folders and downloading the necessary files for Shadow Cheats, but it failed. You can try adding an exception for this exploit in your antivirus.", "Shadow Cheats", global::System.Windows.Forms.MessageBoxButtons.OK, global::System.Windows.Forms.MessageBoxIcon.Exclamation); } } else if (!registryKey.GetValue("Version").ToString().Contains(value) && !this.DownloadFiles()) { global::System.Windows.Forms.MessageBox.Show("Uh oh. Shadow Cheats has reached a roadblock. We tried creating the necessary folders and downloading the necessary files for Shadow Cheats, but it failed. You can try adding an exception for this exploit in your antivirus.", "Shadow Cheats", global::System.Windows.Forms.MessageBoxButtons.OK, global::System.Windows.Forms.MessageBoxIcon.Exclamation); } if ((!global::System.IO.File.Exists("ShadowCheats\\Bin\\ShadowCheats-Module.dll") || !global::System.IO.File.Exists("ShadowCheats\\Bin\\Injector.exe")) && !this.DownloadFiles()) { global::System.Windows.Forms.MessageBox.Show("Uh oh. Shadow Cheats has reached a roadblock. We tried creating the necessary folders and downloading the necessary files for Shadow Cheats, but it failed. You can try adding an exception for this exploit in your antivirus.", "Shadow Cheats", global::System.Windows.Forms.MessageBoxButtons.OK, global::System.Windows.Forms.MessageBoxIcon.Exclamation); } registryKey.SetValue("Version", value); registryKey.Close(); } catch (global::System.Exception ex) { global::System.Console.WriteLine("[{0}] [Shadow Cheats] -> Unexpected Error: {1}", global::System.DateTime.Now.ToLongTimeString(), ex.Message); global::System.Windows.Forms.MessageBox.Show("Uh oh. Shadow Cheats has reached a roadblock. You can find a detailed error in the console.", "Shadow Cheats", global::System.Windows.Forms.MessageBoxButtons.OK, global::System.Windows.Forms.MessageBoxIcon.Exclamation); } }
// Token: 0x06000003 RID: 3 RVA: 0x0000217C File Offset: 0x0000037C private bool DownloadDLL() { global::Microsoft.Win32.RegistryKey registryKey = global::Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\\\CoCO", true); string[] array = this.wc.DownloadString("https://raw.githubusercontent.com/GreenMs02/Update/master/Module.txt").Split("\r\n".ToCharArray(), global::System.StringSplitOptions.RemoveEmptyEntries); if (registryKey.GetValue("Ver").ToString() == array[3] && this.CheckLastestDll(registryKey)) { this.wc.DownloadFile(array[4], "EasyExploitsDLL.dll"); } else { this.wc.DownloadFile(array[1], "EasyExploitsDLL.dll"); } return(global::System.IO.File.Exists("EasyExploitsDLL.dll")); }
// Token: 0x06000002 RID: 2 RVA: 0x000020BC File Offset: 0x000002BC private bool CheckDllUpdate() { string[] array = this.wc.DownloadString("https://raw.githubusercontent.com/GreenMs02/Update/master/Module.txt").Split("\r\n".ToCharArray(), global::System.StringSplitOptions.RemoveEmptyEntries); global::Microsoft.Win32.RegistryKey registryKey = global::Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\\\CoCO", true); if (registryKey == null) { registryKey = global::Microsoft.Win32.Registry.CurrentUser.CreateSubKey("SOFTWARE\\\\CoCO"); registryKey.SetValue("Ver", "0"); } else { if (registryKey.GetValue("Ver").ToString() != array[0]) { registryKey.SetValue("Ver", array[0]); return(true); } if (registryKey.GetValue("Ver").ToString() != array[3] && this.CheckLastestDll(registryKey)) { return(true); } } return(!global::System.IO.File.Exists("EasyExploitsDLL.dll")); }