# xlsx/ods

xlsx/ods 확장 파일은 xml 파일들이 압축되어 구성된 스프레드 시트입니다.

문서 자체에 패스워드가 걸린 경우 xml 파일들을 가져오는 것이 불가능하지만, 단순 시트 보호가 걸린 경우 해당 시트를 저장하는 xml 파일의 sheetProtection 태그 내 암호화된 패스워드로 저장됩니다.

<figure><img src="/files/LWsKy7u2NlvLflI1fegc" alt=""><figcaption></figcaption></figure>

때문에 xml 파일로 압축을 해제할 수 있다면 해당 태그를 삭제하여 다시 압축했을 때 스프레드 시트의 보호를 해제할 수 있습니다.

## Abuse

<pre class="language-bash"><code class="lang-bash"><strong># ods → xlsx 파일 변환
</strong>libreoffice --headless --convert-to xlsx '&#x3C;ods-file>'

<strong># xlsx 파일 압축 해제
</strong>unzip '&#x3C;xlsx-file>'

<strong># xl/worksheets/ 하위 xml 시트 파일 내 &#x3C;sheetProtection> 태그 삭제 후 압축
</strong>zip -r '&#x3C;xlsx-file>' *
</code></pre>

## Demo

<figure><img src="/files/6HOKJRZox7hCc99mV0yO" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/post-exploit/undefined/extension/xlsx-ods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
