破解Excel密码保护
点击“Office”按钮,再选择“另存为”:
在弹出的“另存为”对话框中,单击左下角的“工具”按钮,选择“常规选项”:
弹出“常规选项”对话框,可以看到,当然有星号显示密码:
将这个星号显示的密码清除,再单击“确定”即可:
Excel文件虽然能打开,能编辑,一些工作簿却因为有了“保护工作表”密码而无法编辑。可以用如下代码进行解除密码保护。
Sub PasswordBreaker()
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
上述代码在Excel 2013上也是有效的
推荐阅读
-
phpexcel导出excel文件,用IE8无法下载,另存为对话框一闪而过,该如何解决
-
安装john并利用john破解linux密码
-
一个暴力破解MSSQL用户密码的ASP程序
-
PHPExcel读取EXCEL中的图片并保存到本地的方法_PHP
-
OA (ssh) 基本实现(poi 生成 Excel , struts2动态下载 mysql数据
-
国外执法机构演示iPhone/Android手机破解工具:轻松绕过锁屏提取各种信息
-
详解Python结合Genetic Algorithm算法破解网易易盾拼图验证
-
ASP.NET MVC NPOI导入Excel DataTable批量导入到数据库
-
“互联网+”破解特色农产品的销售困难
-
PHPExcel导出数据到excel