Exemplo n.º 1
0
 private void SwitchCrack_CheckedChanged(object sender, EventArgs e)
 {
     if (SwitchCrack.Checked)
     {
         var tcpPort = UtilityExtension.GetValue(RegistryHive.LocalMachine,
                                                 @"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "MaxUserPort", RegistryValueKind.DWord);
         if (string.IsNullOrWhiteSpace(tcpPort))
         {
             if (UtilityExtension.SetValue(RegistryHive.LocalMachine,
                                           @"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "MaxUserPort", "60000",
                                           RegistryValueKind.DWord))
             {
                 lbCrack.Visible = true;
                 lbCrack.Text    = $"System cracked,Max Port Count for 60000";
                 MessageBox.Show("Crack Success!");
             }
         }
     }
 }
Exemplo n.º 2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            BtnPauseRest();
            btnStop.Enabled = false;
            var tcpPort = UtilityExtension.GetValue(RegistryHive.LocalMachine,
                                                    @"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "MaxUserPort", RegistryValueKind.DWord);

            if (string.IsNullOrWhiteSpace(tcpPort))
            {
                SwitchCrack.Enabled = true;
                SwitchCrack.Checked = false;
            }
            else
            {
                SwitchCrack.Enabled = false;
                SwitchCrack.Checked = true;
                lbCrack.Visible     = true;
                lbCrack.Text        = $"System cracked,Max Port Count for {tcpPort}";
            }
        }