Brute force characters into a textbox in c#

Posted by Fred Dunly on Stack Overflow See other posts from Stack Overflow or by Fred Dunly
Published on 2010-04-05T22:23:11Z Indexed on 2010/04/05 22:33 UTC
Read the original article Hit count: 635

Filed under:
|
|
|
|

Hey everyone, I am VERY new to programming and the only language I know is C# So I will have to stick with that... I want to make a program that "test passwords" to see how long they would take to break with a basic brute force attack. So what I did was make 2 text boxes. (textbox1 and textbox2) and wrote the program so if the text boxes had the input, a "correct password" label would appear, but i want to write the program so that textbox2 will run a brute force algorithm in it, and when it comes across the correct password, it will stop. I REALLY need help, and if you could just post my attached code with the correct additives in it that would be great. The program so far is extremely simple, but I am very new to this, so. Thanks in advance.

    private void textBox2_TextChanged(object sender, EventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {


        if (textBox2.Text == textBox1.Text)
        {
            label1.Text = "Password Correct";
        }
        else
        {
            label1.Text = "Password Wrong";

        }

    }


    private void label1_Click(object sender, EventArgs e)
    {

    }




}

} `

© Stack Overflow or respective owner

Related posts about brute-force

Related posts about c#