> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/post-exploitation/av-evasion/compiling-code.md).

# Compiling Code

{% embed url="<https://github.com/int0x33/nc.exe/>" %}

We can use **mingw** to compile source code for Windows machines. The most popular compiler is **x86\_64-w64-mingw32-gcc**.

Edit make file and add \``CC=x86_64-w64-mingw32-gcc`\`

<figure><img src="/files/2rWpTHdqZF8YNn4LKClm" alt=""><figcaption></figcaption></figure>

Compile

```
make 2>/dev/null
```

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

{% embed url="<https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1>" %}
