{"id":1284,"date":"2015-01-14T13:27:21","date_gmt":"2015-01-14T11:27:21","guid":{"rendered":"http:\/\/vady.kiev.ua\/tweets\/?p=1284"},"modified":"2015-01-14T13:28:30","modified_gmt":"2015-01-14T11:28:30","slug":"how-to-unprotect-an-excel-sheet-without-password","status":"publish","type":"post","link":"https:\/\/vady.kiev.ua\/tweets\/1284","title":{"rendered":"How to Unprotect an excel sheet without password"},"content":{"rendered":"<p><code>Sub PasswordBreaker()<br \/>\n  'Author unknown but submitted by brettdj of www.experts-exchange.com<\/p>\n<p>  Dim i As Integer, j As Integer, k As Integer<br \/>\n  Dim l As Integer, m As Integer, n As Integer<br \/>\n  Dim i1 As Integer, i2 As Integer, i3 As Integer<br \/>\n  Dim i4 As Integer, i5 As Integer, i6 As Integer<br \/>\n  On Error Resume Next<br \/>\n  For i = 65 To 66: For j = 65 To 66: For k = 65 To 66<br \/>\n  For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66<br \/>\n  For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66<br \/>\n  For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126<\/p>\n<p> ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _<br \/>\n      Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _<br \/>\n      Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)<br \/>\n  If ActiveSheet.ProtectContents = False Then<br \/>\n      MsgBox \"One usable password is \" & Chr(i) & Chr(j) & _<br \/>\n          Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _<br \/>\n          Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)<br \/>\n   ActiveWorkbook.Sheets(1).Select<br \/>\n   Range(\"a1\").FormulaR1C1 = Chr(i) & Chr(j) & _<br \/>\n          Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _<br \/>\n          Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)<br \/>\n       Exit Sub<br \/>\n  End If<br \/>\n  Next: Next: Next: Next: Next: Next<br \/>\n  Next: Next: Next: Next: Next: Next<br \/>\nEnd Sub<\/code><\/p>\n<p>\u2014 <a href=\"http:\/\/superuser.com\/a\/45869\" title=\"How to Unprotect an excel sheet without password\" target=\"_blank\">Johan<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You cannot recover THE password, but you can unprotect the sheet(The hash used to protect the sheet is quite prone to collisions in the old versions of excel, so generating a collision is quite fast here). <\/p>\n<p>There are scripts availale the will brute force open your sheet within a very short amount of time. <\/p>\n<p>Take a look here for example: http:\/\/www.theofficeexperts.com\/VBASamples\/Excel02.htm<\/p>\n<p>Here&#8217;s the code:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[371,367,368,370,369,372],"class_list":["post-1284","post","type-post","status-publish","format-standard","hentry","category-misc","tag-brute-force","tag-excel","tag-password","tag-unlock","tag-unprotect","tag-vba"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7bIIX-kI","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/comments?post=1284"}],"version-history":[{"count":2,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":1286,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1284\/revisions\/1286"}],"wp:attachment":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/media?parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/categories?post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/tags?post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}