电脑知识|欧美黑人一区二区三区|软件|欧美黑人一级爽快片淫片高清|系统|欧美黑人狂野猛交老妇|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网

您的位置:首頁技術(shù)文章
文章詳情頁

Excel有密碼怎么破解?Excel密碼破解方法介紹

瀏覽:112日期:2022-08-30 11:32:47

Excel密碼破解方法有很多,最常見的便是使用密碼字典去解讀,解讀成功即為破解,而本次使用的是宏命令,若是你還在一籌莫展,可以看看下文中的方法,因?yàn)樯婕癊xcel重要文件,若是別人的東西,請獲取授權(quán)!

Excel密碼破解方法介紹:

1、進(jìn)入加密的 Excel 用快捷命令A(yù)lt+F8 打開宏命令 窗口。

Excel有密碼怎么破解?Excel密碼破解方法介紹

2、在宏名一欄中 輸入宏的名字 隨意健入即可。

Excel有密碼怎么破解?Excel密碼破解方法介紹

3、輸入完宏名后 創(chuàng)建的按鈕就亮了 點(diǎn)擊創(chuàng)建 我們就可以來到 新的界面了。

Excel有密碼怎么破解?Excel密碼破解方法介紹

4、將編輯框內(nèi)的Sub knife( )End Sub刪除 將下列代碼 復(fù)制 上去。

