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

Picture of 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 --> http://www.microsoft.com/eXPress/download/

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

Picture of From the Top

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

Step 2: The Layout

Picture of 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...

Picture of 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()))
SendKeys.Send("{enter}")

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

Picture of 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!

Picture of 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 =)

Comments

eburton (author)2011-07-25

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

Fox-san48 (author)2010-05-14

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)

alltootechnical (author)2010-03-18

try that in excel

alltootechnical (author)2010-03-08

Add letters and symbols as well!

alltootechnical (author)2010-02-22

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

Ben Nguyen (author)2009-07-29

Also, there were errors that said "Error 1 'Enable' is not a member of 'System.Windows.Forms.Timer'."

Arnseb (author)Ben Nguyen2009-08-04

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

Ben Nguyen (author)Arnseb2009-08-12

Thanks! It works perfectly now!! If only you could add letters somehow...

Ben Nguyen (author)2009-07-29

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

Arnseb (author)Ben Nguyen2009-08-04

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

Ben Nguyen (author)Arnseb2009-08-12

Thanks!

jakey-bomb (author)2009-04-23

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 :)

Arnseb (author)jakey-bomb2009-08-04

Hey!
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. =)

marselsipod (author)2009-04-11

could you like show which one is which tnx

About This Instructable

16,039views

12favorites

License:

More by Arnseb:How to write a Brute Force for numbers (Visual BASIC 2008 Express)Home made Pellet ammoGet your fingerprint
Add instructable to: