Thursday, February 7, 2013

Password programming for beginners

Password programming for beginners

A password generator to attack a system is not a difficult concept to understand. The program produces a large number of combinations in order to find a password to enter the system. Most passwords are long and complex, the system is secure against intrusion. Programming a generator of passwords is very fun and the public interest. Indeed, when a programmer is able to produce a good generator of passwords, it will normally be entitled to produce any code. Here, we do not show how to become a genius infiltration or even how to find a good program that cracked the computer systems. Here I show the basics. These bases are essential to understanding software. These bases are valid in certain types of programming such as object-oriented programming.

As an example to start with. The sample project is available for download at the end of this article.

Password programming




The user enters any value in the first text field TextBox1. All characters are replaced by an asterisk to simulate the password to find. Then the second line TextBox2, the user has to guess the password is hidden. If the password entered in TextBox2 is the same as in TextBox1, then the result is displayed in the ToolStripStatusLabel1.

To guess a password without cheating, we must use every technique imaginable. You can not rely on the power of your computer to find a password quickly. If this is the case, you should change your way of thinking.



In the next article, I outline the problem of a mathematical point of view. Must know the possibilities password before writing our program. We begin with a very simple case with numbers from 0 to 9.




Public Class Form1

    ''' <summary>
    ''' This is a very basic basic basic password game, is not even a game.
    ''' </summary>
    ''' <param name="sender"></param>
    ''' <param name="e"></param>
    ''' <remarks></remarks>
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        ToolStripStatusLabel1.Text = "Searching..."
        If TextBox1.Text = TextBox2.Text Then
            ToolStripStatusLabel1.Text = TextBox2.Text
        End If
    End Sub

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Button1.Text = "brutal force find"
        GroupBox1.Text = "secret password"
        GroupBox2.Text = "Stupid password Cracker game"
        With TextBox1
            .PasswordChar = "*"
        End With
    End Sub
End Class





Download the sample project : PassWordGame.zip


No comments:

Post a Comment