[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![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
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![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
So, lets start![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
to prevent leachers, Ill make a console app that will just print the letters, but its pretty easy to make it into working bruteforcer![Tongue Tongue](https://sinister.ly/images/smilies/set/tongue.png)
The code:
Okay, so what does what:
Public declarations, they can be private... I like them public, in case I need them somewhere else ![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
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 ![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
"Chr" is an ASCII character code, where the number in the brackets is the character number, Asc() does exactly the oposite ![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
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
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
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
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
So, lets start
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
to prevent leachers, Ill make a console app that will just print the letters, but its pretty easy to make it into working bruteforcer
![Tongue Tongue](https://sinister.ly/images/smilies/set/tongue.png)
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 Module
Okay, 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
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
Code:
For first As Integer = 97 To 122
a = Chr(first)
Console.WriteLine(a & b & c & d & e & f & g & h)
Next first
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
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
Code:
Chr(first)
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
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:
Staff will never ever ask you for your personal information.
We know everything about you anyway.
We know everything about you anyway.