Pages

Monday, March 16, 2015

Zip password unlocker vb

To unpack a zip file protected by a password, there is the brutal force attack. Of course, if you ask for the password, it would be easier.

First, I will show basically how the brutal force attacks program work. Later on, I will try to improve a little bit the basic program.

What is the brutal force attack?

The brutal force attack consist or testing every possibilities to unlock a security. For our example, our zip file is protected by a password. That password could be anything: iloveyou, monkey1234, Sup3rMan, Sp0ck….

The password protected zip file.

For education purpose, I will place a protected zip file at the end of this article. Of course, you could make your own protected zip file. My file will be What_is_the_password.zip

The basic algorithm

If I want to test every possibility, I will sweep all possible combinations start from:

1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d….

1a, 1b, 1c, 1d, …

1aa, 1ab, 1ac, 1ad, ….

…

9aa, 9ab, 9ac, 9ad, …

…

Iloveyou1, iloveyou2, iloveyou3, iloveyou4, …

To the end of the world. The longer is the password, the harder is. Also, the higher number of possible character there is, the harder your password will be to be break.

The basic vb code

The tokens

In this example, I will create a generic collection of numbers and letter. I will name JETON.

Check Technologies

Check Technologies

.NET Framework

Visual Basic now uses .NET Framework. With Visual Studio 2010, Microsoft decided to implant a strategy between Visual Basic and C# and bring both language in the same software. Visual Basic compiler has also improved.