01Option Explicit02Public Sub AllInternalPasswords()03' Breaks worksheet and workbook structure passwords. Bob McCormick04' probably originator of base code algorithm modified for coverage05' of workbook structure / windows passwords and for multiple passwords06'07' Norman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1)08' Modified 2003-Apr-04 by JEM: All msgs to constants, and09' eliminate one Exit Sub (Version 1.1.1)10' Reveals hashed passwords NOT original passwords11Const DBLSPACE As String = vbNewLine & vbNewLine12Const AUTHORS As String = DBLSPACE & vbNewLine & _13"Adapted from Bob McCormick base code by" & _14"Norman Harker and JE McGimpsey"15Const HEADER As String = "AllInternalPasswords User Message"16Const VERSION As String = DBLSPACE & "Version 1.1.1 2003-Apr-04"17Const REPBACK As String = DBLSPACE & "Please report failure " & _18"to the microsoft.public.excel.programming newsgroup."19Const ALLCLEAR As String = DBLSPACE & "The workbook should " & _20"now be free of all password protection, so make sure you:" & _21DBLSPACE & "SAVE IT NOW!" & DBLSPACE & "and also" & _22DBLSPACE & "BACKUP!, BACKUP!!, BACKUP!!!" & _23DBLSPACE & "Also, remember that the password was " & _24"put there for a reason. Don't stuff up crucial formulas " & _25"or data." & DBLSPACE & "Access and use of some data " & _26"may be an offense. If in doubt, don't."27Const MSGNOPWORDS1 As String = "There were no passwords on " & _28"sheets, or workbook structure or windows." & AUTHORS & VERSION29Const MSGNOPWORDS2 As String = "There was no protection to " & _30"workbook structure or windows." & DBLSPACE & _31"Proceeding to unprotect sheets." & AUTHORS & VERSION32Const MSGTAKETIME As String = "After pressing OK button this " & _33"will take some time." & DBLSPACE & "Amount of time " & _34"depends on how many different passwords, the " & _35"passwords, and your computer's specification." & DBLSPACE & _36"Just be patient! Make me a coffee!" & AUTHORS & VERSION37Const MSGPWORDFOUND1 As String = "You had a Worksheet " & _38"Structure or Windows Password set." & DBLSPACE & _39"The password found was: " & DBLSPACE & "$$" & DBLSPACE & _40"Note it down for potential future use in other workbooks by " & _41"the same person who set this password." & DBLSPACE & _42"Now to check and clear other passwords." & AUTHORS & VERSION43Const MSGPWORDFOUND2 As String = "You had a Worksheet " & _44"password set." & DBLSPACE & "The password found was: " & _45DBLSPACE & "$$" & DBLSPACE & "Note it down for potential " & _46"future use in other workbooks by same person who " & _47"set this password." & DBLSPACE & "Now to check and clear " & _48"other passwords." & AUTHORS & VERSION49Const MSGONLYONE As String = "Only structure / windows " & _50"protected with the password that was just found." & _51ALLCLEAR & AUTHORS & VERSION & REPBACK52Dim w1 As Worksheet, w2 As Worksheet53Dim i As Integer, j As Integer, k As Integer, l As Integer54Dim m As Integer, n As Integer, i1 As Integer, i2 As Integer55Dim i3 As Integer, i4 As Integer, i5 As Integer, i6 As Integer56Dim PWord1 As String57Dim ShTag As Boolean, WinTag As Boolean58Application.ScreenUpdating = False59With ActiveWorkbook60WinTag = .ProtectStructure Or .ProtectWindows61End With62ShTag = False63For Each w1 In Worksheets64ShTag = ShTag Or w1.ProtectContents65Next w166If Not ShTag And Not WinTag Then67MsgBox MSGNOPWORDS1, vbInformation, HEADER68Exit Sub69End If70MsgBox MSGTAKETIME, vbInformation, HEADER71If Not WinTag Then72MsgBox MSGNOPWORDS2, vbInformation, HEADER73Else74On Error Resume Next75Do 'dummy do loop76For i = 65 To 66: For j = 65 To 66: For k = 65 To 6677For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 6678For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 6679For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 12680With ActiveWorkbook81.Unprotect Chr(i) & Chr(j) & Chr(k) & _82Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _83Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)84If .ProtectStructure = False And _85.ProtectWindows = False Then86PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _87Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _88Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)89MsgBox Application.Substitute(MSGPWORDFOUND1, _90"$$", PWord1), vbInformation, HEADER91Exit Do 'Bypass all for...nexts92End If93End With94Next: Next: Next: Next: Next: Next95Next: Next: Next: Next: Next: Next96Loop Until True97On Error GoTo 098End If99If WinTag And Not ShTag Then100MsgBox MSGONLYONE, vbInformation, HEADER101Exit Sub102End If103On Error Resume Next104For Each w1 In Worksheets105'Attempt clearance with PWord1106w1.Unprotect PWord1107Next w1108On Error GoTo 0109ShTag = False110For Each w1 In Worksheets111'Checks for all clear ShTag triggered to 1 if not.112ShTag = ShTag Or w1.ProtectContents113Next w1114If ShTag Then115For Each w1 In Worksheets116With w1117If .ProtectContents Then118On Error Resume Next119Do 'Dummy do loop120For i = 65 To 66: For j = 65 To 66: For k = 65 To 66121For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66122For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66123For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126124.Unprotect Chr(i) & Chr(j) & Chr(k) & _125Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _126Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)127If Not .ProtectContents Then128PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _129Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _130Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)131MsgBox Application.Substitute(MSGPWORDFOUND2, _132"$$", PWord1), vbInformation, HEADER133'leverage finding Pword by trying on other sheets134For Each w2 In Worksheets135w2.Unprotect PWord1136Next w2137Exit Do 'Bypass all for...nexts138End If139Next: Next: Next: Next: Next: Next140Next: Next: Next: Next: Next: Next141Loop Until True142On Error GoTo 0143End If144End With145Next w1146End If147MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER148End Sub復(fù)制代碼Option ExplicitPublic 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 passwordsConst DBLSPACE As String = vbNewLine & vbNewLineConst AUTHORS As String = DBLSPACE & vbNewLine & _"Adapted from Bob McCormick base code by" & _"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."Const MSGNOPWORDS1 As String = "There were no passwords on " & _"sheets, or workbook structure or windows." & AUTHORS & VERSIONConst MSGNOPWORDS2 As String = "There was no protection to " & _"workbook structure or windows." & DBLSPACE & _"Proceeding to unprotect sheets." & AUTHORS & VERSIONConst MSGTAKETIME As String = "After pressing OK button this " & _"will take some time." & DBLSPACE & "Amount of time " & _"depends on how many different passwords, the " & _"passwords, and your computer's specification." & DBLSPACE & _"Just be patient! Make me a coffee!" & AUTHORS & VERSIONConst MSGPWORDFOUND1 As String = "You had 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 & _"Now to check and clear other passwords." & AUTHORS & VERSIONConst MSGPWORDFOUND2 As String = "You had a Worksheet " & _"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." & AUTHORS & VERSIONConst MSGONLYONE As String = "Only structure / windows " & _"protected with the password that was just found." & _ALLCLEAR & AUTHORS & VERSION & REPBACKDim w1 As Worksheet, w2 As WorksheetDim i As Integer, j As Integer, k As Integer, l As IntegerDim m As Integer, n As Integer, i1 As Integer, i2 As IntegerDim i3 As Integer, i4 As Integer, i5 As Integer, i6 As IntegerDim PWord1 As StringDim ShTag As Boolean, WinTag As BooleanApplication.ScreenUpdating = FalseWith ActiveWorkbookWinTag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each w1 In WorksheetsShTag = ShTag Or w1.ProtectContentsNext w1If Not ShTag And Not WinTag ThenMsgBox MSGNOPWORDS1, vbInformation, HEADERExit SubEnd IfMsgBox MSGTAKETIME, vbInformation, HEADERIf Not WinTag ThenMsgBox MSGNOPWORDS2, vbInformation, HEADERElseOn Error Resume NextDo 'dummy do loopFor i = 65 To 66: For j = 65 To 66: For k = 65 To 66For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126With 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 ThenPWord1 = 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, HEADERExit Do 'Bypass all for...nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfIf WinTag And Not ShTag ThenMsgBox MSGONLYONE, vbInformation, HEADERExit SubEnd IfOn Error Resume NextFor Each w1 In Worksheets'Attempt clearance with PWord1w1.Unprotect PWord1Next w1On Error GoTo 0ShTag = FalseFor Each w1 In Worksheets'Checks for all clear ShTag triggered to 1 if not.ShTag = ShTag Or w1.ProtectContentsNext w1If ShTag ThenFor Each w1 In WorksheetsWith w1If .ProtectContents ThenOn Error Resume NextDo 'Dummy do loopFor i = 65 To 66: For j = 65 To 66: For k = 65 To 66For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66For 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 ThenPWord1 = 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 sheetsFor Each w2 In Worksheetsw2.Unprotect PWord1Next w2Exit Do 'Bypass all for...nextsEnd IfNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfEnd WithNext w1End IfMsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADEREnd Sub

