Excel 2013 工作表保护密码破解

news/2024/11/29 1:37:38/

温馨提示: 此方法不适用于 一打开就要输入密码 才能查看的表格

之前整理了下 Excel 2013 的工作表保护密码破解办法

今天无意中又用到了,就分享出来吧

Tips:如果你想彻底加密你的工作表,把它压缩到RAR/7z压缩包里,设个16位的密码,就基本破解不了了。


QQ截图20150407222247.png

今天我叫baojun弄了个游戏物品价格表发给我,

[迟来的愚人节]:不知怎么他给我弄加密了,还叫我破解密码= =

那好吧,反正有空,咱们就来破解下 233


QQ截图20150407222729.png

1.对着工具栏空白的地方右键,选“自定义功能区(R)...” 


QQ截图20150407222804.png

2.找到“开发工具”勾选并确定


QQ截图20150407222831.png

3.你会发现工具栏就多了栏“开发工具”,进去找到“录制宏”


QQ截图20150407222844.png

4.记得把它创建在“个人宏工作簿”=-=


QQ截图20150407222858.png

5.创建好后什么都不用动,直接“停止录制”


QQ截图20150407222912.png

6.点击 “Visual Basic”


QQ截图20150407223110.png

7.在左边导航栏找到“模块一”,并双击打开


QQ截图20150407223250.png

8.删掉里面所有内容,把破解代码(结尾给出)替换进去,并保存(切记)


QQ截图20150407223312.png

9.关掉刚刚的“Visual Basic”窗口,点击“宏”


QQ截图20150407223341.png

10.点击刚刚导入的破解宏,并执行(打开了多个工作簿可在位置选择需要的)


QQ截图20150407223353.png

11.开始破解,“确定”


QQ截图20150407223400.png

12.表一密码已破解


QQ截图20150407223414.png

13.表二密码已破解


QQ截图20150407223422.png

14.至此,密码已经全部破解完成


QQ截图20150407223514.png

内容已经可以正常编辑了,教程结束

Tips:破解中会卡段时间(Excel 无响应)此属正常现象,稍等一下即可


附:Excel 工作表保护密码破解宏 源码

BASIC
Public Sub 工作表保护密码破解()
Const DBLSPACE As String = vbNewLine & vbNewLine
Const AUTHORS As String = DBLSPACE & vbNewLine & _
"作者:McCormick   JE McGimpsey "
Const HEADER As String = "工作表保护密码破解"
Const VERSION As String = DBLSPACE & "版本 Version 1.1.1"
Const REPBACK As String = DBLSPACE & ""
Const ZHENGLI As String = DBLSPACE & "                        FGHRSH 整理"
Const ALLCLEAR As String = DBLSPACE & "该工作簿中的工作表密码保护已全部解除!!" & DBLSPACE & "请记得另保存" _
& DBLSPACE & "注意:不要用在不当地方,要尊重他人的劳动成果!"
Const MSGNOPWORDS1 As String = "该文件工作表中没有加密"
Const MSGNOPWORDS2 As String = "该文件工作表中没有加密2"
Const MSGTAKETIME As String = "解密需花费一定时间,请耐心等候!" & DBLSPACE & "按确定开始破解!"
Const MSGPWORDFOUND1 As String = "密码重新组合为:" & DBLSPACE & "$$" & DBLSPACE & _
"如果该文件工作表有不同密码,将搜索下一组密码并修改清除"
Const MSGPWORDFOUND2 As String = "密码重新组合为:" & DBLSPACE & "$$" & DBLSPACE & _
"如果该文件工作表有不同密码,将搜索下一组密码并解除"
Const MSGONLYONE As String = "确保为唯一的?"
Dim w1 As Worksheet, w2 As Worksheet
Dim i As Integer, j As Integer, k As Integer, l As Integer
Dim m As Integer, n As Integer, i1 As Integer, i2 As Integer
Dim i3 As Integer, i4 As Integer, i5 As Integer, i6 As Integer
Dim PWord1 As String
Dim ShTag As Boolean, WinTag As Boolean
Application.ScreenUpdating = False
With ActiveWorkbook
WinTag = .ProtectStructure Or .ProtectWindows
End With
ShTag = False
For Each w1 In Worksheets
ShTag = ShTag Or w1.ProtectContents
Next w1
If Not ShTag And Not WinTag Then
MsgBox MSGNOPWORDS1, vbInformation, HEADER
Exit Sub
End If
MsgBox MSGTAKETIME, vbInformation, HEADER
If Not WinTag Then
Else
On Error Resume Next
Do 'dummy do loop
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
With ActiveWorkbook
.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 .ProtectStructure = False And _
.ProtectWindows = False Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND1, _
"$$", PWord1), vbInformation, HEADER
Exit Do 'Bypass all for...nexts
End If
End With
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
If WinTag And Not ShTag Then
MsgBox MSGONLYONE, vbInformation, HEADER
Exit Sub
End If
On Error Resume Next
For Each w1 In Worksheets
'Attempt clearance with PWord1
w1.Unprotect PWord1
Next w1
On Error GoTo 0
ShTag = False
For Each w1 In Worksheets
'Checks for all clear ShTag triggered to 1 if not.
ShTag = ShTag Or w1.ProtectContents
Next w1
If ShTag Then
For Each w1 In Worksheets
With w1
If .ProtectContents Then
On Error Resume Next
Do 'Dummy do loop
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
.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 Not .ProtectContents Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND2, _
"$$", PWord1), vbInformation, HEADER
'leverage finding Pword by trying on other sheets
For Each w2 In Worksheets
w2.Unprotect PWord1
Next w2
Exit Do 'Bypass all for...nexts
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
End With
Next w1
End If
MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK & ZHENGLI, vbInformation, HEADER
End Sub



