Password Help

D

Derrick

Hello,
I have an excel file that I password protected a while ago
and don't remember the password and need to get into it.
Does anyone have any suggestions?

Please email me ASAP... [email protected]

Thanks for your help!
 
G

Greg Wilson

You can break Excel file protection with VBA by
systematically testing combinations of a selected
character set against the password; i.e. the "brute force"
method. However, this is only feasible if the character
set is very limited, say, 25 characters (preferably less)
and the password is limited to a maximum of six
characters. Otherwise, it takes far too long (read
thousands of hours!!!).

In my case, I typically use lower case alphabetic
characters and may combine numerics but this is almost
invariably limited to either 1 or 2 (e.g. "monkey1"
and "monkey2"). When I consider all the letters of the
alphabet individually, I am confident that I have never
used a password that included the letters j, q, v, x and
z. Therefore, in my case, I can limit the character set
to 23. That makes it feasible for me to use this method
so long as I havn't used seven characters. Note
that "monkey2" is seven characters. I would likely be SOL
in this case (see Note).

My understanding is that the number of possible
combinations is the number of characters in the set taken
to the power of the number of characters in the password.
This exponential curve becomes damn near vertical in a
hurry.

Based on a brief test of my own system (2.4 ghz), I can
test approx. 900,000 combinations per hour. Therefore,
doing the math, I derived the following time estimates for
a 25 character set:
4 character password: 1 to 26 minutes
5 character: 26 minutes to 10.8 hours
6 character: 10.8 to 271 hours
7 character: 271 to 6782 hours
8 character: 6782 to 169542 hours

I created a macro to do this some time ago. I rigged it
to accept a specified run time after which it would store
the progress allowing you to resume at a later date.

Note: If you are able to move to the front of the list
characters that are more likely to represent the first
character of the password then you improve the odds of
reducing the time required to the lower limit.

Regards,
Greg
(VBA amateur)
 
G

Greg Wilson

I was refering to the File/Open password protection which
is far more daunting than breaking worksheet or workbook
protection - these being trivial in comparison.

To password protect an Excel file select File/SaveAs/Tools
menu. After doing this, when you try to open the workbook
you will be prompted for a password. Microsoft takes file
protection very seriously. I can break both Worksheet and
Workbook protection essentially instantaneously
irrespective of the size and complexity of the password.
VBA module protection can be broken using a Hex Editor
whereas file protection cannot to my knowledge.

Regards,
Greg
 
M

mudraker

Greg

I have a copy comercial program that is is supposed to crack all Exce
passwords - even Open Workbook ones.

I am running a test at the moment to see if it can..


If succesful I can attempt to crack yours.

How big is your file & what is the approx length of the password yo
used
 
G

Greg Wilson

Mudraker,

It's not actually me that has the file to break. The OP
was Derick. I was trying to advise him that by using
basic VBA you can break workbook file protection *IF AND
ONLY IF* you can dramatically limit the number of
characters used in combination (character set); and if the
password at the same time is short enough. When it's your
own password then you should be able to limit the
character set dramatically and have a good idea as to the
likelyhood of the password exceeding 6 characters (the
practical limit for a character set of about 25).

I'm interested in the outcome of your test. I'm skeptical
because, beyond testing the dictionary against the
password, I believe the only recourse is brute force. I
understand commercial operators use super computers. I
havn't heard of anyone hacking file protection with a hex
editor yet.

If I'm doing the math right, for a 50 character set, a 7
character password has over 780 billion possible
combinations. Considering that my computer can test
900,000 combinations per hour, then, as I have it, to test
all 780 billion would take nearly 100 years. If you
consider lower case, upper case and puntuation, a 50
character set is actually small.

Interested in the outcome.

Regards,
Greg
 
M

mudraker

Sorry Greg I did mean to address this to Derrick

With your comments about possible cominations is why I was asking i
Derrick had any idea of the password length to judge if it was wort
while to attempt a crac
 
Top