版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、excel 保護密碼破解 絕對經(jīng)典 假如你的Excel 文件設(shè)置了保護密碼而遺忘了,那麼請依照下面的步驟來操作,也許會有奇跡出現(xiàn).不需要多麼高難度的操作和專業(yè)的軟件支持.簡單 .便利 .費時一般最多兩分鐘. 建議 :操作前把原文件 COPY 一份 方法 : 打開文件 工具 -宏- 錄制新宏 -輸入名字如 :aa 停止錄制 這樣得到一個空宏 工具 -宏- 宏,選 aa,點編輯按鈕刪除窗口中的全部字符只有幾個 ,替換為下面的內(nèi)容:復(fù)制吧 關(guān)閉編輯窗口 工具 -宏- 宏,選 AllInternalPasswords,運行 ,確定兩次 ,等 2 分鐘 ,再確定 .OK,沒有密碼了 . 內(nèi)容如下:Pub
2、lic 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-2022 Version 1.1 Modified 2022-Apr
3、-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 & _ Norman Harker and JE McGimpsey C
4、onst HEADER As String = AllInternalPasswords User Message Const VERSION As String = DBLSPACE & Version 1.1.1 2022-Apr-04 Const REPBACK As String = DBLSPACE & Please report failure & _ to the gramming newsgroup. Const ALLCLEAR As String = DBLSPACE & The workbook should & _ now be free of all password
5、 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 & _ or data. & DBLSPACE & Access and use of some data & _ may be an
6、 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 was no protection to & _ workbook structure or windows. & DBLSPACE & _ Proceeding to unprotect sheets. & AUTHO
7、RS & VERSION Const 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 computers specification. & DBLSPACE & _ Just be patient. Make me a coffee. & AUTHORS & VERSION Const
8、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 othe
9、r 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 & _ future use in other workbooks by same person who & _ set this password. & DBLSPACE & Now to check
10、and clear & _ other passwords. & AUTHORS & 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 Integer Dim
11、 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 =
12、False 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 Else On Error Resume Next Do
13、 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 Chri & Chrj & Chrk & _ Chrl & Chrm
14、& Chri1 & Chri2 & _ Chri3 & Chri4 & Chri5 & Chri6 & Chrn If .ProtectStructure = False And _ .ProtectWindows = False Then PWord1 = Chri & Chrj & Chrk & Chrl & _ Chrm & Chri1 & Chri2 & Chri3 & _ Chri4 & Chri5 & Chri6 & Chrn MsgBox Application.SubstituteMSGPWORDFOUND1, _ $, PWord1, vbInformation, HEADE
15、R 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 Worksheets Attempt cle
16、arance 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 Resume Next Do Dummy
17、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 .Unprotect Chri & Chrj & Chrk & _ Chrl & Chrm & Chri1 & Chri2 & Chri3 & _
18、 Chri4 & Chri5 & Chri6 & Chrn If Not .ProtectContents Then PWord1 = Chri & Chrj & Chrk & Chrl & _ Chrm & Chri1 & Chri2 & Chri3 & _ Chri4 & Chri5 & Chri6 & Chrn MsgBox Application.SubstituteMSGPWORDFOUND2, _ $, PWord1, vbInformation, HEADER leverage finding Pword by trying on other sheets For Each w2 In
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 預(yù)制構(gòu)件生產(chǎn)首件驗收制度
- 飾品廠生產(chǎn)獎懲制度范本
- 造船安全生產(chǎn)檢查制度范本
- 生產(chǎn)企業(yè)管理員獎罰制度
- 制衣安全生產(chǎn)檢查制度
- 信息化生產(chǎn)財務(wù)管理制度
- 洗煤廠文明生產(chǎn)獎懲制度
- 幼兒園全員生產(chǎn)責(zé)任制度
- 企業(yè)安全生產(chǎn)教育制度
- 預(yù)制菜生產(chǎn)規(guī)章制度范本
- 開封大學(xué)單招職業(yè)技能測試參考試題庫(含答案)
- 既有建筑幕墻安全性鑒定技術(shù)規(guī)程(征求意見稿)
- 施工總平面布置圖范本
- 嬰幼兒輔食添加及食譜制作
- 安全生產(chǎn)標(biāo)準(zhǔn)化對企業(yè)的影響安全生產(chǎn)
- 隨訪管理系統(tǒng)功能參數(shù)
- SH/T 0362-1996抗氨汽輪機油
- GB/T 23280-2009開式壓力機精度
- GB/T 17213.4-2015工業(yè)過程控制閥第4部分:檢驗和例行試驗
- FZ/T 73009-2021山羊絨針織品
- GB∕T 5900.2-2022 機床 主軸端部與卡盤連接尺寸 第2部分:凸輪鎖緊型
評論
0/150
提交評論