http://www.ppmy.cn/news/380619.html

相关文章

洞察丨挖掘游戏行为数据价值的 6 个新思路

现阶段,游戏赛道越来越难,主要表现在玩家对游戏质量的要求提高、游戏立项选择空间变小、游戏买量越来越贵且回本周期越来越长……与此同时,游戏出海势头依然强劲,难以突破重围。 可以说,几乎所有的游戏都在尽可能地朝着…

破解excel工作表保护

Excel中内置了Visual Basic,通过宏实现破解密码。 破解思路: 1、打开准备破解的Excel,视图——宏——录制宏 2、宏名随意填写,保存在当前工作簿 3、查看宏——选择我们新建的宏——编辑 4、将下面的代码替换掉原有函数&#xff…

EXCEL保护工作表破解密码

Step 1. 录制宏 Step 2. 复制粘贴替换代码 Step 3. 运行 代码: Public Sub AllInternalPasswords()Breaks worksheet and workbook structure passwords. Bob McCormickprobably originator of base code algorithm modified for coverageof workbook structure /…

报表生成器FastReport .Net用户指南:“SVG”对象

FastReport .Net是一款全功能的Windows Forms、ASP.NET和MVC报表分析解决方案,使用FastReport .NET可以创建独立于应用程序的.NET报表,同时FastReport .Net支持中文、英语等14种语言,可以让你的产品保证真正的国际性。 FastReport.NET官方版…

centos7中docker安装单机版本及对应的分布式应用中心【亲测可用】

第一部分:安装docker篇 1.安装docker,sudo为以管理员身份运行,如当前登录为root用户,加上也不影响 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-…

公司普通启动VR/AR软件开发虚拟场景游戏

随着元宇宙技术的不断革新,VR作为一种新兴技术,正在迅速普及。VR软件开发技术将用户沉浸到虚拟世界中,让人们可以身临其境地体验一些事物,如元宇宙游戏、商圈、展会、旅游等。而VR虚拟场景的开发,则是实现这一目标的重…

UVM中run phase和main phase区别

run_phase和main phase都是task phase,且是并行运行的,后者称为动态运行(run-time)的phase。如果想执行一些耗费时间的代码,那么要在此phase下任意一个component中至少提起一次objection,这个结论只适用于12个run-time的phase。对…

C. Phase Shift(模拟/链表)

题目 题意 给定小写字符组成的字符串s,它经过加密后转化为t。 加密规则为,选取一个由26个小写字符组成 的字符环;对于每个字符,它加密后,会转化为它在字符环的下一个字符。 现给定加密后的字符串t,问如何…