码迷,mamicode.com
首页 > 编程语言 > 详细

VBA how to crack Excel Password

时间:2018-09-23 11:36:01      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:hive   mes   delete   whether   art   tutorial   cte   vba   error   

来源
更多vba相关
vba教程
VBA cheat sheet

1. VBA how to crack Excel Workbook/Worksheet password

To remove the excel workbook or worksheet password requires opening the excel file as xml file and removing the password tags in the xml.

Unlock Password protected sheets/workbook
1) Open excel file as zip in 7 Zip – open as archive
2) Download Sheet.xml or workbook.xml
3) Open xml file in text editor
4) Delete the entire tag that begins with <sheetProtection password…./> or <workbookProtection…./>
5) Transfer xml file back to 7 Zip archive folder
6) Sheets or workbook should now be unlocked

2. How to crack VBA password

To remove the password locking the VBA of an excel file requires opening the excel in 7zip and editing one of the .bin files to recode the part that designates whether the file is password protected of not. This has to be done in a hex editor.

Unlock VBA excel
1) 7 zip open xlsm file as archive
2) Navigate xl folder
3) Download vbaProject.bin file
4) Open vbaProject.bin file in text editor to view hex code
5) Find the hex code for DPB (use text to hex converter, DPB hex = 5042)
6) Update hex code 5042 (DPB) to 5078 (DPx)
DPB = password protected vba
DPx = No password on VBA
7) Save new vbaProject.bin file
8) Copy new vbaProject.bin file back to 7 zip xl folder
9) Open excel file – will show DPx error message, click okay
10) Go to VBA editor – Tools – VBA project properties – Protection – Disable lock project for viewing
11) Save file
12) Re open file – should now be unlocked

VBA how to crack Excel Password

标签:hive   mes   delete   whether   art   tutorial   cte   vba   error   

原文地址:https://www.cnblogs.com/hhh5460/p/9691912.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!