MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 26th, 2002, 01:55 PM   #1
scottbro
New Member
 
Join Date: Feb 2002
Posts: 11
Default

Any ideas as to how I can do this? Either via VBA of some other means? Thanks!
scottbro is offline   Reply With Quote
Old Apr 26th, 2002, 02:00 PM   #2
croweld89
New Member
 
Join Date: Mar 2002
Posts: 34
Default

um.... Hello, Mr. Gates. I know your a busy man with this anti trust suit, but could you set your priority team to work on my computer please?

I think the alternative to asking Mr. Gates for personal help would be to copy and paste the data to a new sheet.

Good Luck
-Dave
croweld89 is offline   Reply With Quote
Old Apr 26th, 2002, 02:03 PM   #3
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

Is this for the entire workbook, or sheet level? If this is for the entire workbook, you'll probably have to pay a fee to get it unlocked by some companies that can do it. I think Dave Hawley (a MrExcel regular) does it at OzGrid.

http://www.microsoftexceltraining.com/

If it is worksheet level, run the following code

'----------------
Sub PasswordBreaker()
'by Bob McCormick on NG: microsoft.public.excel.misc
'on 22 May 2001.

'Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer

On Error Resume Next
For i = 65 To 66
For j = 65 To 66
For k = 65 To 66
For l = 65 To 66
For m = 65 To 66
For i1 = 65 To 66
For i2 = 65 To 66
For i3 = 65 To 66
For i4 = 65 To 66
For i5 = 65 To 66
For i6 = 65 To 66
For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) _
& Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox "One usable password is " & Chr(i) & Chr(j) _
& Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) _
& Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
End Sub
'---------------------

Bye,
Jay
Jay Petrulis is offline   Reply With Quote
Old Apr 26th, 2002, 02:10 PM   #4
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

Hey Jay,

I've used that sheet cracker code before. Do you know why it works? I have no clue. I know that Bob said it exploited a weakness in the security, but I'd be interested to see if there was anything I could read about it.
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Apr 26th, 2002, 02:27 PM   #5
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

Hi Mark,

I cannot find the original discussion I read regarding this. I know Eero Tibar posted a routine that does the same thing, only this was better, I believe.

I think there was another routine, too, and the author was really shocked (he used the term 'pathetic' numerous times) to learn how easy it was to break the security.

One of the responses in that post asked something like, "...my password is "MrExCel" and the code said "AAAAAAAEE" would open it, what gives?"

The response was "any key that fits the lock can open it" or similar analogy, possibly even "the door was locked, so I tried the window." He gave some real details, but it was beyond me.

I will try to find the discussion and post back.

Bye,
Jay
Jay Petrulis is offline   Reply With Quote
Old Apr 26th, 2002, 03:08 PM   #6
Joe Was
MrExcel MVP
 
Joe Was's Avatar
 
Join Date: Feb 2002
Location: Central Florida, USA
Posts: 7,541
Default

I may be wrong, but I think the code below works by finding the number of carry bits used to hold the password, setting each found carry bit and setting them as active in the code, then using simple substitution, finds the last character. It then code builds a working password based on the number of characters the original password has. The resulting password is composed of the number of carry bits contained in the original, the actual characters of which do not matter only the number of set carry bits, and the last character of the password, which may or may not be the actual caracter, only a character which does not set the last carry bit.

Sub PasswordBreaker()
'by Bob McCormick on NG microsoft.public.excel.misc on 22 May 2001.
'Breaks worksheet password protection.
'Note This code will not tell you what the password was (except by accident).
'What it does is exploit the poor encryption algorithm that is used for sheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66
For j = 65 To 66
For k = 65 To 66
For l = 65 To 66
For m = 65 To 66
For i1 = 65 To 66
For i2 = 65 To 66
For i3 = 65 To 66
For i4 = 65 To 66
For i5 = 65 To 66
For i6 = 65 To 66
For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Application.StatusBar = Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox "One useable password is " & Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Application.StatusBar = False
Exit Sub
End If
Next n
Next i6
Next i5
Next i4
Next i3
Next i2
Next i1
Next m
Next l
Next k
Next j
Next i
Application.StatusBar = False

End Sub


Joe Was is offline   Reply With Quote
Old Apr 26th, 2002, 03:19 PM   #7
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

Thanks JSW. (I bet you haven't looked for Jet Set Willy yet)

So, basically, it's a brute force method to find the carry bits and all that other stuff.

Is this necessarily a weakness in design or was it just an old, cheap way to protect a sheet without too much work on MS's behalf? I mean only talking a couple of minutes at most for using this code. Even if you made your password "ZZZZZZZZZZ".

Is this a case of just enough protection to deter the majority of people? (Incidentally, when I used this code it was to look some of our accountants spreadsheets "hidden" columns, just to see how they cheated us out of project funds. )
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Apr 26th, 2002, 03:30 PM   #8
Joe Was
MrExcel MVP
 
Joe Was's Avatar
 
Join Date: Feb 2002
Location: Central Florida, USA
Posts: 7,541
Default

Mark,
The best I can tell you are right. It has more to do with how the memory was used for the password rather than the actual password.

At work I cannot use the net for any thing not deemed pass-worthy by the "Smart Filter" attached to our firewall. At home I have so little time that I have not had fee time to seach yet. But, I will eventually. JSW
Joe Was is offline   Reply With Quote
Old Apr 26th, 2002, 03:47 PM   #9
NateO
Legend
 
NateO's Avatar
 
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
Default

Joe, ever put your firewall to these series of tests:

http://www.space.net.au/~thomas/quickbrowse.html

And if that doesn't work, here's a link of 5 mirror sites!

http://anonbrowse.cjb.net/



_________________
Cheers, NateO

[ This Message was edited by: NateO on 2002-04-26 14:55 ]
NateO is offline   Reply With Quote
Old Apr 26th, 2002, 04:05 PM   #10
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

o will say little but you dont nned passwords to open things like no key to open lock bent coat hanger will sometimes do.

Excel is like a colinder (full of wholes) so the math (i cant spell... Mark help me .... Ar Ar o e m af it call speak tem letters to get der word.. its means math so its a case of adding and finding the produceinger of the password but warn JACK might also except Mark this is as the code is converted into gobbledoog thats the arrow.. bit i cant spells. its change the data so sometimes PW like ^^6gaf84j8974 2 are cracked by 3856h8464j4888 if you get me. but Jack will reproduce Jack... but simerly Mark can be a suggestion to the PW.. kinda like any key wont open door but this one will, its so close twist it shake it OPEN.

16 bit is simple nowas day,128 dual encryption on random arramathatical is reqd @strong box@ PW

do you make sence of that...

so the code attacks the PW by holding the sections of PW in a way that allows capture of the charcter, what else can it be a character be shape or number all are same ie can be replicated, so way a signature is unique but not random

Chris D will love this no such fink as random i say as you can predict it or it possible to predict not that you can dead spot it but so the passord stutters and gives up letter by letter so its never secure.

the trick is to allow part crack theis is what this code does.. ,....

help any.... i wont get into the techi stuff or tricky stuff, as dont fink your be intrested...


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes