摘要:
破解Excel密码的方法有很多种,其中最常见的是使用密码字典去尝试解读密码,如果解读成功,即为破解。除此之外,我们还可以使用宏命令来破解,如果对此不熟悉,可以继续阅读下文中的方法。在操作之前,请确保您已获得相关授权。
使用宏命令破解Excel密码的方法如下:
打开加密的Excel文件,按下快捷命令Alt+F8,打开宏命令窗口。
在宏名一栏中随意输入一个名字,例如“knife”。
创建按钮会亮起,点击创建,我们就可以来到新的界面。
在编辑框内删除原有的Sub knife( )End Sub代码,然后将下面的代码复制粘贴上去:
Option Explicit
Public Sub AllInternalPasswords()
' Breaks worksheet and workbook structure passwords. Bob McCormick
' probably originator of base code algorithm modified for coverage
' of workbook structure / windows passwords and for multiple passwords
'
' Norman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1)
' Modified 2003-Apr-04 by JEM: All msgs to constants, and
' eliminate one Exit Sub (Version 1.1.1)
' Reveals hashed passwords NOT original passwords
Const DBLSPACE As String = vbNewLine & vbNewLine
Const AUTHORS As String = DBLSPACE & vbNewLine & _
"Adapted from Bob McCormick base code by"& vbNewLine & _
"Norman Harker and JE McGimpsey"
Const HEADER As String ="AllInternalPasswords User Message"
Const VERSION As String = DBLSPACE &"Version 1.1.1 2003-Apr-04"
Const REPBACK As String = DBLSPACE &"Please report failure to the microsoft.public.excel.programming newsgroup."
Const ALLCLEAR As String = DBLSPACE &"The workbook should now be free of all password protection, so make sure you:"& _
DBLSPACE &"SAVE IT NOW!"& DBLSPACE &"and also"& _
DBLSPACE &"BACKUP!, BACKUP!!, BACKUP!!!"& DBLSPACE &"Also, remember that the password was put there for a reason. Don't stuff up crucial formulas or data."& _
DBLSPACE &"Access and use of some data may be an offense. If in doubt, don't."
End Sub
代码复制完成后,点击创建按钮即可完成操作。此方法将破解Excel文件中所有的密码保护,包括工作表和工作簿结构的密码。破解完成后,请务必备份文件并确保自己有权限访问和使用其中的数据。
标签:如何破解excel密码