[TuT]Making a Bruteforcer 03-18-2011, 09:11 PM
#1
Hi!!!
Today you will (hopefully) learn how to make a bruteforcer in VB.NET
Its pretty simple once you get the system
WARNING: VB.NET ISN'T a good language for bruteforcers since its slow, it will take ages to break more complex passes. Use C for some serious job
So, lets start
to prevent leachers, Ill make a console app that will just print the letters, but its pretty easy to make it into working bruteforcer
The code:
Okay, so what does what:
Public declarations, they can be private... I like them public, in case I need them somewhere else 
This sets an variable "first" as an integer. The variable has assigned a number: 97 for beginning, then it executes the code and moves to next number, this is repeated untill the number is 122, then in moves to next code, in our case another loop
With the next loop, this one starts again.... and thats how the bruteforcing works 
"Chr" is an ASCII character code, where the number in the brackets is the character number, Asc() does exactly the oposite 
Ok, now you should get the idea how it works, if you have any problem, just post it here =)
Alternative (faster) way by Coder-san:
Today you will (hopefully) learn how to make a bruteforcer in VB.NET
Its pretty simple once you get the system

WARNING: VB.NET ISN'T a good language for bruteforcers since its slow, it will take ages to break more complex passes. Use C for some serious job

So, lets start

to prevent leachers, Ill make a console app that will just print the letters, but its pretty easy to make it into working bruteforcer

The code:
Code:
Module Module1
Dim a As String = String.Empty
Dim b As String = String.Empty
Dim c As String = String.Empty
Dim d As String = String.Empty
Dim e As String = String.Empty
Dim f As String = String.Empty
Dim g As String = String.Empty
Dim h As String = String.Empty
Sub Bruteforce()
For eigth = 97 To 122
For seventh = 97 To 122
For sixth = 97 To 122
For fifth = 97 To 122
For fourth = 97 To 122
For third = 97 To 122
For second As Integer = 97 To 122
For first As Integer = 97 To 122
a = Chr(first)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next first
b = Chr(second)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next second
c = Chr(third)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next third
d = Chr(fourth)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next fourth
e = Chr(fifth)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next fifth
f = Chr(sixth)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next sixth
g = Chr(seventh)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next seventh
h = Chr(eigth)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next eigth
End Sub
Sub Main()
Console.WriteLine("Press any key to start...")
Console.ReadLine()
Bruteforce()
End Sub
End ModuleOkay, so what does what:
Code:
Dim a As String = String.Empty
Dim b As String = String.Empty
Dim c As String = String.Empty
Dim d As String = String.Empty
Dim e As String = String.Empty
Dim f As String = String.Empty
Dim g As String = String.Empty
Dim h As String = String.Empty
Code:
For first As Integer = 97 To 122
a = Chr(first)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next firstThis sets an variable "first" as an integer. The variable has assigned a number: 97 for beginning, then it executes the code and moves to next number, this is repeated untill the number is 122, then in moves to next code, in our case another loop
With the next loop, this one starts again.... and thats how the bruteforcing works 
Code:
Chr(first)
Ok, now you should get the idea how it works, if you have any problem, just post it here =)
Alternative (faster) way by Coder-san:
Spoiler:
Code:
Sub Bruteforce()
'CheckForIllegalCrossThreadCalls = False 'For MultiThreading
For eigth As Byte = 97 To 122
For seventh As Byte = 97 To 122
For sixth As Byte = 97 To 122
For fifth As Byte = 97 To 122
For fourth As Byte = 97 To 122
For third As Byte = 97 To 122
For second As Byte = 97 To 122
For first As Byte = 97 To 122
TextBox2.Text = Chr(first) & Chr(second) & Chr(third) & Chr(fourth) & Chr(fifth) & Chr(sixth) & Chr(seventh) & Chr(eigth)
Next first
Next second
Next third
Next fourth
Next fifth
Next sixth
Next seventh
Next eigth
End SubStaff will never ever ask you for your personal information.
We know everything about you anyway.
We know everything about you anyway.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
This loop idea came from my friend when he needed a quick bruteforcer and he got the idea while watching a clock