



下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、excel 工作表保護密碼破解方法 : 打開文件工具 -宏-錄制新宏 -輸入名字如 :aa 停止錄制 (這樣得到一個空宏) 工具 -宏-宏 ,選 aa, 點編輯按鈕刪除窗口中的所有字符(只有幾個 ),替換為下面的內容:(復制吧 ) 關閉編輯窗口工具 -宏- 宏,選 allinternalpasswords,運行 ,確定兩次 ,等 2 分鐘 ,再確定 .ok,密碼完全被你看見了 ! 內容如下 : public sub allinternalpasswords() breaks worksheet and workbook structure passwords. bob mccormick pr
2、obably 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 p
3、asswords 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 user message const version as s
4、tring = dblspace & version 1.1.1 2003-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 protection, so make sure you:
5、 & _ 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
6、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 was no protection to & _ workbook structure or windows. & dblspace &
7、amp; _ 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 passwords, the & _ passwords, and your computers specification. &a
8、mp; dblspace & _ just be patient! make me a coffee! & authors & version const msgpwordfound1 as string = you had a worksheet & _ structure or windows password set. & dblspace & _ the password found was: & dblspace & $ & dblspace & _ note it down for potential
9、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 worksheet & _ password set. & dblspace & the password found was: & _ d
10、blspace & $ & 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 & version const msgonlyone as string = only structure / windows &
11、amp; _ 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 m as integer, n as integer, i1 as integer, i2 as integer dim i3 as integer, i4 as int
12、eger, 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 = false for each w1 in worksheets shtag = shtag or w1.protectcontents next w1 if not sht
13、ag 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 dummy do loop for i = 65 to 66: for j = 65 to 66: for k = 65 to 66 for l = 65 to 66:
14、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) & _ chr(i3) & chr(i4) &a
15、mp; 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.substitut
16、e(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 msgonlyone, vbinformation, header exit sub end if on err
17、or 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 shtag then for each w1 in worksheets with w1 if
18、.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: 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 .protectconten
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年人工智能輔助醫療診斷產品注冊審批法規動態及應對策略報告
- 2025年城市更新項目歷史文化街區保護與特色街區建設研究報告
- 新能源汽車制造2025:核心技術與產業布局新能源汽車產業鏈投資機會報告
- 2025年醫院電子病歷系統優化在醫院信息化建設中的數據生命周期管理報告
- 2025年醫院電子病歷系統優化構建醫療信息化生態圈報告
- 2025年醫藥市場醫藥政策法規變化:仿制藥一致性評價下的市場適應性報告
- 2025年醫藥企業研發外包(CRO)模式下的臨床試驗數據挖掘與知識產權保護
- 零售企業私域流量運營實踐:2025年消費者洞察與場景化營銷報告
- 八年級期末家長會教學課件
- 2025年海上風能資源評估與深遠海風電發展規劃報告:深遠海風電場海上風電場運維產業生態
- JJF 1139-2005計量器具檢定周期確定原則和方法
- GB/T 27922-2011商品售后服務評價體系
- 生物科技有限公司外勤出差申請表
- GA/T 1567-2019城市道路交通隔離欄設置指南
- LX電動單梁懸掛說明書介紹
- 消防水池檢查記錄
- 工程竣工圖章樣式
- 航天器用j30jh系列微型矩形電連接器
- 拆除新建橋梁鉆孔樁專項施工方案
- 技工序列考評、評聘管理辦法
- 2022年哈爾濱建設發展集團有限責任公司招聘筆試題庫及答案解析
評論
0/150
提交評論