5、關(guān)閉 宏窗口 回到Excel下 按ALT+F8 重新打開 宏命令窗口。

Excel有密碼怎么破解?Excel密碼破解方法介紹

6、你會發(fā)現(xiàn) 你前面輸入的宏名 變成了AllInternalPasswords 點(diǎn)擊執(zhí)行 會出現(xiàn)如下對話框 點(diǎn)確定。

Excel有密碼怎么破解?Excel密碼破解方法介紹

7、一直點(diǎn) 確定 直到不在 出現(xiàn)對話框?yàn)橹埂?/p>

Excel有密碼怎么破解?Excel密碼破解方法介紹

8、等待 一段之間之后 系統(tǒng)會 再次跳出對話框 再點(diǎn)確定 保護(hù)就破解成功了。

Excel有密碼怎么破解?Excel密碼破解方法介紹

  !!!注:以上方法僅作為參考教材,請勿用于非法途徑。

以上內(nèi)容便是Excel密碼破解方法的操作步驟,下次請用戶在設(shè)置Excel密碼的時候盡可能的簡單一些,并記錄下密碼備份,避免再次需要使用宏。

標(biāo)簽: excel
相關(guān)文章:
主站蜘蛛池模板: 磁粉制动器|张力控制器|气胀轴|伺服纠偏控制器整套厂家--台灵机电官网 | 防火板_饰面耐火板价格、厂家_品牌认准格林雅 | 全自动五线打端沾锡机,全自动裁线剥皮双头沾锡机,全自动尼龙扎带机-东莞市海文能机械设备有限公司 | 深圳希玛林顺潮眼科医院(官网)│深圳眼科医院│医保定点│香港希玛林顺潮眼科中心连锁品牌 | 排烟防火阀-消防排烟风机-正压送风口-厂家-价格-哪家好-德州鑫港旺通风设备有限公司 | 玉米深加工机械,玉米加工设备,玉米加工机械等玉米深加工设备制造商-河南成立粮油机械有限公司 | 北京印刷厂_北京印刷_北京印刷公司_北京印刷厂家_北京东爵盛世印刷有限公司 | 橡胶接头|可曲挠橡胶接头|橡胶软接头安装使用教程-上海松夏官方网站 | 隧道烘箱_隧道烘箱生产厂家-上海冠顶专业生产烘道设备 | 龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司_龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司 | 防爆电机-高压防爆电机-ybx4电动机厂家-河南省南洋防爆电机有限公司 | 天津电机维修|水泵维修-天津晟佳机电设备有限公司 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 沈阳庭院景观设计_私家花园_别墅庭院设计_阳台楼顶花园设计施工公司-【沈阳现代时园艺景观工程有限公司】 | 华禹护栏|锌钢护栏_阳台护栏_护栏厂家-华禹专注阳台护栏、楼梯栏杆、百叶窗、空调架、基坑护栏、道路护栏等锌钢护栏产品的生产销售。 | 北京律师事务所_房屋拆迁律师_24小时免费法律咨询_云合专业律师网 | 可程式恒温恒湿试验箱|恒温恒湿箱|恒温恒湿试验箱|恒温恒湿老化试验箱|高低温试验箱价格报价-广东德瑞检测设备有限公司 | 振动传感器,检波器-威海广达勘探仪器有限公司 | 深圳宣传片制作_产品视频制作_深圳3D动画制作公司_深圳短视频拍摄-深圳市西典映画传媒有限公司 | 儿童乐园|游乐场|淘气堡招商加盟|室内儿童游乐园配套设备|生产厂家|开心哈乐儿童乐园 | 小型高低温循环试验箱-可程式高低温湿热交变试验箱-东莞市拓德环境测试设备有限公司 | 铝箔袋,铝箔袋厂家,东莞铝箔袋,防静电铝箔袋,防静电屏蔽袋,防静电真空袋,真空袋-东莞铭晋让您的产品与众不同 | 净化工程_无尘车间_无尘车间装修-广州科凌净化工程有限公司 | 土壤养分检测仪|土壤水分|土壤紧实度测定仪|土壤墒情监测系统-土壤仪器网 | 辽宁资质代办_辽宁建筑资质办理_辽宁建筑资质延期升级_辽宁中杭资质代办 | 车件|铜件|车削件|车床加工|五金冲压件-PIN针,精密车件定制专业厂商【东莞品晔】 | 电竞馆加盟,沈阳网吧加盟费用选择嘉棋电竞_售后服务一体化 | 纸塑分离机-纸塑分离清洗机设备-压力筛-碎浆机厂家金双联环保 | 磁粉制动器|张力控制器|气胀轴|伺服纠偏控制器整套厂家--台灵机电官网 | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 衢州装饰公司|装潢公司|办公楼装修|排屋装修|别墅装修-衢州佳盛装饰 | 阴离子聚丙烯酰胺价格_PAM_高分子聚丙烯酰胺厂家-河南泰航净水材料有限公司 | TPE塑胶原料-PPA|杜邦pom工程塑料、PPSU|PCTG材料、PC/PBT价格-悦诚塑胶 | 大学食堂装修设计_公司餐厅效果图_工厂食堂改造_迈普装饰 | 污水/卧式/潜水/钻井/矿用/大型/小型/泥浆泵,价格,参数,型号,厂家 - 安平县鼎千泵业制造厂 | 台湾Apex减速机_APEX行星减速机_台湾精锐减速机厂家代理【现货】-杭州摩森机电 | 扬子叉车厂家_升降平台_电动搬运车|堆高车-扬子仓储叉车官网 | 大流量卧式砂磨机_强力分散机_双行星双动力混合机_同心双轴搅拌机-莱州市龙跃化工机械有限公司 | 北京网站建设-企业网站建设-建站公司-做网站-北京良言多米网络公司 | 连栋温室大棚建造厂家-智能玻璃温室-薄膜温室_青州市亿诚农业科技 | 打造全球沸石生态圈 - 国投盛世 锂电混合机-新能源混合机-正极材料混料机-高镍,三元材料混料机-负极,包覆混合机-贝尔专业混合混料搅拌机械系统设备厂家 |