破解EXCEL工作表保護密碼

2022-03-20 14:40:51 字數 3780 閱讀 3785

神技 破解excel工作表保護密碼 

我們可以通過新建工作本,來建立乙個新的工作本來創造新的巨集而繞過密碼保護機制。

在開啟的pdn_tool_v1_1_1.xls工作本裡,通過選單「檔案–>新建工作本「,建立乙個新的空白工作本。 

在新建的工作本裡,通過選單」工具–>巨集–>錄製新巨集…「來建立乙個新的巨集。

但我們這裡先什麼都不用做,直接選單」工具–>巨集–>停止錄製「來建立乙個空白的巨集,我們會對這個新的巨集進行編輯工作。

通過選單」工具–>巨集–>巨集…「,來開啟巨集選擇視窗,我們會在巨集視窗的選擇列表裡看到我們剛才新建的那個巨集」hh」。

選擇巨集「hh」,然後點選「編輯」按鈕。

在彈出的「visual basic 編輯器」視窗右邊,刪除原有的**,將下邊的vba**貼上減去,然後關閉「visual basic 編輯器」視窗。

public sub 工作表保護密碼破解()

const dblspace as string = vbnewline & vbnewline

const authors as string = dblspace & vbnewline & _

const header as string = "工作表保護密碼破解"

const version as string = dblspace & "版本 version 1.1.1"

const repback as string = dblspace & ""

const zhengli as string = dblspace & " 吳川斌的部落格 www.mr-wu.cn"

const allclear as string = dblspace & "該工作簿中的工作表密碼保護已全部解除!!" & dblspace & "請記得另儲存" _

& dblspace & "注意:不要用在不當地方,要尊重他人的勞動成果!"

const msgnopwords1 as string = "該檔案工作表中沒有加密"

const msgnopwords2 as string = "該檔案工作表中沒有加密2"

const msgtaketime as string = "解密需花費一定時間,請耐心等候!" & dblspace & "按確定開始破解!"

const msgpwordfound1 as string = "密碼重新組合為:" & dblspace & "$$" & dblspace & _

"如果該檔案工作表有不同密碼,將搜尋下一組密碼並修改清除"

const msgpwordfound2 as string = "密碼重新組合為:" & dblspace & "$$" & dblspace & _

"如果該檔案工作表有不同密碼,將搜尋下一組密碼並解除"

const msgonlyone as string = "確保為唯一的?"

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 as integer

dim pword1 as string

dim shtag as boolean, wintag as boolean

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 not wintag then

msgbox msgnopwords1, vbinformation, header

exit sub

end if

msgbox msgtaketime, vbinformation, header

if not wintag then

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(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)

"$$", 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 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 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:

excel取消工作表保護 獲取原始密碼

您試圖更改的單元格或圖表位於受保護的工作表中。若要進行更改,請取消工作表保護。您可能需要輸入密碼。網上找的解決辦法,在excel2016中試過後,有效。1 開啟需要破解保護密碼的excel檔案 2 選單 檢視 巨集 錄製巨集 輸入巨集名 自定義xx 確定 3 選單 檢視 巨集 停止錄製 得到乙個空巨...

excel工作簿開啟密碼破解

coding utf 8 from win32com.client import dispatchex from random import choice import string 僅供娛樂。本方案只針對excel workbook密碼,至於word,worksheet破解有漏洞哦。真想破解。傻瓜...

Excel 密碼破解

passware excel password recovery key v6.5 簡介說明 恢復所有電子 xls 格式檔案密碼的工具,支援所有版本的ms excel 包括2003版,可以恢復所有型別的密碼,excel 95 7.0,5.0,4.0可以恢復所有型別的密碼 開啟許可權 可寫許可權 保護...