# ZIP

HTTP/S 통신에서 접속한 경로에 압축 확장자가 있다면 접속하는 즉시 파일이 다운로드 됩니다. 서버에 웹 서비스가 있거나 파이썬 등을 통해 실행할 수 있다면 압축 파일을 통해 파일을 가져올 수 있습니다.

{% tabs %}
{% tab title="Windows" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># 파일 압축
</strong>Compress-Archive -Path ".\Credential.txt" -DestinationPath ".\Credential.zip"
</code></pre>

{% endtab %}

{% tab title="UNIX" %}

<pre class="language-bash"><code class="lang-bash"><strong># 파일 압축
</strong>zip Credential.zip Credential.txt 
</code></pre>

{% endtab %}
{% endtabs %}

<figure><img src="/files/UbLF60J0dyTtFRVKJgXZ" alt=""><figcaption><p>웹 주소 접속 시 자동으로 파일 다운로드</p></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/data-theft/file-transper/zip.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.
