Ejemplo n.º 1
0
        private void Start_HeckDiction()
        {
            FtpReturn_Str  = ""; //FTP返回值为null,避免前面按钮操作导致的文本出错
            StartHeck_flag = 1;  //破解flag置为1,防止跳窗“连接正常”
            StreamReader sr       = new StreamReader(@"C:\FTP\ip.txt", Encoding.Default);
            string       txt_read = sr.ReadLine();

            try
            {
                while (txt_read != null)
                {
                    Form5 client = new Form5();
                    client.SocketClient(textBox3.Text, int.Parse(textBox4.Text));
                    client.StartClient();
                    StartLogIn(txt_read);
                    if (password_flag == 1)
                    {
                        password_flag = 0;
                        listBox1.Items.Add("密码:" + txt_read + ",尝试破解成功\r\n");
                        listBox1.SelectedIndex = listBox1.Items.Count - 1;
                        break;
                    }
                    else
                    {
                        listBox1.Items.Add("密码:" + txt_read + ",尝试破解失败\r\n");
                        listBox1.SelectedIndex = listBox1.Items.Count - 1;
                    }
                    client.Close();
                    txt_read = sr.ReadLine();
                }
            }
            catch (Exception ex) { }
            MessageBox.Show("破解完毕(破解已停止)");
        }
Ejemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     moreplots.Close();
     moreplots        = new Form5();
     moreplots.h_conv = hc;
     moreplots.h_rad  = hr;
     moreplots.q_conv = qc;
     moreplots.q_rad  = qr;
     moreplots.N      = N;
     moreplots.dt     = dt;
     moreplots.alpha  = alpha;
     moreplots.F12    = F12;
     moreplots.F21    = F21;
     moreplots.Show();
 }
Ejemplo n.º 3
0
 private void suppliersToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     Form5 updatesuppform = new Form5();
     if (updatesuppform.ShowDialog() == DialogResult.OK)
     {
         updatesuppform.Close();
         DataTable dt = new DataTable();
         db.dataGrid(dt, "suppliertable");
         dataGridView1.DataSource = dt;
         this.squery = "suppliers";
         textBox1.Font = new Font(textBox1.Font, FontStyle.Italic);
         textBox1.ForeColor = Color.Gray;
         textBox1.Text = "Suppliers";
         textBox1.Enabled = false;
         textBox1.Enabled = true;
     }
 }