EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码.doc

上传人:可****阿 文档编号:30696778 上传时间:2022-08-06 格式:DOC 页数:6 大小:33.04KB
返回 下载 相关 举报
EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码.doc_第1页
第1页 / 共6页
EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码.doc_第2页
第2页 / 共6页
点击查看更多>>
资源描述

《EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码.doc》由会员分享,可在线阅读,更多相关《EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码.doc(6页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、EXCEL工作表保护密码破解和如何破解VBAProject属性的保护密码如果你是要破解EXCEL工作表保护密码,请按“EXCEL工作表保护密码破解”操作,若在录制宏时,要求输入VBAProject密码,请先按后面的“如何破解VBAProject属性的保护密码”破解VBAProject密码,然后再按“EXCEL工作表保护密码破解”操作即可。如果你是要破解VBAProject属性的保护密码,请直接按后面的“如何破解VBAProject属性的保护密码”的步骤操作。文档收集自网络,仅用于个人学习过程可能有些繁琐,但是本人亲测可行,祝你成功!EXCEL工作表保护密码破解方法: 1打开文件 2工具-宏-录

2、制新宏-输入名字如:aa 3停止录制(这样得到一个空宏) 4工具-宏-宏,选aa,点编辑按钮 5删除窗口中的所有字符(只有几个),替换为下面的内容:(复制吧) 6关闭编辑窗口 7工具-宏-宏,选AllInternalPasswords,运行,确定两次,等2分钟,再确定.OK,没有密码了! 文档收集自网络,仅用于个人学习内容如下: Public Sub AllInternalPasswords() Breaks worksheet and workbook structure passwords. Bob McCormick 文档收集自网络,仅用于个人学习 probably originator

3、 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 文档收集自网络,仅用于个人学习 eliminat

4、e 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 & _ Norman Harker and JE McGimpsey Const HEADER As String = AllInternalPasswords

5、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 workbo

6、ok 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 reaso

7、n. Dont stuff up crucial formulas & _ 文档收集自网络,仅用于个人学习or data. & DBLSPACE & Access and use of some data & _ 文档收集自网络,仅用于个人学习may be an offense. If in doubt, dont. Const MSGNOPWORDS1 As String = There were no passwords on & _ 文档收集自网络,仅用于个人学习sheets, or workbook structure or windows. & AUTHORS & VERSION 文

8、档收集自网络,仅用于个人学习Const MSGNOPWORDS2 As String = There was no protection to & _ 文档收集自网络,仅用于个人学习workbook structure or windows. & DBLSPACE & _ Proceeding to unprotect sheets. & AUTHORS & VERSION 文档收集自网络,仅用于个人学习Const MSGTAKETIME As String = After pressing OK button this & _ 文档收集自网络,仅用于个人学习will take some ti

9、me. & DBLSPACE & Amount of time & _ 文档收集自网络,仅用于个人学习depends on how many different passwords, the & _ 文档收集自网络,仅用于个人学习passwords, and your computers specification. & DBLSPACE & _ 文档收集自网络,仅用于个人学习Just be patient! Make me a coffee! & AUTHORS & VERSION 文档收集自网络,仅用于个人学习Const MSGPWORDFOUND1 As String = You had

10、 a Worksheet & _ 文档收集自网络,仅用于个人学习Structure or Windows Password set. & DBLSPACE & _ 文档收集自网络,仅用于个人学习The password found was: & DBLSPACE & $ & DBLSPACE & _ 文档收集自网络,仅用于个人学习Note it down for potential future use in other workbooks by & _ 文档收集自网络,仅用于个人学习the same person who set this password. & DBLSPACE & _ 文

11、档收集自网络,仅用于个人学习Now to check and clear other passwords. & AUTHORS & VERSION 文档收集自网络,仅用于个人学习Const MSGPWORDFOUND2 As String = You had a Worksheet & _ 文档收集自网络,仅用于个人学习password set. & DBLSPACE & The password found was: & _ 文档收集自网络,仅用于个人学习DBLSPACE & $ & DBLSPACE & Note it down for potential & _ 文档收集自网络,仅用于个

12、人学习future use in other workbooks by same person who & _ 文档收集自网络,仅用于个人学习set this password. & DBLSPACE & Now to check and clear & _ 文档收集自网络,仅用于个人学习other passwords. & AUTHORS & VERSION Const MSGONLYONE As String = Only structure / windows & _ 文档收集自网络,仅用于个人学习protected with the password that was just fou

13、nd. & _ 文档收集自网络,仅用于个人学习ALLCLEAR & AUTHORS & VERSION & REPBACK 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

14、 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 N

15、ot WinTag Then MsgBox MSGNOPWORDS1, vbInformation, HEADER Exit Sub End If MsgBox MSGTAKETIME, vbInformation, HEADER If Not WinTag Then MsgBox MSGNOPWORDS2, vbInformation, HEADER 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

16、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) & _

17、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), vbIn

18、formation, 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 Worksh

19、eets 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 Resum

20、e 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 文档收集自网络,仅用于个

21、人学习.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 Applicati

22、on.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

23、GoTo 0 End If End With Next w1 End If MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER 文档收集自网络,仅用于个人学习End Sub如何破解VBAProject属性的保护密码1、打开任一excel文件2、在宏里粘贴下面的代码3、运行下面的代码4、选择需要破解密码的文件5、点击“打开”移除VBA编码保护Sub MoveProtect()Dim FileName As StringFileName = Application.GetOpenFilename(Excel文件(

24、*.xls & *.xla&*.xlsx),*.xls;*.xla;*.xlsx, , VBA破解)文档收集自网络,仅用于个人学习If FileName = CStr(False) Then Exit SubElse VBAPassword FileName, FalseEnd IfEnd Sub设置VBA编码保护Sub SetProtect()Dim FileName As StringFileName = Application.GetOpenFilename(Excel文件(*.xls & *.xla&*.xlsx),*.xls;*.xla;*.xlsx, , VBA破解)文档收集自网络

25、,仅用于个人学习If FileName = CStr(False) Then Exit SubElse VBAPassword FileName, TrueEnd IfEnd SubPrivate Function VBAPassword(FileName As String, Optional Protect As Boolean = False)文档收集自网络,仅用于个人学习 If Dir(FileName) = Then Exit Function Else FileCopy FileName, FileName & .bak End If Dim GetData As String *

26、 5 Open FileName For Binary As #1 Dim CMGs As Long Dim DPBo As Long For i = 1 To LOF(1) Get #1, i, GetData If GetData = CMG= Then CMGs = i If GetData = Host Then DPBo = i - 2: Exit For Next If CMGs = 0 Then MsgBox 请先对VBA编码设置一个保护密码., 32, 提示 Exit Function End If If Protect = False Then Dim St As Strin

27、g * 2 Dim s20 As String * 1 取得一个0D0A十六进制字串 Get #1, CMGs - 2, St 取得一个20十六制字串 Get #1, DPBo + 16, s20 替换加密部份机码 For i = CMGs To DPBo Step 2 Put #1, i, St Next 加入不配对符号 If (DPBo - CMGs) Mod 2 0 Then Put #1, DPBo + 1, s20 End If MsgBox 文件解密成功., 32, 提示 Else Dim MMs As String * 5 MMs = DPB= Put #1, CMGs, MMs MsgBox 对文件特殊加密成功., 32, 提示 End If Close #1End Function6 / 6

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 应用文书 > 工作计划

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com