Академический Документы
Профессиональный Документы
Культура Документы
Because the .xlsx file format is based on a tree structure with XML files, it is easy to
disassemble. For this example, I protected both the individual worksheet and workbook on my
sample excel file. We will break this protection by changing some settings in the file.
For the disassembly process, the main file compression utility in windows will work just fine.
For the first part of this demo, I am using WinRAR (Free to download). If you cant install
WinRAR, please scroll down to see the alternate disassembly process using the Windows built-in
file compression tool.
Disassembly with WinRAR:
1. Open WinRAR and click the File menu.
2. Select Open archive.
3. Set the file type at the bottom from all archives to all files.
4. Locate your Excel file and click Open
The files you are going to edit are in the xl folder that is circled in red.
For Workbook(whole excel file) Settings:
xl>workbook.xml
For Individual Worksheet File Settings:
xl>worksheets>sheet1.xml [sheet2.xml] etc
<workbookProtection
workbookAlgorithmName="SHA-512"
workbookHashValue="/PqWjbsJjvF9ZfuAX/9rSOHijK4Q=="
workbookSaltValue="BNztIxbaEJpw7IvcclH28g=="
workbookSpinCount="100000"
lockStructure="1"/>
Browse to xl>worksheets>sheet1.xml(or sheet2, sheet3, etc) and double click on the file.
Delete the whole line that looks like:
1
2
3
4
5
6
7
<sheetProtection algorithmName="SHA-512"
hashValue="p10u4BneUg3eT/wBlxTIvojOqTuf18kg=="
saltValue="pOCHLgXP+8NSbHK89LmgGQ=="
spinCount="100000"
sheet="1"
objects="1"
scenarios="1"/>
NOTE: If you are using Excel 2010, the following buttons may need to be clicked on to
unstick them:
Once unstuck, you should now be able to edit the document as you please.
Click Extract all Files, select your file destination and click Extract