public static void Pulse(int processId, string secretKey) { try { _tempSecretKey = Others.EncrypterMD5(secretKey); if (MD5Key != _tempSecretKey) { return; } SpellManager.SpellListManager.LoadSpellList(Application.StartupPath + "\\Data\\spell.txt"); Wow.Memory.WowProcess = new Process(processId); Wow.Memory.WowMemory = new Hook(); if (Wow.Helpers.Usefuls.WowVersion() == Information.TargetWowBuild) { Wow.ObjectManager.Pulsator.Initialize(); //AccountSecurity.Pulse(); } } catch (Exception e) { Logging.WriteError("nManager > Pulstator > Pulse(int processId, string secretKey): " + e); } }
private static void ConnectThread() { string repC = ""; try { try { Application.DoEvents(); _ip = GetReqWithAuthHeader(Others.GetClientIPScriptLink, Login, Password)[1]; List <string> resultConnectReq = GetReqWithAuthHeader(Others.GetAuthScriptLink + "?create=true&HardwareKey=" + HardwareKey, Login, Password); string goodResultConnectReq = Others.EncrypterMD5(Secret + _ip + Login + HardwareKey); repC = resultConnectReq[1]; int randomKey = Others.Random(1, 9999); List <string> resultRandom = GetReqWithAuthHeader(Others.GetAuthScriptLink + "?random=true", randomKey.ToString(CultureInfo.InvariantCulture), randomKey.ToString(CultureInfo.InvariantCulture)); string goodResultRandomTry = Others.EncrypterMD5((randomKey * 4) + Secret); if (resultRandom[0] == goodResultRandomTry && resultConnectReq[0] == goodResultConnectReq) { TrueResultLoop = goodResultConnectReq; Thread connectThreadLaunch = new Thread(LoopThread) { Name = "LoopLogin" }; connectThreadLaunch.Start(); return; } } catch (Exception e) { Logging.WriteError("DFiosdfosfIDFsDIODJFsios#1: " + e); } // Error if (repC == LocalStatusList[1]) { MessageBox.Show( Translate.Get( Translate.Id. Subscription_finished__renew_it_if_you_want_use_no_limited_version_of_the_tnb_again_here) + ": http://thenoobbot.com/.", Translate.Get(Translate.Id.Error), MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show( Translate.Get( Translate.Id.You_starting_trial_version__the_tnb_will_automatically_stopped_after____min), Translate.Get(Translate.Id.Trial_version), MessageBoxButtons.OK, MessageBoxIcon.Information); IsFreeVersion = true; Trial(); return; } if (repC == LocalStatusList[3]) { MessageBox.Show( Translate.Get( Translate.Id.Incorrect_password__go_to_this_address_if_you_have_forget_your_password) + ": http://thenoobbot.com/login/?action=lostpassword", Translate.Get(Translate.Id.Error), MessageBoxButtons.OK, MessageBoxIcon.Error); } else if (repC == LocalStatusList[4]) { MessageBox.Show( Translate.Get( Translate.Id.Incorrect_user_name__go_here_if_you_want_create_an_account_and_buy_The_Noob_Bot) + ": http://thenoobbot.com/", Translate.Get(Translate.Id.Error), MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show( Translate.Get( Translate.Id.Login_error__try_to_disable_your_antivirus__go_to_the_website_if_you_need_help) + ": http://thenoobbot.com/", Translate.Get(Translate.Id.Error), MessageBoxButtons.OK, MessageBoxIcon.Error); } EndInformation(); } catch (Exception e) { Logging.WriteError("DFiosdfosfIDFsDIODJFsios#2: " + e); } }
private static void CheckUpdateThread() { try { // ReSharper disable ConditionIsAlwaysTrueOrFalse if (Others.EncrypterMD5(Information.Version) == "5006678f64f53edfaa26f2587c559d1e") { // ReSharper restore ConditionIsAlwaysTrueOrFalse return; } #pragma warning disable 162 // ReSharper disable HeuristicUnreachableCode string resultReq = Others.GetRequest(Others.GetUpdateScriptLink, "null=null"); Application.DoEvents(); if (resultReq != null) { if (resultReq.Count() < 100 && resultReq.Any()) { if (resultReq != Information.Version) { string resultDesc = Others.GetRequest(Others.GetUpdateScriptLink, "show=desc"); string resultLog = Others.GetRequest(Others.GetUpdateScriptLink, "show=changelog"); DialogResult dr = MessageBox.Show( string.Format("{0}{1}{4}{4}{2}{4}{3}{4}{5}", Translate.Get(Translate.Id.LatestUpdateVersion), resultReq, Translate.Get(Translate.Id.LatestUpdateDescription), resultDesc, Environment.NewLine, Translate.Get(Translate.Id.ConfirmUpdate)), Translate.Get(Translate.Id.LatestUpdateTitle), MessageBoxButtons.YesNo, MessageBoxIcon.Question); switch (dr) { case DialogResult.Yes: Others.OpenWebBrowserOrApplication(resultLog); Others.OpenWebBrowserOrApplication("http://thenoobbot.com/downloads/latest.php"); try { foreach ( Process process in Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName)) { if (process.Id != Process.GetCurrentProcess().Id) { process.Kill(); } } } catch { } EndInformation(); break; case DialogResult.No: break; } } } } // ReSharper restore HeuristicUnreachableCode #pragma warning restore 162 } catch /*(Exception e)*/ { //Logging.WriteError("LoginServer > CheckUpdateThread(): " + e); } }