public void AddKeyShouldPassWithValidArgs() { string validator = "0x0000000965"; string pubKey = "ASDFASdFFDJDY4356SDFGFDs="; JsonPublicKeySource pubKeySourceObj = new JsonPublicKeySource(); string randFileName = JsonPublicKeySourceTests.RandomString(6) + ".json"; pubKeySourceObj.LoadFromFile(randFileName, true); ConfigurationBuilder cb = new ConfigurationBuilder(); string[] args = { "--validator", validator, "--publickey", pubKey }; IConfigurationRoot configObj = cb.AddCommandLine(args).Build(); KeyManagement km = new KeyManagement(configObj, pubKeySourceObj); km.ProcessKeyCommand("add"); //Now check file independently that key Registration was success JsonPublicKeySource obj = new JsonPublicKeySource(); obj.LoadFromFile(randFileName, true); string key = obj.GetKeyForNode(validator); Assert.Equal(key, pubKey); //removing temp file File.Delete(randFileName); }
public void RemveKeyWithInvalidValidatorShouldFail() { string validator = "0x00000005476534"; string pubKey = "TREHXCAVSOYJULSDVGFDs="; JsonPublicKeySource pubKeySourceObj = new JsonPublicKeySource(); string randFileName = JsonPublicKeySourceTests.RandomString(6) + ".json"; pubKeySourceObj.LoadFromFile(randFileName, true); //Independently adding key for removal test pubKeySourceObj.AddKey(validator, pubKey); ConfigurationBuilder cb = new ConfigurationBuilder(); string[] args = { "test", validator }; IConfigurationRoot configObj = cb.AddCommandLine(args).Build(); KeyManagement km = new KeyManagement(configObj, pubKeySourceObj); km.ProcessKeyCommand("remove"); //check the keys should not be removed pubKeySourceObj.GetKeyForNode(validator).Should().Be(pubKey); //removing temp file File.Delete(randFileName); }
public void RemveKeyWithValidValidatorShouldPass() { string validator = "0x00000005476534"; string pubKey = "TREHXCAVSOYJULSDVGFDs="; JsonPublicKeySource pubKeySourceObj = new JsonPublicKeySource(); string randFileName = JsonPublicKeySourceTests.RandomString(6) + ".json"; pubKeySourceObj.LoadFromFile(randFileName, true); //Independently adding key for removal test pubKeySourceObj.AddKey(validator, pubKey); ConfigurationBuilder cb = new ConfigurationBuilder(); string[] args = { "--validator", validator }; IConfigurationRoot configObj = cb.AddCommandLine(args).Build(); KeyManagement km = new KeyManagement(configObj, pubKeySourceObj); km.ProcessKeyCommand("remove"); //check the keys should be removed var exception = Assert.Throws <KeyNotFoundException>(() => pubKeySourceObj.GetKeyForNode(validator)); Assert.NotNull(exception); exception.Message.Should().Contain("Public key not available"); //removing temp file File.Delete(randFileName); }
public Form1() { InitializeComponent(); _session = new SessionInfo(); _timer = new CustomTimer(); _timer.OnTick += RefreshTimer; _timer.OnStateChanged += OnStateChanged; // Register the global hot key KeyManagement.RegisterHotKey(this.Handle, CKeyI, 6, (int)Keys.Z); }
public static void ChangeKey(this TextBox textBox, TextBox textDummy, MouseEventArgs e) { if (e.Button != MouseButtons.Left) { return; } textDummy.Select(); textDummy.Focus(); textBox.Text = "Waiting for key..."; System.Threading.Thread KeyThread = new System.Threading.Thread(() => KeyManagement.KeyThread(ref textBox)); KeyThread.IsBackground = true; KeyThread.Start(); }
public void InvalidArgsShouldFail(string command) { JsonPublicKeySource pubKeySourceObj = new JsonPublicKeySource(); string randFileName = JsonPublicKeySourceTests.RandomString(6) + ".json"; pubKeySourceObj.LoadFromFile(randFileName, true); KeyManagement km = new KeyManagement(null, null); km.ProcessKeyCommand(command); string fileData = File.ReadAllText(randFileName); //there is no change in pub key data file fileData.Should().Contain("[]"); //removing temp file File.Delete(randFileName); }
public void AddKeyShouldFailWithoutValidator() { JsonPublicKeySource pubKeySourceObj = new JsonPublicKeySource(); string randFileName = JsonPublicKeySourceTests.RandomString(6) + ".json"; pubKeySourceObj.LoadFromFile(randFileName, true); IConfigurationRoot configObj = new ConfigurationBuilder().Build(); KeyManagement km = new KeyManagement(configObj, pubKeySourceObj); km.ProcessKeyCommand("add"); string fileData = File.ReadAllText(randFileName); fileData.Should().Contain("[]"); //removing temp file File.Delete(randFileName); }
public frm_main() { InitializeComponent(); Tuple <string, string> keyPair = KeyManagement.CreateKeyPair(); privateKey = keyPair.Item1; publicKey = keyPair.Item2; MessageBox.Show("Private-Key:\n\n" + privateKey); //tc_conversations.HandleCreated += tc_conversations_HandleCreated; tc_conversations.Padding = new Point(15, 4); tc_conversations.DrawMode = TabDrawMode.OwnerDrawFixed; tb_uid.Text = Properties.Settings.Default.UID; tb_ip.Text = Properties.Settings.Default.ServerIP; if (tb_uid.Text == "") { tb_uid.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name; } }
private void DataManagerForIncommingServerPackets(Packet packet) { switch (packet.type) { case Packet.PacketType.RegistrationSuccess: Log("Registration was successfull.\n"); GetClientist(); break; case Packet.PacketType.RegistrationFail: tcpClient.Close(); Log("Registration failed."); MessageBox.Show("Registration failed!\n\nDetails:\n" + packet.singleStringData, "Registration failed!", MessageBoxButtons.OK, MessageBoxIcon.Error); break; case Packet.PacketType.ClientList: Log("ClientList received."); InvokeGUIThread(() => { foreach (object clientdata in packet.data) { string[] data = ((string)clientdata).Split(';'); lb_clients.Items.Add(new LocalClientData(data[0], data[1])); } }); break; case Packet.PacketType.ClientConnected: Log("New Client connected."); InvokeGUIThread(() => { string[] data = (packet.singleStringData).Split(';'); lb_clients.Items.Add(new LocalClientData(data[0], data[1])); }); break; case Packet.PacketType.ClientDisconnected: InvokeGUIThread(() => { string[] data = (packet.singleStringData).Split(';'); string packetDataUID = data[0]; string packetDataPublicKey = data[1]; foreach (ConversationTabPage conversation in tc_conversations.TabPages) { if (conversation.UID == packetDataUID && conversation.PublicKey == packetDataPublicKey) { //tc_conversations.TabPages.Remove(conversation); conversation.DisableAll("Client disconnected"); } } foreach (LocalClientData item in lb_clients.Items) { if (packetDataUID == item.uid && packetDataPublicKey == item.publicKey) { lb_clients.Items.Remove(item); break; } } }); break; case Packet.PacketType.Message: Log("Incomming Message from " + packet.uid); InvokeGUIThread(() => { OnNewMessage(packet.uid, packet.messageTimeStamp, KeyManagement.Decrypt(privateKey, packet.messageData)); }); break; } }
/// <summary> /// /// </summary> /// <param name="mainFrame"></param> /// <param name="configProxy"></param> /// <param name="keyProxy"></param> /// <param name="userProxy"></param> /// <param name="logProxy"></param> /// <param name="ssProxy"></param> /// <param name="hqProxy"></param> /// <param name="stockProxy"></param> public MainWindowViewModel(Frame mainFrame, IConfigProxy configProxy, IKeyProxy keyProxy, IUserProxy userProxy, ILogProxy logProxy, ISubsidiaryProxy ssProxy, IHeadQuarterProxy hqProxy, IKeyTypeConfigurationProxy stockProxy) { this.configProxy = configProxy ?? new ConfigProxy(KmtConstants.LoginUser); this.keyProxy = keyProxy ?? new KeyProxy(KmtConstants.LoginUser, KmtConstants.HeadQuarterId); this.userProxy = userProxy ?? new UserProxy(); this.logProxy = logProxy ?? new LogProxy(); this.ssProxy = ssProxy ?? new SubsidiaryProxy(); this.hqProxy = hqProxy ?? new HeadQuarterProxy(); this.stockProxy = stockProxy ?? new KeyTypeConfigurationProxy(); this.mainFrame = mainFrame; keyManagement = new KeyManagement(this, this.keyProxy, this.configProxy, this.ssProxy, this.hqProxy); userManagement = new UserManagement(this, this.userProxy); logViewer = new ViewLogs(this, this.logProxy); InitializeNotificationSystem(); RibbonTabIndex = KeyPageIndex; InitializeRoles(); LogTypes.Add(MergedResources.Common_SystemLog); LogTypes.Add(MergedResources.Common_OperationLog); OnCurrentUserRoleChanged(); OnAutoReportChanged(null, null); }
private void CompileCheat() { if (BuildInProgress) { txtLog.Log("Build already in progress.", Color.Yellow); return; } BuildInProgress = true; string sourceMemory = Properties.Resources.Memory; string sourceOffsets = Properties.Resources.Offsets; string sourceProgram = Properties.Resources.Program; string sourceAimbotMath = Properties.Resources.AimbotMath; // Temporarily getting cheat source from local files, replace before release. /* * string sourceMemory = File.ReadAllText(@"C:\Users\Justin\Documents\Programming\Programs\Applications\Dynago\Dynago Stub\Dynago Stub\Memory.cs"); * string sourceOffsets = File.ReadAllText(@"C:\Users\Justin\Documents\Programming\Programs\Applications\Dynago\Dynago Stub\Dynago Stub\Offsets.cs"); * string sourceProgram = File.ReadAllText(@"C:\Users\Justin\Documents\Programming\Programs\Applications\Dynago\Dynago Stub\Dynago Stub\Program.cs"); * string sourceAimbotMath = File.ReadAllText(@"C:\Users\Justin\Documents\Programming\Programs\Applications\Dynago\Dynago Stub\Dynago Stub\AimbotMath.cs"); */ string sourceFinal = sourceMemory + sourceOffsets + sourceProgram; txtLog.Log("Initialized original cheat source."); #region settings // Note: use.ToString(format) when converting floats/decimals. #region aimbot settings bool aimbot_required = cb_aimbot_enabled.Checked || general_settings.trigger_magnetic || pistol_settings.trigger_magnetic || sniper_settings.trigger_magnetic; if (aimbot_required) { sourceFinal += sourceAimbotMath; } for (int i = 0; i < cmb_aimbot_type.Items.Count; i++) { string typeName = cmb_aimbot_type.Items[i].ToString(); WeaponSettings type = null; switch (typeName) { case "general": type = general_settings; break; case "pistols": type = pistol_settings; break; case "snipers": type = sniper_settings; break; } if (type.aimbot_on_key) { sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_key", KeyManagement.KeyFromText(type.aimbot_key_txt).ToString()); } else { sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_key", "-1"); } sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_bone", BoneList.GetBone((cmb_aimbot_bone.Items[type.aimbot_bone_index]).ToString()).ToString()); sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_fov", type.aimbot_fov.ToString(format) + "f"); sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_smooth", type.aimbot_smooth.ToString(format) + "f"); sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_rcs", type.aimbot_control_recoil.ToString().ToLower()); sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_enemy", type.aimbot_shoot_enemies.ToString().ToLower()); sourceFinal = sourceFinal.ReplaceComment($"setting_aimbot_{typeName}_team", type.aimbot_shoot_teammates.ToString().ToLower()); } sourceFinal = sourceFinal.ReplaceComment("setting_aimbot_thread_delay", Convert.ToInt32(nud_aimbot_thread_delay.Value).ToString()); if (!cb_aimbot_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_aimbot"); } if (!aimbot_required) { sourceFinal = sourceFinal.EraseComment("feature_aimbot/magnet"); } #endregion #region trigger settings for (int i = 0; i < cmb_triggerbot_type.Items.Count; i++) { string typeName = cmb_triggerbot_type.Items[i].ToString(); WeaponSettings type = null; switch (typeName) { case "general": type = general_settings; break; case "pistols": type = pistol_settings; break; case "snipers": type = sniper_settings; break; } if (type.trigger_on_key) { sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_key", KeyManagement.KeyFromText(type.trigger_key_txt).ToString()); } else { sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_key", "-1"); } sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_magnetbone", BoneList.GetBone((cmb_trigger_magnet_bone.Items[type.trigger_magnet_bone_index]).ToString()).ToString()); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_magnetfov", type.trigger_magnet_fov.ToString(format) + "f"); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_magnetsmooth", type.trigger_magnet_smooth.ToString(format) + "f"); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_magnetic", type.trigger_magnetic.ToString().ToLower()); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_enemy", type.trigger_shoot_enemies.ToString().ToLower()); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_team", type.trigger_shoot_teammates.ToString().ToLower()); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_delay", type.trigger_delay.ToString()); sourceFinal = sourceFinal.ReplaceComment($"setting_triggerbot_{typeName}_overshoot", type.trigger_overshoot.ToString()); } if (nud_trigger_thread_delay.Value > 0) { sourceFinal = sourceFinal.ReplaceComment("setting_trigger_thread_delay", Convert.ToInt32(nud_trigger_thread_delay.Value).ToString()); } if (!cb_trigger_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_triggerbot"); } #endregion #region visual settings // Teammate settings sourceFinal = sourceFinal.ReplaceComment("setting_visuals_teammate_color_r", lbl_visuals_teammates_color.BackColor.R.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_teammate_color_g", lbl_visuals_teammates_color.BackColor.G.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_teammate_color_b", lbl_visuals_teammates_color.BackColor.B.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_teammate_alpha", Convert.ToInt32(nud_visuals_teammates_glowalpha.Value).ToString()); if (!cb_visuals_teammates_visibleonly.Checked) { sourceFinal = sourceFinal.EraseComment("feature_visuals_teammate_chams_enabled"); } else { sourceFinal = sourceFinal.EraseComment("feature_visuals_teammate_chams_disabled"); } if (!cb_visuals_teammates_healthbased.Checked) { sourceFinal = sourceFinal.EraseComment("feature_teammate_healthbased"); } if (!cb_visuals_teammates_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_visuals_teammate"); } // Enemy settings sourceFinal = sourceFinal.ReplaceComment("setting_visuals_enemy_color_r", lbl_visuals_enemies_color.BackColor.R.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_enemy_color_g", lbl_visuals_enemies_color.BackColor.G.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_enemy_color_b", lbl_visuals_enemies_color.BackColor.B.ToString()); sourceFinal = sourceFinal.ReplaceComment("setting_visuals_enemy_alpha", Convert.ToInt32(nud_visuals_enemies_glowalpha.Value).ToString()); if (!cb_visuals_enemies_visibleonly.Checked) { sourceFinal = sourceFinal.EraseComment("feature_visuals_enemy_chams_enabled"); } else { sourceFinal = sourceFinal.EraseComment("feature_visuals_enemy_chams_disabled"); } if (!cb_visuals_enemies_healthbased.Checked) { sourceFinal = sourceFinal.EraseComment("feature_enemy_healthbased"); } if (!cb_visuals_enemies_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_visuals_enemy"); } // Settings that apply to both if (!cb_visuals_teammates_healthbased.Checked && !cb_visuals_enemies_healthbased.Checked) { sourceFinal = sourceFinal.EraseComment("feature_healthbased"); } if (nud_visuals_thread_delay.Value > 0) { sourceFinal = sourceFinal.ReplaceComment("setting_visuals_thread_delay", Convert.ToInt32(nud_visuals_thread_delay.Value).ToString()); } else { sourceFinal = sourceFinal.EraseComment("feature_visuals_thread_delay"); } if (!cb_visuals_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_visuals"); } #endregion #region misc settings // Bunny hop sourceFinal = sourceFinal.ReplaceComment("setting_bhop_key", KeyManagement.KeyFromText(txt_bhop_key.Text).ToString()); if (!cb_bhop_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_bhop"); } // No flash sourceFinal = sourceFinal.ReplaceComment("setting_noflash_percent", nud_noflash_percent.Value.ToString()); if (!cb_noflash_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_noflash"); } // Recoil control sourceFinal = sourceFinal.ReplaceComment("setting_rcs_scale_x", ((float)nud_rcs_x_percent.Value * 0.02f).ToString(format) + "f"); sourceFinal = sourceFinal.ReplaceComment("setting_rcs_scale_y", ((float)nud_rcs_y_percent.Value * 0.02f).ToString(format) + "f"); if (!cb_rcs_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_rcs"); } // Radar if (!cb_radar_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_radar"); } // FOV Changer sourceFinal = sourceFinal.ReplaceComment("setting_custom_fov", nud_fov_changer.Value.ToString()); if (!cb_fov_changer.Checked) { sourceFinal = sourceFinal.EraseComment("feature_fov_changer"); } // Skin Changer sourceFinal = sourceFinal.ReplaceComment("setting_skinchanger_bat", Randomize.String() + ".bat"); if (!cb_skinchanger_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("feature_skinchanger"); } #endregion #region removals if (!cb_aimbot_enabled.Checked && !cb_trigger_enabled.Checked) { sourceFinal = sourceFinal.EraseComment("weapon_type_lists"); } #endregion #endregion txtLog.Log("Implemented selected settings."); sourceFinal = Randomize.RandomizeOrders(sourceFinal); txtLog.Log("Randomized order of code."); sourceFinal = Randomize.Code("rnd", sourceFinal); txtLog.Log("Randomized class names."); txtLog.Log("Randomized variable names."); txtLog.Log("Randomized namespace names."); txtLog.Log("Randomized method names."); txtLog.Log("Randomized goto labels."); sourceFinal = OffsetList.ReplaceOffsets(sourceFinal); txtLog.Log("Replaced offset variables."); sourceFinal = Randomize.ReplaceNumbers(sourceFinal); //txtLog.Log("Replaced numbers with new sigs."); // Does nothing so excluding from logs for now. sourceFinal = sourceFinal.Junkify(); txtLog.Log("Distributed randomized junk code."); sourceFinal = sourceFinal.ReplaceComment("setting_window_title", Randomize.String(16, 32)); sourceFinal = sourceFinal.ReplaceComment("dynago_version", Program.currentVersion); sourceFinal = sourceFinal.ReplaceComment("dynago_user", Program.currentUser); txtLog.Log("Replaced dynamic build strings."); // ENABLE WHEN TESTING Clipboard.SetText(sourceFinal); new Thread(() => { List <string> errors = Compiler.Compile(sourceFinal, txt_build_path.Text); bool success = errors.Count == 0; if (success) { txtLog.Log("Compiled cheat to " + Path.GetFileName(txt_build_path.Text)); // Credits to ConfuserEx (https://yck1509.github.io/ConfuserEx/) // Works by using the Confuser CLI obfuscate an assembly with settings from a .crproj file. if (cb_obfuscation_enabled.Checked) { txtLog.Log("Beginning obfuscation process..."); txtLog.Log("Installing obfuscation dependencies..."); string obf = Program.directory + "\\" + Randomize.String(); Confuser.Install(obf); string confuserPreset = cmb_obfuscation_preset.SelectedItem.ToString(); txtLog.Log("Running obfuscation file..."); string confuserOutput = Confuser.Obfuscate(obf, txt_build_path.Text, confuserPreset); Regex completionCheck = new Regex("Finished at.* elapsed."); Match completionMatch = completionCheck.Match(confuserOutput); if (completionMatch.Success) { txtLog.Log("Build obfuscated successfully."); } else { txtLog.Log("Build obfuscation failed & skipped.", Color.Yellow); } } DialogResult result = MessageBox.Show("Cheat compiled successfully.\nWould you like to run it now?", "Dynago", MessageBoxButtons.YesNo, MessageBoxIcon.Information); try { if (result == DialogResult.Yes) { ProcessStartInfo info = new ProcessStartInfo(txt_build_path.Text); info.UseShellExecute = true; info.Verb = "runas"; Process.Start(info); } } catch (Exception) { MessageBox.Show("Failed to run the cheat.\nPlease launch Dynago manually.", "Dynago", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { txtLog.Log("Oh no! There were " + errors.Count + " errors.", Color.Yellow); foreach (string err in errors) { txtLog.Log(err, Color.Red); } // upload sourcefinal + error log to server??? string result = string.Empty; if (string.IsNullOrEmpty(result)) { result = "Shit is scuffed."; } txtLog.Log("Error log ID: " + result, Color.Yellow); txtLog.Log("[Please give that to Me-re-ly]", Color.Green); MessageBox.Show("Build failed!\nWe found some errors :(", "Dynago", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }).Start(); BuildInProgress = false; }
public Main() { InitializeComponent(); this.LockSize(); txtLog.MouseDown += (s, e) => FormMethod.HideCaret(txtLog.Handle); Text = Text.Replace("[0.0]", Program.currentVersion); // Custom.NET vertical tab control using default components. // I might've been able to do this better... pTabMain = new PanelTabControl(PanelTabType.VerticalAttatched); pTabMain.AddTab(new PanelTab(tabValues, lblValues, pnlValues)); pTabMain.AddTab(new PanelTab(tabAimbot, lblAimbot, pnlAimbot)); pTabMain.AddTab(new PanelTab(tabTriggerbot, lblTriggerbot, pnlTriggerbot)); pTabMain.AddTab(new PanelTab(tabVisuals, lblVisuals, pnlVisuals)); pTabMain.AddTab(new PanelTab(tabMisc, lblMisc, pnlMisc)); pTabMain.AddTab(new PanelTab(tabCompile, lblCompile, pnlCompile)); pTabMain.SelectTab(0); pTabValues = new PanelTabControl(PanelTabType.VerticalAttatched); pTabValues.AddTab(new PanelTab(tabOffsets, lblOffsets, pnlOffsets)); pTabValues.AddTab(new PanelTab(tabBones, lblBones, pnlBones)); pTabValues.AddTab(new PanelTab(tabValShare, lblValShare, pnlValShare)); pTabValues.TabChanged += (s, e) => updateOffsetInformation(); pTabValues.SelectTab(0); pTabMisc = new PanelTabControl(PanelTabType.ButtonBased, pTabMain); pTabMisc.AddTab(new PanelTab(tabFeatures, lblFeatures, pnlFeatures)); pTabMisc.AddTab(new PanelTab(tabConfig, lblConfig, pnlConfig)); pTabMisc.AddTab(new PanelTab(tabAccount, lblAccount, pnlAccount)); pTabMisc.SelectTab(0); cmb_config_source.SelectedIndex = 0; cmb_scrape_offsets.SelectedIndex = 0; cmb_scrape_bones.SelectedIndex = 0; cmb_aimbot_bone.SelectedIndex = 0; cmb_obfuscation_preset.SelectedIndex = 0; cmb_aimbot_type.SelectedIndex = 0; cmb_triggerbot_type.SelectedIndex = 0; cmb_trigger_magnet_bone.SelectedIndex = 0; txt_build_path.Text = "dynago.exe"; OffsetList.Initialize(); OffsetList.RefreshOffsets(lbOffsets); BoneList.Initialize(); BoneList.RefreshBones(lbBones); KeyManagement.InitializeKeys(); CheckForIllegalCrossThreadCalls = false; if (Program.currentUser.ToLower() != "justin") { cb_obfuscation_enabled.Required(); } lblCustomizeTriggerMagnetic.OnHover(Color.White); lblBackToTrigger.OnHover(Color.White); // account stuff lblLoggedIn.Text = Program.currentUser; lblAdvertisements.Text = "Removed"; lblAdvertisements.ForeColor = Color.Green; lblLoggedIn.Left = lblPreLoggedIn.Right; lblAdvertisements.Left = lblPreAdvertisements.Right; lblRemoveAds.OnHover(Color.FromArgb(51, 153, 255)); lblRemoveAds.Left = lblAdvertisements.Right; lblRemoveAds.Visible = false; // weapon config stuff (yikes?) general_settings = new WeaponSettings(this); pistol_settings = new WeaponSettings(this); sniper_settings = new WeaponSettings(this); }
public void Awake() { current = this; }