收藏 分销(赏)

【会计实操经验】EXCEL工作表保护密码破解.pdf

上传人:二*** 文档编号:4486371 上传时间:2024-09-24 格式:PDF 页数:10 大小:371KB
下载 相关 举报
【会计实操经验】EXCEL工作表保护密码破解.pdf_第1页
第1页 / 共10页
亲,该文档总共10页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、只分享有价值的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!【会计实操经验】【会计实操经验】EXCELEXCEL 工作表保护密码破解工作表保护密码破解 方法:1打开文件 2工具-宏-录制新宏-输入名字如:aa 3停止录制(这样得到一个空宏)4工具-宏-宏,选 aa,点编辑按钮 5删除窗口中的所有字符(只有几个),替换为下面的内容:(复制吧)6关闭编辑窗口 7工具-宏-宏,选 AllInternalPasswords,运行,确定两次,等 2 分钟,再确定.OK,没有密码了!内容如下:Public Sub AllInternalPasswords()Breaks worksheet

2、 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 o

3、ne 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

4、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“&

5、;_ “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.Dont stuff up crucial formulas“&_ 只分享有价值

6、的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!“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 Const MSGNOPWORDS2 As String=“There

7、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 time.”&DBLSPACE&“Amount of time“&_ “depends on how many different pa

8、sswords,the“&_ “passwords,and your computers specification.”&DBLSPACE&_ “Just be patient!Make me a coffee!”&AUTHORS&VERSION Const MSGPWORDFOUND1 As String=“You had a Worksheet“&_ 只分享有价值的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!“Structure or Windows Password set.”&DBLSPACE&_ “Th

9、e password found was:“&DBLSPACE&“$”&DBLSPACE&_ “Note it down for potential future use in other workbooks by“&_ “the same person who set this password.”&DBLSPACE&_ “Now to check and clear other passwords.”&AUTHORS&VERSION Const MSGPWORDFOUND2 As String=“You had a W

10、orksheet“&_ “password set.”&DBLSPACE&“The password found was:“&_ DBLSPACE&“$”&DBLSPACE&“Note it down for potential“&_ “future use in other workbooks by same person who“&_ “set this password.”&DBLSPACE&“Now to check and clear“&_ “other passwords.”&A

11、UTHORS&VERSION Const MSGONLYONE As String=“Only structure/windows“&_ 只分享有价值的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!“protected with the password that was just found.”&_ ALLCLEAR&AUTHORS&VERSION&REPBACK Dim w1 As Worksheet,w2 As Worksheet Dim i As Integer,j As Integer,k As Integer,l As

12、 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=Fa

13、lse 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 只分享有价值的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!MsgBox MSGNOPWORDS2,vbInformation,HEADER

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

15、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

16、)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 M

17、SGONLYONE,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

18、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:

19、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(

20、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.next

21、s 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,vbInformation,HEADER End Sub 会计是一门很实用的学科,从古至今经历漫长时间的发展,从原来单一的以记账和核账为主要工作,发展到现在衍生出来包括预测、决策、管理等功能。会计是一门很基础的学科,无论你是企业老板还是投资者,无论你是税务局还是银行,任何涉及到资金决策(有些可能不涉及资金)的部门都至少要懂得些会计知识。而我们作为专业人员不仅仅是把会计当作“敲门砖”也就是说,不仅仅是获得了资格或者能力就结束了,社会是不断向前进步的,具体到我们的工作中也是会不断发展的,我们学到的东西不可能会一直有用,对于已经舍弃的东西需要我们学习新的知识来替换它,这就是只分享有价值的知识点,本文由梁博会计学堂精心收编,大家可以下载下来好好看看!专业能力的保持。因此,那些只把会计当门砖的人,到最后是很难在岗位上立足的。希望大家多多不断的补充自己的专业知识。

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 管理财经 > 财经会计

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服