How to Write a Brute Force for Numbers (Visual BASIC 2008 Express)




In this Instructable I will show you how to write a so called "Brute Force" in Visual BASIC 2008 Express which you can download here -->

A force brute is a "cracking" program that cracks a password by trying as many combinations as possible until it gets in.

O.B.S! This application is only for show and can hardly break real passwords, so unless you want to spend years trying to crack a password, you better find something else"

Now let's get started!


Step 1: From the Top

First you press new project and then select Windows Forms Application and name it what you want.

Step 2: The Layout

The first thing where going to do on the project is to add one labels, one textboxes, 5 buttons and 2 timers.

Arrange them according to the picture and name them.

Step 3: Time for the "programing" Part...

Right now the buttons are just pretty but now were going to put them to use.

Start by double clicking the Start button and then add this string:
Timer1.Enable = True

Then its time to set the timers as well!

Just single click on Timer1 and down to the right there should be a place that says "Interval 100"
Change it from 100 to 2000.

This alarm makes the program wait 2 seconds after you pressed Start before it start cracking so that you get time to click the password field.

Now double click on the alarm1 and write this string:
Timer2.Enable = True
Timer1.Enable = False

Now double click on the Timer2 and write (copy) this string:
SendKeys.Send(Int(Val(TextBox2.Text) * Rnd()))

The first line tells the program to start writing random numbers up to the number you write in the box.
The second line tells the program to hit ENTER so that it tries every combination.

Now click the Slow button and write this string:
Timer.Interval = ("5000")

This changes the time it waits for writing a combination. 5000 is 5 seconds

Now click the Medium and write the same as Slow but put in 100 instead of 5000, and do the same with Fast but with 5 instead.

And last but not least the stop button.

Click it and write the string:
Timer2.Enabled = False

Step 4: The Testing

Now when the programming is complete it is time so test it!

Click on the "play" icon and see if the program starts and if it don't then there's something wrong in the code.

When the program starts write in a any number like 2000 and then open Notepad.

Press the Slow button and Start, then quickly change to notepad. It should start writing random numbers every 5:the second.

Then press Stop, and then try the others.

Notice that the fast makes it go REALLY fast and you may have to press Ctrl+Alt+Delete to make it stop

Step 5: Finnishing!

If the testing was a success you can build the program by pressing Build.

It should end up in My Documents\Visual Studio 2008\Projects...

And if you want you can make it look cooler and experiment to make it better.

Mine looks like this =)



    • Classroom Science Contest

      Classroom Science Contest
    • Arduino Contest 2019

      Arduino Contest 2019
    • IoT Challenge

      IoT Challenge

    14 Discussions


    7 years ago on Step 3

    Where is the Alarm1 come in? I cant find it can someone help me?


    9 years ago on Step 2

    Could you make this clearer, like lable the buttons on paint or something, also just crop image to show just the workspace (the form within the work space)

    You can use Timer1.Start() instead of Timer1.Enabled=True and also, Timer1.Stop() for Timer1.Enabled=False.

    ArnsebBen Nguyen

    Reply 9 years ago on Introduction

    I have made some corrections in the instructible, see if it solves it, else send me a message with the code. =)

    Ben Nguyen

    9 years ago on Introduction

    Could you show and label where all the buttons are? Also, were we supposed to add 3 alarms? Nice instructable!

    2 replies
    ArnsebBen Nguyen

    Reply 9 years ago on Introduction

    Sorry! I haven't got my email notification about comments! It's supposed to be 2 timers Sorry


    10 years ago on Introduction

    Hi, I've noticed that where you have said Alarm in the steps, it should mean timer, is this true? I have also completed this program coding with the changes, and instead of generating random numbers, it just keeps generating zeros, could you help my with this? I have made sure i have copied the code correctly but still thi problem occurs! Thanks :)

    1 reply

    Reply 9 years ago on Introduction

    Sorry for the late answers!
    Thank you for pointing out the Timer/Alarm thing!
    I have corrected the code now, see if that works, else send me a message with your code. =)


    10 years ago on Step 2

    could you like show which one is which tnx